function formvalidation(form) {
 var email =  document.getElementById("txtEmail").value;
 var emailvalid = false;
   
 var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
 if (filter.test(email)){emailvalid=true;form.submit();}else{emailvalid=false;alert("Email is not valid");}
}

var tempStr = "Enter your email address";

function textboxFocus(textBox){
	if(textBox.value == tempStr){textBox.value = '';}
}

function textboxBlur(textBox){
	if(textBox.value == ''){textBox.value = tempStr;}
}
