

<!--


function AutoNextField(txtval, nextfield)
{
	if (txtval.length == 7)
	{
		nextfield.focus();
	}
 }
function isn(str)
{

  var checkOK = "0123456789";
  var checkStr = str;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
	return (false);
  }
  return (true);
}
function test()
{
form2.T1.value="";
form2.T2.value="";
form2.T1.focus();
return false;
}
function Checkquery()
{
	var strAll = form2.T1.value + form2.T2.value;
	if (strAll.length == 0){
		alert("请输入产品防伪数码！");
		return test();
	}
	if (!isn(strAll))
	{
	    alert("请输入数字！");
	    return test();
	 }  	
	var numFirster = strAll.charAt(0);

	if (strAll.length < 14) {
		alert("您输入的防伪数码不够14位。");
        return test();		
	}
	return true;
}


-->

