// JavaScript Document
function VerifyInput()
{
    if (document.myform.Title.value == "")
    {
        alert("Please enter your Title!");
        document.myform.Title.focus();
        return false;
    }
    if (document.myform.email.value == "")
    {
        alert("Please enter Email !!");
        document.myform.email.focus();
        return false;
    }
    if(document.myform.email.value.length!=0)
      {
      if (document.myform.email.value.charAt(0)=="." || document.myform.email.value.charAt(0)=="@"|| document.myform.email.value.indexOf('@', 0) == -1 || document.myform.email.value.indexOf('.', 0) == -1||document.myform.email.value.lastIndexOf("@") ==document.myform.email.value.length-1 || document.myform.email.value.lastIndexOf(".")==document.myform.email.value.length-1)
      {
          alert("Email is not right!!");
          document.myform.email.focus();
          return false;
      }
      }
   else
      {  
        alert("Please enter Email !!");
        document.myform.email.focus();
        return false;
      }
    if (document.myform.Infomation.value =="")
    {
        alert("Please enter your Infomation!");
        document.myform.Infomation.focus();
        return false;
    }
	return true;
}
//中文
function VerifyInputCN()
{
    if (document.myform.Title.value == "")
    {
        alert("请输入标题!");
        document.myform.Title.focus();
        return false;
    }
	if(document.Order_from.Email.value=="")
{
	alert("Please enter Email!!");
	document.myform.Email.focus();
	return false;
}
if((document.myform.Email.value.indexOf("@"))==-1 || (document.myform.Email.value.indexOf("."))==-1)
{
	alert("Email is not right!!");
	document.myform.Email.focus();
	return false;
}

	return true;
}
//---------------------------------------------------
function checkorder(){
if (document.Order_from.Name.value=="")
{alert("Please Enter Name!"); 
document.Order_from.Name.focus();
return false;
}
if(document.Order_from.Email.value=="")
{
	alert("Please enter Email!!");
	document.Order_from.Email.focus();
	return false;
}
if((document.Order_from.Email.value.indexOf("@"))==-1 || (document.Order_from.Email.value.indexOf("."))==-1)
{
	alert("Email is not right!!");
	document.Order_from.Email.focus();
	return false;
}
if(document.Order_from.Company.value==""){
	alert("Please enter Company!");
	document.Order_from.Company.focus();
	return false;
	}

 return true;
}
//中文
function checkorderCN(){
if (document.Order_from.Name.value=="")
{alert("联系人不能为空!"); 
document.Order_from.Name.focus();
return false;
}
if(document.Order_from.Email.value=="")
{
	alert("电子邮件不能为空!!");
	document.Order_from.Email.focus();
	return false;
}
if((document.Order_from.Email.value.indexOf("@"))==-1 || (document.Order_from.Email.value.indexOf("."))==-1)
{
	alert("电子邮件格式不对!!");
	document.Order_from.Email.focus();
	return false;
}
if(document.Order_from.Company.value==""){
	alert("请输入公司名称!");
	document.Order_from.Company.focus();
	return false;
	} return true;
}
