﻿function checkFrm(){
   
 if (document.form1.Organization.value=="")
 {alert('Your company name can not be empty!');
  document.form1.Organization.focus();
   return false;}
   
 if (document.form1.UserName.value=="")
 {alert('Your contact person can not be empty!');
  document.form1.UserName.focus();
   return false;}
  
 if (document.form1.Tel.value=="")
 {alert('Your tel can not be empty!');
  document.form1.UserName.focus();
   return false;}
   

 if (document.form1.EMail.value=="")
 {alert('Your email can not be empty!');
  document.form1.EMail.focus();
   return false;}
  
  if (IsEmail(document.form1.EMail.value)==false){
		document.form1.EMail.focus();
		return false;
  }
 
   
if (document.form1.Other1.value=="")
 {alert('Your product / material interested can not be empty!');
  document.form1.Other1.focus();
   return false;}
   
 if (document.form1.Other2.value=="")
 {alert('Your final end use can not be empty!');
  document.form1.Other2.focus();
   return false;}
   
   
 if (document.form1.Requirement.value=="")
 {alert('Your specify your requestcan not be empty!');
  document.form1.Requirement.focus();
   return false;}
   
}

function IsEmail(object_name)
{
	var string;
	string=new String(object_name);
	var len=string.length;
	if (string.indexOf("@",1)==-1||string.indexOf(".",1)==-1||string.length<7)
		{
		alert("Your email address is error！");
		return false;
		}
	if (string.charAt(len-1)=="."||string.charAt(len-1)=="@")
		{
		alert("Your email address is error！");
		return false;
		}
	return true;
}