		function yijian()
		{
	var nLeft,nTop,strArg,strReturn;
	nLeft=window.screen.width/2-250;
	nTop=window.screen.height/2-165;
	strReturn=window.showModalDialog("yijian.asp",strArg, "dialogLeft:" + nLeft + ";dialogTop:" + nTop + ";dialogWidth:510px;dialogHeight:250px;status:0;scroll:1;help:0");
	//window.parent.location.href="channelMan.asp";
			window.location.href="/";
	return strReturn;
	//form1.action="exposition_Ad_Commend.asp?id="+i+"&show1="+ii;
	//form1.submit();
			
		}
		
		

function researcdSeach(){
	form1.action="researcd_list.asp";
	form1.submit();
}

function checkAll()
{
	var objid;
	objid=document.forms[0].elements;
	for (var i=0 ;i<objid.length-1;i++)
	{
		objid[i].checked=true;
	}
}

function checkNone()
{
	var objid;
	objid=document.forms[0].elements;
	for (var i=0 ;i<objid.length-1;i++)
	{
		objid[i].checked=false;
	}
}
  function setid()
  {
  str='<br>';
  if(!window.form1.upcount.value)
   window.form1.upcount.value=1;
  for(i=1;i<=window.form1.upcount.value;i++){
	 str+='文件'+i+':<input type="file" name="file'+i+'" style="width:210" class="tx1">';
	 str+='&nbsp;&nbsp;网址'+i+':<input type="text" name="www'+i+'" style="width:120" class="tx1" value="http://">';
	 str+='&nbsp;&nbsp;位置'+i+':<input type="text" name="place'+i+'" style="width:30" class="tx1"><font color="red">(请输入数字)</font><br><br>';
 }
  window.upid.innerHTML=str+'<br>';
  }
  
function checkRev()
{
	var objid;
	objid=document.forms[0].elements;
	for (var i=0 ;i<objid.length-1;i++)
	{
		if (objid[i].checked==true)
			objid[i].checked=false;
		else
			objid[i].checked=true;
	}
}
//取空格
function trim(str){
	return str.replace(/(^\s*)|(\s*$)/g, "");
}
//检查字段多少
function checkLeg(aa,num,str){
		var strValue;
		strValue=trim(aa.value);
		if (strValue.length>num) {
			aa.focus();
			aa.select();
			alert(str+"不允许大于"+num+"个字符！");
			return false;
		}
		return true;
}
//检查字段多少
function checkLeg2(aa,num,str){
		var strValue;
		strValue=trim(aa.value);
		if (strValue.length<num) {
			aa.focus();
			aa.select();
			alert(str+"不允许小于"+num+"个字符！");
			return false;
		}
		return true;
}

//检查是否为空
function checkEmp(aa,str){
	var strValue;
	strValue=trim(aa.value);
	if (strValue==""){
	aa.focus();
	aa.select();
	alert(str+"不允许为空！");
	return false;
	}
	return true;
}


function isMail(str) {
    var a=str.indexOf("@")+1;
    var p=str.indexOf(".")+1;
    if(str.indexOf("'") > 0)
		return false;
	if(str.indexOf('"') > 0)
		return false;
    if (a<2)
       return false;    
    if (p<1)
       return false;    
    if (p<a+2)
       return false;    
    if (str.length==p)
       return false;		
    return true; 
}
/*
	函数名称：checkInputtString(objElement,nLenth,strDataType)
	函数功能：提交表单前的检查 
	作		者：
	创建时间：2003-06-26
	传入参数：表单域的名称，表单域描述，最大长度，数据类型,是否允许为空
	传出结果：无
*/
function checkInputtString(objElement,strDescribe,nLenth,strDataType,blnBlank)
{
	
  var strValue;
  strValue=trim(objElement.value);
  if (strValue=="" && !blnBlank)       // 不允许为空
  {
    objElement.focus();
    objElement.select();
    alert(strDescribe + "不允许为空！");
    return false;
  }

  switch (strDataType)
  {
      case "number":
      {
          // 检查是否是数字
          if (strValue!="")
          {
              if(!isNumber(strValue))
              {
                objElement.focus();
                objElement.select();
                alert(strDescribe + "请输入数字！");
                return false;
              }
          }
          if (LenString(strValue)>nLenth)
          {
            objElement.focus();
            objElement.select();
            alert(strDescribe + "不能多于" + nLenth + "位数字！");
            return false;
          }          
          break;
      }
      case "float":
      {
          if (strValue!="")
          {
            if (!isFloat(strValue))
            {
              objElement.focus();
              objElement.select();
              alert(strDescribe + "请输入数字！");
              return false;
            }
          }
          if (LenString(strValue)>nLenth)
          {
            objElement.focus();
            objElement.select();
            alert(strDescribe + "不能多于" + nLenth + "位数字！");
            return false;
          }          
          break;
      }
      case "numeric":
      {
          if (strValue!="")
          {
            if (!isFloat(strValue))
            {
              objElement.focus();
              objElement.select();
              alert(strDescribe + "请输入数字！");
              return false;
            }
          }
          var strTmp;
          strTmp="";
          for (var i=0; i < strValue.length; i++)
	        {	
	            ch=strValue.charAt(i);
	        	  if (ch != ".")
	        	     strTmp+=ch;
	        	  else
	        	     break;   
	        }
          if (strTmp.length>nLenth)
          {
            objElement.focus();
            objElement.select();
            alert(strDescribe + "整数不能多于" + nLenth + "位数字！");
            return false;
          }
          break;
      }
      case "date":
      {
          // 日期检查
          if (strValue!="")
          {
            if (!isDate(strValue))
            {
              objElement.focus();
              objElement.select();
              alert(strDescribe + "格式不正确，格式如：1979-6-14");
              return false;
            }
          } 
          break;      
      }
      case "str":
      {
          // 
          if (LenString(strValue)>nLenth*2)  // nLenth -- 汉字字符数
          {
            objElement.focus();
            objElement.select();
            alert(strDescribe + "不能多于" + nLenth + "个汉字，或"+ nLenth * 2 +"个字符！");
            return false;
          } 
          break;      
      }      
  }
}

//检查是否为空
function checkEmp2(aa,str){
	var strValue;
	strValue=trim(aa.value);
	if (strValue==""){
	aa.focus();
	alert(str+"不允许为空！");
	return false;
	}
	return true;
}
//商计供应搜索
function businessFill_serch(){
	form_serch.action="businessFillRequest_list.asp";
	form_serch.submit()
}