function getList(tbRow) {
    var index = tbRow.rowIndex;
    var newxtTr = document.all.tb_list.rows(index +1);    if(newxtTr.style.display == "") {
        tbRow.cells(0).children[0].src = "../images/web_1.gif";
        newxtTr.style.display = "none";
    }
    else {
        tbRow.cells(0).children[0].src = "../images/web_2.gif";
        newxtTr.style.display = "";        if(newxtTr.cells(1).innerHTML.trim().length == 0) {
            newxtTr.cells(1).innerHTML = MyHealth_SearchReturn.GetCatalogList(tbRow.cells(1).innerHTML).value;
        }
    }
}
//20101222 ll 查询事件,不做编码操作,直接以原来编码过的url.
function searchClick() {
   if(checkform())
   {
    var starDate = "&start=" + document.getElementById("starDate").value;
    var endDate = "&end=" + document.getElementById("endDate").value;    var strHref = window.location.href;
    var strUrl = strHref.match("(org_)?SearchReturn.*")[0];
    if(strUrl.indexOf("start") != -1) {
        strUrl = strUrl.replace(/(&?)start\=.*(&?)/ig, starDate);
    }
    else {
        strUrl = strUrl + starDate;
    }
    if(strUrl.indexOf("end") != -1) {
        strUrl = strUrl.replace(/(&?)end\=.*(&?)/ig, endDate);
    }
    else {
        strUrl = strUrl + endDate;
    }
    
    window.location.href = strUrl;
  
    }
    else return false;
}//20101222 ll url编码
function urlCoding(strUrl) {
    var newUrl = encodeURI(strUrl);
    
    if(navigator.appName == "Microsoft Internet Explorer") {
        var linkEle = document.getElementById("hiddenLink");
        linkEle.href = newUrl;
        linkEle.click();
    }
    else {
        window.location.href = newUrl;
    }
}  

解决方案 »

  1.   

    难道是这段代码的错误   function opinionStartTimeEndTime( stratTime , endTime ){
            
            //alert("opinionStartTimeEndTime") ;
            // 截取日期字符串
            var end = endTime.split( "-" );var strat = stratTime.split( "-" );
            
         // 判断
            if(strat[0] <  end[0] ){
                return true ;
            } 
            if( strat[0] == end[0] ) {
               if(strat[1] <  end[1] ){
                   return true ;
               } 
               if( strat[1] == end[1] ) {
                  if(strat[2] <=  end[2] ){
                     return true ;
                  }
                  else return false;
               }
               else return false;
           }
           else return false;
        }        function checkform()
        {
             var starttime=document.getElementById("starDate").value;
             var endtime=document.getElementById("endDate").value;
             var now=new Date();
             var year=now.getYear();
             var month=now.getMonth()+1;
             var day=now.getDate();
             month=month>=10?month:('0'+month);
             day=day>=10?day:('0'+day);
             now=year+'-'+month+'-'+day;         if(starttime=="")
             {alert("请输入您要查询的开始时间!");return false;}
             else if(endtime=="")
             {alert("请输入您要查询的结束时间!");return false;}
             else if(!opinionStartTimeEndTime(endtime,now))
             {alert("您选择的结束日期大于今天,请重新选择!");return false;}
             else if(!opinionStartTimeEndTime(starttime,endtime))
             {alert("您选择的开始日期大于结束日期,请重新选择!");return false}
             else return true;
        }所有的脚本就这些 。加载这些脚本就报那错  很纠结啊
      

  2.   

    最后一个return false没有 加分号!!