// JavaScript Document

function CheckInput()
	{
	   var strInput=document.FWForm.fwcode.value;
	   var strYzCode=document.FWForm.YzCode.value;
		if((strInput.length!=16) || (isNaN(strInput)))
		{
		alert("请正确输入产品上的防伪码!16位数字有效");
		//alert(strInput);
		document.FWForm.fwcode.focus();
		return false;
		};	
		
		
		if((strYzCode.length!=4) || (isNaN(strYzCode)))
		{
		alert("请正确输入产品上的验证码!4位数字有效");
		//alert(strYzCode);
		document.FWForm.YzCode.focus();
		return false
		};	 
		
		return true;	
	}
	
function loadFocus()
{
	document.all.fwcode.focus();
	}