<!---->
function product_over_out()
{
	var obj=document.all.p_1;
	objlength=obj.length;
	for(j=0;j<objlength;j++)
	{
		obj[j].className="li_out";
	}
	for(i=0;i<objlength;i++)
	{
		num=obj[i];
		num.onmouseover=function()
		{
			num.className="li_over";
		}
		num.onmouseout=function()
		{
			num.className="li_out";	
		}
	} 
}


var bExperienced = false;	
function doFocus(aControl) { // maybe this is what u need.
    if (!bExperienced) {
      aControl.value = "";
    }
    bExperienced = true;
}


<!--清除表单值-->
function form_clear()
{
   if(window.confirm("Clear Information，yes or no?"))
   	{document.pro.reset();
     return true;
	}
   else
   {
     return false;
   }
}

<!--Inquiry form表单验证-->
function inq_info()
{
	var reyx= /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/;
	var c_name=document.pro.c_name;
	var email=document.pro.email;
	if(c_name.value.replace(/(^\s*)|(\s*$)/g,'')=="")
	{
		alert('.Please enter your company name!');
		c_name.focus();
		return false;
	}
	if(email.value.replace(/(^\s*)|(\s*$)/g,'')=="")
	{
		alert('.Please enter the email!');
		email.focus();
		return false;
	}
	if(!reyx.test(email.value))
	{
		alert('.the email is wrong!');
		email.focus();
		return false;
	}
}

<!--Inquiry form表单元素的增减-->
function   Add(){
	  var s=document.all.item_no;
      if(s){ if(s.length>=10){alert('最多只能插10条记录!');return false;}}
      var   File1   =   document.getElementById("area");
      var   div   =   document.createElement("div");
      var   inputTxt   =   document.createElement("input");
      inputTxt.type   =   "text";
      inputTxt.id   =   "item_no";
	  inputTxt.name   =   "item_no";
      var   inputTxta   =   document.createElement("input");
      inputTxta.type   =   "text";
      inputTxta.id   =   "pro_name";
	  inputTxt.name   =   "pro_name";
      var   inputTxtaa   =   document.createElement("input");
      inputTxtaa.type   =   "text";
	 
      div.appendChild(inputTxt);
      div.appendChild(inputTxta); 
      File1.appendChild(div);
	  var s=document.all.item_no;
	   if(s)
	  {
		  if(s.length>0)
		  {
			  var   btn   =   document.createElement("img");
			  btn.src="images/del.gif";
			  btn.width=19;
			  btn.height=20;
			  btn.style.cursor="pointer";
			  btn.type   =   "image";
			  btn.value   =   "删除";
			  btn.onclick   =   function()
			  {
				this.parentNode.parentNode.removeChild(this.parentNode);
				var n = File1.getElementsByTagName("div");
			  }
			  div.appendChild(btn);
		  }
	  } 
}

<!--message表单值验证-->
function message_check()
{
	var patrn=/^[0-9]{1,20}$/; 
	var reyx= /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/;
	var v_name=document.pro.v_name;
	var c_name=document.pro.c_name;
	var area=document.pro.area;
	var email=document.pro.email;
	var tel=document.pro.tel;
	var subject=document.pro.subject;
	var message=document.pro.message;
	var code=document.pro.code;
	if(v_name.value.replace(/(^\s*)|(\s*$)/g,'')=="")
	{
	 	alert('.Please enter your name!');	
		v_name.focus();
		return false;
	}
	
	if(c_name.value.replace(/(^\s*)|(\s*$)/g,'')=="")
	{
	 	alert('.Please enter the company name!');	
		c_name.focus();
		return false;
	}
	
	if(area.value.replace(/(^\s*)|(\s*$)/g,'')=="")
	{
	 	alert('.Please enter the Country or Area!');	
		area.focus();
		return false;
	}
	
	if(email.value.replace(/(^\s*)|(\s*$)/g,'')=="")
	{
	 	alert('.Please enter the residential area!');	
		email.focus();
		return false;
	}
	
	if(!reyx.test(email.value))
	{
		alert('.The email is wrong!');
		email.focus();
		return false;
	}
	
	
	if(tel.value.replace(/(^\s*)|(\s*$)/g,'')=="")
	{
	 	alert('.Please enter the telphone number!');	
		tel.focus();
		return false;
	}
	
	if((!patrn.exec(tel.value)))
	{
	 	alert('.The telphone number must be an integer!');	
		tel.focus();
		return false;
	}
	
	if(subject.value.replace(/(^\s*)|(\s*$)/g,'')=="")
	{
	 	alert('.Please enter the topic title!');	
		subject.focus();
		return false;
	}
	
	if(message.value.replace(/(^\s*)|(\s*$)/g,'')=="")
	{
	 	alert('.Please enter the content!');	
		message.focus();
		return false;
	}
	
	if(code.value.replace(/(^\s*)|(\s*$)/g,'')=="")
	{
	 	alert('.Please enter the verifying code!');	
		code.focus();
		return false;
	}
}