var inumber =/^[0-9]*$/;
var vld_Email =
/^(([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,5}|[0-9]{1,3})(\]?))?$/;
var aname =/^[(a-zA-Z) (a-zA-Z)]*$/;


function trim1(s)
{
  while(s.substring(0,1)==' ') 
 {
    s = s.substring(1,s.length);
  }
   while (s.substring(s.length-1,s.length) ==' ') 
  {
    s = s.substring(0,s.length-1);
   }
 return s;
}


function validateform()
{
	if(trim1(document.form1.name.value)=="")
 	{
  		alert("Enter Your Name please");
  		document.form1.name.focus();
		document.form1.name.value="";
  		return false;
 	}

	 	
	if(trim1(document.form1.email.value)=='')
	{
		alert("Enter your Email please");
		document.form1.email.focus();
		document.form1.email.value="";
		return false;
	}
	
	 if(eval(vld_Email).test(document.form1.email.value)==false)
   	{
    	alert("Enter your valid email address please");
    	document.form1.email.focus();
		document.form1.email.value="";
		return false;
    }
	if(document.form1.comments.value=="")
 	{
  		alert("Enter Your Comment please");
  		document.form1.comments.focus();
  		return false;
 	}
	if(trim1(document.form1.Security_Code.value)=="")
 	{
  		alert("Enter Security Code");
  		document.form1.Security_Code.focus();
		document.form1.Security_Code.value="";
  		return false;
 	}
return true;
}