function isValidEmail(strEmail) {

	var emailFilter = /^[a-zA-Z0-9\_\-\.]+\@.+\.[a-zA-Z0-9]{2,4}$/;

	return emailFilter.test(strEmail);

}



function ChangeDisplay(theID, displayType) {

	var theNode = (document.getElementById(theID)) ? document.getElementById(theID) : false;

	if (theNode) theNode.style.display = displayType;

}



function isValidURL(strURL) {

	if (strURL.length > 0) {

		var httpFilter1 = /^https?\:\/\//; // begins with http(s)://

		var httpFilter2 = /[a-zA-Z0-9\-]{2,}\.[a-zA-Z0-9]{2,4}/; //includes domainname.whatever

		if (!httpFilter1.test(strURL) || !httpFilter2.test(strURL) || strURL.length < 12) return false;

	}

	return true;

}
