// JavaScript Document hp@suome.com
<!--
function submitit() //在提交按钮input后加 /onClick="submitit()"/ 即调用此js检测表单。
	{
	if(check_input(FormUserInfo)){
        //alert("Thanks for your inquiry. We will get back to you as soon as possible!");
		//表单填完提交后，弹出的提示信息，如果不要此信息，请在alert前加 // 注销掉。
	document.FormUserInfo.submit();
	}
	return;
	}
	
function isEmail(Email)
{
var temp1,temp2;
 temp1=Email.indexOf("@");
 temp2=Email.indexOf(".");
if(temp1==-1||temp2==-1||temp1==0)
{return false;}
return true;
}


function isFax(Fax)
{
var i;
for(i=0;i<Fax.length;i++)
{
if((Fax.charAt(i)<"0"||Fax.charAt(i)>"9")&&Fax.charAt(i)!="-")
{return false;
 break;}
}
return true;
}

function check_input(thisForm)
{
if(thisForm.Name.value=="")
	{alert("Please fill in your Name!");
		thisForm.Name.focus();
		return false;}
		
if(thisForm.Email.value=="")
	{alert("Please fill in your Email!");
		thisForm.Email.focus();
		return false;}
	if(!isEmail(thisForm.Email.value))
	{alert("Email,error！");
		thisForm.Email.focus();
		return false;}
	
if(thisForm.Company.value=="")
	{alert("Please fill in your Company Name");
		thisForm.Company.focus();
		return false;}

if(thisForm.Phone.value=="")
	{alert("Please fill in your Phone No.");
		thisForm.Phone.focus();
		return false;}
	if(!isFax(thisForm.Phone.value))
	{alert("Phone,error！");
		thisForm.Phone.focus();
		return false;}

if(thisForm.Fax.value=="")
	{alert("Please fill in your Fax No.");
		thisForm.Fax.focus();
		return false;}
	if(!isFax(thisForm.Fax.value))
	{alert("Fax,error！");
		thisForm.Fax.focus();
		return false;}

if(thisForm.Country.value=="")
	{alert("Please fill in your Country!");
		thisForm.Country.focus();
		return false;}

	return true;
}
-->