function validateform() {

	var email;
	var max_length = 15;
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i

	if (filter.test(document.getElementById('email').value)) {

		email = document.getElementById('email').value;
		var a = true;
	} else {

		alert("Please enter a valid email address.");
		var a = true; return false;
	}	
	return true;
}
function validatemail() {

	chkmail = window.location.search.substring(1);
	if(chkmail == "checkmail") { document.getElementById('disperror').style.display  = 'block';}

}