 function frm_Validate(){
          if(document.krishna.name.value==""){
          alert("Please enter your name.");
          document.krishna.name.focus();
          return false;
          }
	
        
          if (document.krishna.email.value==""){
          alert("Please enter your email address.")
          document.krishna.email.focus();
          return false;
          }
          
          if (document.krishna.email.value.length != 0)
        { 
        var e_check  = document.krishna.email.value;

        if(document.krishna.email.value.indexOf(" ") != -1)      {
        alert("Please enter correct E-Mail ID without any spaces in it.");
        document.krishna.email.focus(); 
        return false;
        }

        if(document.krishna.email.value.indexOf("@") == -1)      {
        alert("Invalid E-Mail ID! Please enter correct E-Mail ID.");
        document.krishna.email.focus(); 
        return false;
        }
        validarr = document.krishna.email.value.split("@");
   
        if(validarr[0].length==0)       {
        alert("Invalid E-Mail ID! Please enter the correct E-mail ID.");
        document.krishna.email.focus(); 
        return false;
        }

        if(validarr[1].indexOf("@") >=0)        {
        alert("Invalid E-Mail ID! Please enter the correct E-mail ID.");
        document.krishna.email.focus(); 
        return false;
        }
        if(validarr[1].length==0)       {
        alert("Invalid E-Mail ID! Please enter the correct E-mail ID.");
        document.krishna.email.focus(); 
        return false;
        }
        if(validarr[1].length != 0)     { 

                if(validarr[1].indexOf(".") == -1)      {
                alert("Invalid E-Mail ID! Please enter the correct E-mail ID.");
                document.krishna.email.focus(); 
                return false;
                }
                validemail = validarr[1].split(".");
                 if(validemail[0].length==0)            { 
                 alert("Invalid E-Mail ID! Please enter the correct E-mail ID.");
                 document.krishna.email.focus(); 
                 return false;
                }
                if(validemail[1].length==0)             {
                alert("Invalid E-Mail ID! Please enter the correct E-mail ID.");
                document.krishna.email.focus(); 
                return false;
                }
        }   // end of  validemail
} // end of valid email-id check
			if(document.krishna.phone.value==""){
          alert("Please enter phone number.");
          document.krishna.phone.focus();
          return false;
          }
        
		  if(document.krishna.inquiry.value==""){
          alert("Please enter comment.");
          document.krishna.inquiry.focus();
          return false;
           } 
}       

