<script language="javascript">

function checkEmail(form1) {
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.form1.txtEmail.value))
{
return true;
}
else
{
alert("Invalid E-mail Address! Please re-enter.")
document.form1.txtEmail.value="";
document.form1.txtEmail.focus();
return false;
}
}

function Submitform()
	{ 
	
	
	if(document.form1.txtName.value=="")
		{
		alert("Enter the Name");
		document.form1.txtName.focus();
		return false;		
		}
		
		if(document.form1.txtEmail.value=="")
		{
		alert("Enter the Email");
		document.form1.txtEmail.focus();
		return false;		
		}
		
	  }

</script>
