function validnew(){
a = document.subscribe;

if(a.txtname1.value==""){
alert("Please enter your Name");
a.txtname1.focus();
a.txtname1.select();
return false;
}
if(a.txtmail1.value==""){
alert("Please enter your Email");
a.txtmail1.focus();
a.txtmail1.select();
return false;
}
else
{
	var emailfilter=/^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/i
	var returnval=emailfilter.test(document.subscribe.txtmail1.value)
	if (returnval==false){
		alert("Please enter a valid email address.")
		a.txtmail1.select()
		a.txtmail1.focus()		
		
return false;
}
return;
}
}




