function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
function killErrors() {
return true;
}

window.onerror = killErrors;
minimum=1;
// 判断电子邮件是否格式正确
function is_email(object_name)
{
	var string;
	string=new String(object_name);
	var len=string.length;
	if (string.indexOf("@",1)==-1||string.indexOf(".",1)==-1||string.length<7)
		{
		alert("电子邮箱的格式不对！");
		return false;
		}
	if (string.charAt(len-1)=="."||string.charAt(len-1)=="@")
		{
		alert("电子邮箱的格式不对！");
		return false;
		}
}
//判断是输入栏否为空
function is_null(object_name,tishi,word,kongge)  // object_name 为对象名称，tishi=1 为是否显示对话框,word 为提示语句,kongge=1 为去除空格,
{
	var string;
	string=new String(object_name);
	if (kongge==1)
	{string=javaTrim(string);} //删除空格的字符 
	//alert("返回的字符集="+string+"长度为="+string.length)
	if (string.length==0)
	{
		if (tishi==1)
		{
		alert(word);
		}
		return false;
	}
}
   
//删除字符开头和结尾的空格
function javaTrim(str){
	var i=0;
	var j;
	var len=str.length;

	trimstr="";
	if(j<0) return trimstr;
	flagbegin= true;
	flagend= true;
		
	while (flagbegin== true){
		if (str.charAt(i)==" "){
			i++;
			flagbegin=true;
		}
		else
		{
			
			flagbegin=false;
		}
	} 
	//前面有i个空格
	j=len-1;
	var k=0;
	while (flagend==true)
	{
		if (str.charAt(j)==" ")
		{
			j--;
			flagend=true;
			k++;
		}
		else{
			flagend=false;
		}
	}
        
	//后面有k个空格
	//alert('前面有'+i+'个空格！');
	//alert('后面有'+k+'个空格！');
	if (str.length==i)
	{
	 //alert("你的输入全为空格！")
	 trimstr="";
	 return trimstr;
	}
	trimstr=str.substring(i,j+1);
	//alert("bf"+trimstr+"fb");
	return trimstr;
}
//判断输入栏的最小和最大长度是否越界
function over_length(object_name,max,min,max_word,min_word,kongge) //kongge=1 为处理掉字符串中的空格
{
	var string;
	string=new String(object_name);
	if (kongge==1)
		{
		 string=javaTrim(string);
		}
	if (string.length>max)
		{
		 alert(max_word);
		 return false;
		}
	if (string.length<min)
		{
		 alert(min_word);
		 return false;
		}
	}
   function isWhitespace (s) //是否包涵空格
    {  
  		var whitespace = " \t\n\r";
 	    var i;
  		for (i = 0; i < s.length; i++)
  		 {   
   		    var c = s.charAt(i);
   		    if (whitespace.indexOf(c) >= 0) 
			   {
			  return true;
	 			 }
  			}

     return false;
    }

function IsPassword(strPassword)
{
	if(strPassword=="") return false;
	var lngLength = strPassword.length;
	var strCharSet="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
	for(i=0; i<lngLength; i++)
	{
		if (strCharSet.search(strPassword.substr(i,1))<0) return false;
	}
	return true;
}

//全选复选框
function CheckAll(form)
  {
  for (var i=0;i<form.elements.length;i++)
    {
    var e = form.elements[i];
    if (e.name != 'chkall')
       e.checked = form.chkall.checked;
    }
}

//弹出窗口
function urll(url)
{
totalx = screen.availWidth;
totaly = screen.availHeight;
x = totalx/2-700/2;
y = totaly/2-420/2;
window.open(url,"","toolbar=0,location=0,status=1,menubar=0,scrollbars=1,resizable=0,height=420,width=700,top="+y+",left="+x+"");
}

//弹出窗口(详细信息)
function urll2(url)
{
totalx = screen.availWidth;
totaly = screen.availHeight;
x = totalx/2-800/2;
y = totaly/2-720/2;
window.open(url,"","toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,height=520,width=480,top="+y+",left="+x+"");
}

//日期选择
function fPopUpDlg(endtarget,ctl,WINname,WINwidth,WINheight){
	
	showx =  WINwidth + 200  ; // + deltaX;
	showy = WINheight ; // + deltaY;

	newWINwidth = WINwidth + 4 + 18;
	var features =
		'dialogWidth:'  + newWINwidth  + 'px;' +
		'dialogHeight:' + WINheight + 'px;' +
		'dialogLeft:'   + showx     + 'px;' +
		'dialogTop:'    + showy     + 'px;' +
		'directories:no; localtion:no; menubar:no; status=no; toolbar=no;scrollbars:yes;Resizeable=no';
	
	retval = window.showModalDialog(endtarget, WINname , features );
	if( retval != null ){
		ctl.value = retval;
	}else{
		//alert("canceled");
	}
}

function checklogin() {
    if (window.document.login.strID.value=="")
      {
        alert("请输入您的用户名！")
        window.document.login.strID.focus()
        return false
       }
	if (is_null (document.login.strID.value,1,"用户名不能为空(空格不算字符)！",1)==false){		   
	   window.document.login.strID.focus()
	   return false;
	}
	if (over_length (document.login.strID.value,10,0,"用户名不能超过10个字符！","用户名不能少于1个字符！",1)==false){		window.document.zhuce.zc_username.focus()   
	   return false;
	}  
	if ( is_null (document.login.strPwd.value,1,"您的密码不能为空！",0)==false){
	   window.document.login.strPwd.focus()
	   return false;
	}
	if (! IsPassword(document.login.strPwd.value))
	{
	alert("密码只能由字母和数字组成！");
	window.document.login.strPwd.focus()
	return false;
	}
	if (over_length (document.login.strPwd.value,20,4,"密码不能超过10个字符！","密码不能少于4个字符！",0)==false){	    window.document.login.strPwd.focus()   
	   return false;
	}   
	     
  else
  return true;
}

function checkreg() {
	if (is_null (document.myform.strID.value,1,"用户名不能为空(空格不算字符)！",1)==false){		   
	   window.document.myform.strID.focus()
	   return false;
	}
	if (over_length (document.myform.strID.value,10,4,"用户名不能超过10个字符！","用户名不能少于4个字符！",1)==false){		window.document.myform.strID.focus()   
	   return false;
	}  
	if ( is_null (document.myform.strPwd.value,1,"您的密码不能为空！",0)==false){
	   window.document.myform.strPwd.focus()
	   return false;
	}
	if (! IsPassword(document.myform.strPwd.value))
	{
	alert("密码只能由字母和数字组成！");
	window.document.myform.strPwd.focus()
	return false;
	}
	if (over_length (document.myform.strPwd.value,20,4,"密码不能超过20个字符！","密码不能少于4个字符！",0)==false){	    window.document.myform.strPwd.focus()   
	   return false;
	}   

	if (document.myform.strPwd2.value!=document.myform.strPwd.value){ 
	   alert("密码和确认密码不一致，请检查！");
	   window.document.myform.strPwd2.focus()
	   return false;
	}
	if (is_null (document.myform.strAnswer.value,1,"请输入您的密码提示问题！",1)==false){		   
	   window.document.myform.strAnswer.focus()
	   return false;
	}
	if (over_length (document.myform.strAnswer.value,20,4,"密码提示问题不能超过20个字符！","密码提示问题不能少于4个字符！",1)==false){		window.document.myform.strAnswer.focus()   
	   return false;
	}
	if (is_null (document.myform.strReAnswer.value,1,"请输入您的问题回答！",1)==false){		   
	   window.document.myform.strReAnswer.focus()
	   return false;
	}
	if (over_length (document.myform.strReAnswer.value,20,1,"问题回答不能超过20个字符！","问题回答不能少于1个字符！",1)==false){		window.document.myform.strReAnswer.focus()   
	   return false;
	}

	if (is_email(document.myform.strMail.value)==false){
		window.document.myform.strMail.focus()
		return false;
	}
	     
  else
  return true;
}

function CheckModifyPass() {
    //密码
	if (window.document.login.strOldPass.value=="")
      {
        alert("请输入您的原密码！")
        window.document.login.strOldPass.focus()
        return false
       }
	if ( is_null (document.login.strOldPass.value,1,"您的密码不能为空！",0)==false){
	   window.document.login.strOldPass.focus()
	   return false;
	}
	if (! IsPassword(document.login.strOldPass.value))
	{
	alert("密码只能由字母和数字组成！");
	window.document.login.strOldPass.focus()
	return false;
	}
	if (over_length (document.login.strOldPass.value,20,4,"密码不能超过20个字符！","密码不能少于4个字符！",0)==false){	    window.document.login.strOldPass.focus()   
	   return false;
	}
	//新密码1
	if (window.document.login.strPwd.value=="")
      {
        alert("请输入您的新密码！")
        window.document.login.strPwd.focus()
        return false
       }
	if ( is_null (document.login.strPwd.value,1,"您的密码不能为空！",0)==false){
	   window.document.login.strPwd.focus()
	   return false;
	}
	if (! IsPassword(document.login.strPwd.value))
	{
	alert("密码只能由字母和数字组成！");
	window.document.login.strPwd.focus()
	return false;
	}
	if (over_length (document.login.strPwd.value,20,4,"密码不能超过20个字符！","密码不能少于4个字符！",0)==false){	    window.document.login.strPwd.focus()   
	   return false;
	}
	//新密码确认
	if (window.document.login.strPwd2.value=="")
      {
        alert("请输入您的新密码！")
        window.document.login.strPwd2.focus()
        return false
       }
	if ( is_null (document.login.strPwd2.value,1,"您的密码不能为空！",0)==false){
	   window.document.login.strPwd2.focus()
	   return false;
	}
	if (! IsPassword(document.login.strPwd2.value))
	{
	alert("密码只能由字母和数字组成！");
	window.document.login.strPwd2.focus()
	return false;
	}
	if (over_length (document.login.strPwd2.value,20,4,"密码不能超过20个字符！","密码不能少于4个字符！",0)==false){	    window.document.login.strPwd2.focus()   
	   return false;
	}
	if (document.login.strPwd2.value!=document.login.strPwd.value){ 
	   alert("密码和确认密码不一致，请检查！");
	   window.document.login.strPwd2.focus()
	   return false;
	}
	     
  else
  return true;
}

//船舶登记
function checkEditShipping() {
	if(window.document.myform.strShipID.value=="")
	  {
	  	alert("请填写船编号！")
	  	window.document.myform.strShipID.focus()
	  	return false;
	  }
	if(window.document.myform.strShipName.value=="")
	  {
	  	alert("请填写船名称！")
	  	window.document.myform.strShipName.focus()
	  	return false;
	  }
	if(window.document.myform.strTonnage.value=="")
	  {
	  	alert("请填写载货吨位！")
	  	window.document.myform.strTonnage.focus()
	  	return false;
	  }
	if(isNaN(myform.strTonnage.value)||myform.strTonnage.value=="")
    {
    alert("载货吨位只能填数字！");
    window.document.myform.strTonnage.focus();
    return false;
    }
  if(window.document.myform.strTonnage.value<minimum)
    {
    	alert("载货吨位必需大于"+(minimum-1)+"。");
    	window.document.myform.strTonnage.focus()
    	return false;
    }
	if(window.document.myform.strLevel.value=="")
	  {
	  	alert("请选择船舶类型！")
	  	window.document.myform.strLevel.focus()
	  	return false;
	  }	                
  else
  return true;
}

////****资料更改
  function checkDatum() {
	if (is_null (document.myform.strCompany.value,1,"公司名称不能为空(空格不算字符)！",1)==false){		   
	   window.document.myform.strCompany.focus()
	   return false;
	}
	if (over_length (document.myform.strCompany.value,40,1,"公司名称不能超过40个字符！","公司名称不能少于1个字符！",0)==false){	    window.document.myform.strCompany.focus()   
	   return false;
	}	       
    if (window.document.myform.strType.value=="")
      {
        alert("请选择您的公司类型！")
        window.document.myform.strType.focus()
        return false
       }       
    if (window.document.myform.strSheng.value=="")
      {
        alert("请选择您所在的省/自治区！")
        window.document.myform.strSheng.focus()
        return false
       }  
    if (window.document.myform.strShi.value=="")
      {
        alert("请选择您所在的市！")
        window.document.myform.strShi.focus()
        return false
       }  
         
	if (is_null (document.myform.strAdd.value,1,"公司地址不能为空(空格不算字符)！",1)==false){		   
	   window.document.myform.strAdd.focus()
	   return false;
	}
	if (over_length (document.myform.strAdd.value,60,1,"公司地址不能超过60个字符！","公司地址不能少于1个字符！",0)==false){	    window.document.myform.strAdd.focus()   
	   return false;
	}
	if (is_null (document.myform.strMail.value,1,"电子邮件不能为空(空格不算字符)！",1)==false){		   
	   window.document.myform.strMail.focus()
	   return false;
	}
		if (is_email(document.myform.strMail.value)==false){
		window.document.myform.strMail.focus()
		return false;
	}	                   
  else
  return true;
}


////****更改密码提示问题
  function CheckModifyQu() {
	if (is_null (document.myform.strQu.value,1,"问题回答不能为空(空格不算字符)！",1)==false){		   
	   window.document.myform.strQu.focus()
	   return false;
	}
	              
  else
  return true;
}


//货盘登记
function checkEditBale() {
	if(window.document.myform.strBaleName.value=="")
	  {
	  	alert("请填写货物名称！")
	  	window.document.myform.strBaleName.focus()
	  	return false;
	  }
	if (over_length (document.myform.strBaleName.value,20,1,"货物名称不能超过20个字符！","货物名称不能少于1个字符！",0)==false){	    window.document.myform.strBaleName.focus()   
	   return false;
	}
	
	if(window.document.myform.strQuantity.value=="")
	  {
	  	alert("请填写数量！")
	  	window.document.myform.strQuantity.focus()
	  	return false;
	  }
	if(window.document.myform.strPack.value=="")
	  {
	  	alert("请填写包装！")
	  	window.document.myform.strPack.focus()
	  	return false;
	  }
	if (over_length (document.myform.strPack.value,20,1,"包装内容不能超过20个字符！","包装内容不能少于1个字符！",0)==false){	    window.document.myform.strPack.focus()   
	   return false;
	}

	if(window.document.myform.strOnPort.value=="")
	  {
	  	alert("请填写装港内容！")
	  	window.document.myform.strOnPort.focus()
	  	return false;
	  }
	if (over_length (document.myform.strOnPort.value,20,1,"装港内容不能超过20个字符！","装港内容不能少于1个字符！",0)==false){	    window.document.myform.strOnPort.focus()   
	   return false;
	}

	if(window.document.myform.strOutPort.value=="")
	  {
	  	alert("请填写卸港内容！")
	  	window.document.myform.strOutPort.focus()
	  	return false;
	  }
	if (over_length (document.myform.strOutPort.value,20,1,"卸港内容不能超过20个字符！","卸港内容不能少于1个字符！",0)==false){	    window.document.myform.strOutPort.focus()   
	   return false;
	}
	if(window.document.myform.strActDate.value=="")
	  {
	  	alert("请填写装期时间！")
	  	window.document.myform.strActDate.focus()
	  	return false;
	  }
  else
  return true;
}


//船盘登记
function checkship() {
	if(window.document.myform.strShipID.value=="")
	  {
	  	alert("请填写船编号！")
	  	window.document.myform.strShipID.focus()
	  	return false;
	  }
	if(window.document.myform.strBerth.value=="")
	  {
	  	alert("请填写船停泊港口！")
	  	window.document.myform.strBerth.focus()
	  	return false;
	  }
	if (over_length (document.myform.strBerth.value,10,1,"船舶种类不能超过10个字符！","船舶种类不能少于1个字符！",0)==false){	    window.document.myform.strBerth.focus()   
	   return false;
	}
	if(window.document.myform.strStartTime.value=="")
	  {
	  	alert("请选择停泊开始时间！")
	  	window.document.myform.strStartTime.focus()
	  	return false;
	  }

  if (window.document.myform.strPrice.value!="")
	{
	if(isNaN(myform.strPrice.value)||myform.strPrice.value=="")
    {
    alert("价格只能填写数字！");
    window.document.myform.strPrice.focus();
    return false;
    }
	}
  else
  return true;
}

//forget1
function checkforget1() {
	if(window.document.myform.strGuestID.value=="")
	  {
	  	alert("请输入您的用户名！")
	  	window.document.myform.strGuestID.focus()
	  	return false;
	  }
	if (over_length (document.myform.strGuestID.value,10,1,"用户名不能超过10个字符！","用户名不能少于1个字符！",0)==false){	    window.document.myform.strGuestID.focus()   
	   return false;
	}
  else
  return true;
}


//forget2
function checkforget2() {
	if(window.document.myform.strAnswer2.value=="")
	  {
	  	alert("请输入您的问题答案！")
	  	window.document.myform.strAnswer2.focus()
	  	return false;
	  }
	if (is_null (document.myform.strAnswer2.value,1,"问题回答不能为空(空格不算字符)！",1)==false){		   
	   window.document.myform.strAnswer2.focus()
	   return false;
	}
	if (over_length (document.myform.strAnswer2.value,20,1,"问题答案不能超过20个字符！","问题答案不能少于1个字符！",0)==false){	    window.document.myform.strAnswer2.focus()   
	   return false;
	}
  else
  return true;
}

function checkforget3() {
    //密码
	if (window.document.myform.strPass.value=="")
      {
        alert("请输入您的新密码！")
        window.document.myform.strPass.focus()
        return false
       }
	if ( is_null (document.myform.strPass.value,1,"您的密码不能为空！",0)==false){
	   window.document.myform.strPass.focus()
	   return false;
	}
	if (! IsPassword(document.myform.strPass.value))
	{
	alert("密码只能由字母和数字组成！");
	window.document.myform.strPass.focus()
	return false;
	}
	if (over_length (document.myform.strPass.value,20,4,"密码不能超过20个字符！","密码不能少于4个字符！",0)==false){	    window.document.myform.strPass.focus()   
	   return false;
	}
	//密码确认
	if (window.document.myform.strPass2.value=="")
      {
        alert("请输入一次密码！")
        window.document.myform.strPass2.focus()
        return false
       }
	if ( is_null (document.myform.strPass2.value,1,"密码不能为空！",0)==false){
	   window.document.myform.strPass2.focus()
	   return false;
	}
	if (! IsPassword(document.myform.strPass2.value))
	{
	alert("密码只能由字母和数字组成！");
	window.document.myform.strPass2.focus()
	return false;
	}
	if (over_length (document.myform.strPass2.value,20,4,"密码不能超过20个字符！","密码不能少于4个字符！",0)==false){	    window.document.myform.strPass2.focus()   
	   return false;
	}
	if (document.myform.strPass2.value!=document.myform.strPass.value){ 
	   alert("密码和确认密码不一致，请检查！");
	   window.document.myform.strPass2.focus()
	   return false;
	}
	     
  else
  return true;
}

//货盘查询
function checkSearchBale() {
	if(window.document.myBale.strActDate.value=="")
	  {
	  	alert("请选择日期！")
	  	window.document.myBale.strActDate.focus()
	  	return false;
	  }
  else
  return true;
}

//船盘查询
function checkSearchShip() {
	if(window.document.myShipform.strStartTime.value=="")
	  {
	  	alert("请选择日期！")
	  	window.document.myShipform.strStartTime.focus()
	  	return false;
	  }
	if(window.document.myShipform.strKinds.value=="")
	  {
	  	alert("请选择船舶种类！")
	  	window.document.myShipform.strKinds.focus()
	  	return false;
	  }
  else
  return true;
}

//船信息查询
function checkSearchShipInfo() {
	if(window.document.myShipInfoform.strShipID.value=="" & window.document.myShipInfoform.strShipName.value=="" & window.document.myShipInfoform.strTon.value=="")
	  {
	  	alert("编号、船名、吨位请至少填一项！")
	  	window.document.myShipInfoform.strShipID.focus()
	  	return false;
	  }
  else
  return true;
}

//状态
 function checkShipState() {
    if (document.fromstate.isState.checked == false)
      {
        return false
       }
  else
  return true;
}

//包船查询
function checkBaleRent() {
	if (is_null (document.myform.strRentShipID.value,1,"船编号不能为空(空格不算字符)！",1)==false){		   
	   window.document.myform.strRentShipID.focus()
	   return false;
	}
	if (over_length (document.myform.strRentShipID.value,20,1,"船编号不能超过20个字符！","船编号不能少于1个字符！",0)==false){	    window.document.myform.strRentShipID.focus()   
	   return false;
	}
	if (is_null (document.myform.strRentShipName.value,1,"船名称不能为空(空格不算字符)！",1)==false){		   
	   window.document.myform.strRentShipName.focus()
	   return false;
	}
	if (over_length (document.myform.strRentShipName.value,20,1,"船名称不能超过20个字符！","船名称不能少于1个字符！",0)==false){	    window.document.myform.strRentShipName.focus()   
	   return false;
	}
	if (is_null (document.myform.strRentStartPort.value,1,"始发港不能为空(空格不算字符)！",1)==false){		   
	   window.document.myform.strRentStartPort.focus()
	   return false;
	}
	if (over_length (document.myform.strRentStartPort.value,20,1,"始发港不能超过20个字符！","始发港不能少于1个字符！",0)==false){	    window.document.myform.strRentStartPort.focus()   
	   return false;
	}
	if (is_null (document.myform.strRentAimPort.value,1,"目的港不能为空(空格不算字符)！",1)==false){		   
	   window.document.myform.strRentAimPort.focus()
	   return false;
	}
	if (over_length (document.myform.strRentAimPort.value,20,1,"目的港不能超过20个字符！","目的港不能少于1个字符！",0)==false){	    window.document.myform.strRentAimPort.focus()   
	   return false;
	}
	if (is_null (document.myform.strRentBaleID.value,1,"货物编号不能为空(空格不算字符)！",1)==false){		   
	   window.document.myform.strRentBaleID.focus()
	   return false;
	}
	if (over_length (document.myform.strRentBaleID.value,20,1,"货物编号不能超过20个字符！","货物编号不能少于1个字符！",0)==false){	    window.document.myform.strRentBaleID.focus()   
	   return false;
	}
	if (is_null (document.myform.strRentBaleName.value,1,"货物名称不能为空(空格不算字符)！",1)==false){		   
	   window.document.myform.strRentBaleName.focus()
	   return false;
	}
	if (over_length (document.myform.strRentBaleName.value,20,1,"货物名称不能超过20个字符！","货物名称不能少于1个字符！",0)==false){	    window.document.myform.strRentBaleName.focus()   
	   return false;
	}
	if (is_null (document.myform.strRentQuantity.value,1,"数量不能为空(空格不算字符)！",1)==false){		   
	   window.document.myform.strRentQuantity.focus()
	   return false;
	}
	if(isNaN(myform.strRentQuantity.value)||myform.strRentQuantity.value=="")
    {
    alert("载货吨位只能填数字！");
    window.document.myform.strQuantity.focus();
    return false;
    }
  if(window.document.myform.strQuantity.value<minimum)
    {
    	alert("载货吨位必需大于"+(minimum-1)+"。");
    	window.document.myform.strQuantity.focus()
    	return false;
    }
  else
  return true;
}

//货物跟踪
function checkBaleSearch() {
	if (is_null (document.myform.strSearchTxt.value,1,"查询内容不能为空(空格不算字符)！",1)==false){		   
	   window.document.myform.strSearchTxt.focus()
	   return false;
	}
  else
  return true;
}

//货物跟踪查找
 function checkScoutSearch() {
    if (document.myform.searchList.value == "")
      {
        alert("请选择搜索条件！")
		window.document.myform.searchList.focus()
		return false
       }
	if (document.myform.searchTXT.value == "")
      {
        alert("请填写搜索内容！")
		window.document.myform.searchTXT.focus()
		return false
       }
  else
  return true;
}