// JavaScript Document
function validation(theform)
 {
 if(theform.fname.value.length=="" || theform.fname.value =="Name")
{
alert("Required Your Name.");
theform.fname.focus();
return false;
}

if(theform.email.value.length=="")
{
alert("Required Your Email Address.");
theform.email.focus();
return false;
}
with (theform.email)
  {
 apos=value.indexOf("@");
  dotpos=value.lastIndexOf(".");
  if (apos<1||dotpos-apos<2)
    {
	alert("Invalid Email Address!");
	return false;
	}
}

return true;
 }
