// JavaScript Document

function validForm()
{
	<!--alert("check");	-->
	//alert(document.frm.small.value);	 

 	if(document.frm.name.value == "" || document.frm.name.value == "Name" )
	{
		alert("Please Enter your Name");
		document.frm.name.focus();
		return false;
	}
	
	if(document.frm.email.value == ""  || document.frm.email.value == "Email")
	{
		alert("Please enter Email");
		document.frm.email.focus();
		return false;
	}
	else
	{
		emailExp= /^\w+(\-\w+)*(\.\w+(\-\w+)*)*@\w+(\-\w+)*(\.\w+(\-\w+)*)+$/;
	 	 if (!(emailExp.test(document.frm.email.value)))
		{ 
			   alert("Invalid Email Address");
			   document.frm.email.focus();
			   return false;  
		} 
	}
	 
}
