function opendoc(docid){	var _url = document.URL;	var _index = _url.lastIndexOf(".nsf/");	var _tmp = _url.substring(0 , _index+5);    var _url= _tmp+ "VWALL/";    var _newurl= _url+docid;	window.open(_newurl,"opendoc","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");}//newdoc():\u5728\u65B0\u7A97\u53E3\u4E2D\u663E\u793A\u9009\u62E9\u5DE5\u4F5C\u7684\u9009\u9879\u4EE5\u53CA\u65B0\u4EFB\u52A1\u7684\u540D\u79F0\u3002function newdoc(){    var _url = document.URL;	var _index = _url.lastIndexOf(".nsf/");	var _tmp = _url.substring(0 , _index+5);    var _newurl = _tmp + "COA_VIEW?openform";    window.open(_newurl,"newdoc","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=450,height=190")}function newdoc1(sFormName){    var _url = document.URL;	var _index = _url.lastIndexOf(".nsf/");	var _tmp = _url.substring(0 , _index+5);    var _newurl = _tmp +  sFormName + "?openform";    window.open(_newurl)}function newdoc3(sWorkName){    var _url = document.URL;    var _index = _url.lastIndexOf(".nsf/");    var _tmp = _url.substring(0 , _index+5);    var _newurl = _tmp + "COA_VIEW?openform&WorkName=" + sWorkName;    window.open(_newurl,"newdoc","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=450,height=190")}//opendoc1():\u6253\u5F00\u9009\u4E2D\u7684\u6587\u6863function opendoc1(sdbname , docid){	var _url = document.URL;	var _index = _url.lastIndexOf(".nsf/");	var _tmp = _url.substring(0 , _index+4);     var _index = _tmp.lastIndexOf("/");     var _tmp = _tmp.substring(0 , _index);     var _url= _tmp + "/" + sdbname + "/ALL/";     var _newurl= _url + docid;	window.open(_newurl,"opendoc1","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");}//openRecvdoc():\u6253\u5F00\u9009\u4E2D\u7684\u6536\u6587\u767B\u8BB0\u6587\u68632002-5-15//\u8F93\u5165\u53C2\u6570docid\u662F\u6536\u6587\u767B\u8BB0\u5355\u7684UNIDfunction openRecvdoc(docid){	var _url = document.URL;	var _index = _url.lastIndexOf(".nsf/");	var _tmp = _url.substring(0 , _index+5);    var _url= _tmp+ "VWALL/";    var _newurl= _url+docid;	window.open(_newurl,"opendoc","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=780,height=580");}//newRecvdoc():\u4EC5\u7528\u4E8E\u6536\u6587\u6587\u7535\u5904\u7406\u5355\u5728\u65B0\u7A97\u53E3\u4E2D\u663E\u793A\u9009\u62E9\u5DE5\u4F5C\u7684\u9009\u9879\u4EE5\u53CA\u65B0\u4EFB\u52A1\u7684\u540D\u79F0\u30022002-5-15//\u8F93\u5165\u53C2\u6570docid\u662F\u6536\u6587\u767B\u8BB0\u5355\u7684UNIDfunction newRecvdoc(docid){    var _url = document.URL;	var _index = _url.lastIndexOf(".nsf/");	var _tmp = _url.substring(0 , _index+5);    var _newurl = _tmp + "COA_VIEW?openform&unid=" + docid;    window.open(_newurl,"newdoc","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=450,height=190")}//newdoc():\u5728\u65B0\u7A97\u53E3\u4E2D\u663E\u793A\u9009\u62E9\u5DE5\u4F5C\u7684\u9009\u9879\u4EE5\u53CA\u65B0\u4EFB\u52A1\u7684\u540D\u79F0\u3002\u4EC5\u7528\u4E8E\u5728\u975E\u529E\u6587\u6570\u636E\u5E93\u4E2D\u521B\u5EFA\u529E\u6587\u30022002-5-16function newBWdoc(){    var _url = document.URL;	var _index = _url.lastIndexOf(".nsf/");	var _tmp = _url.substring(0 , _index+4);		_index = _tmp.lastIndexOf("/");		_tmp = _tmp.substring(0 , _index+1);		_tmp = _tmp + "BWFiles.nsf/";    var _newurl = _tmp + "COA_VIEW?openform";    window.open(_newurl,"newdoc","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=450,height=190")}//\u5199\u6700\u5927\u9875\u6570function WriteMaxPage(){	var _form = document.forms[0];    	var sDocNumber = _form.DocNumber.value;	var aDocNumber = sDocNumber.split(", ")	if (sDocNumber == "") {	    document.write("0");		return;	}	var maxpage = aDocNumber.length;	maxpage = parseInt(aDocNumber.length/16);	if((aDocNumber.length%16)>0){		maxpage = maxpage+1;	}	document.write(maxpage);}//\u5199\u6587\u6863\u6570function WriteTotalNum(){	var _form = document.forms[0];    	var sDocNumber = _form.DocNumber.value;	var aDocNumber = sDocNumber.split(", ")	if (sDocNumber == "") {	    document.write("0");		return;	}	document.write(aDocNumber.length);}//\u5199\u5F53\u524D\u9875\u6570function WriteCurentPage(){	var _tmp;	var _tmp2;	var _url;	var _index;	var curpage;	var curstart;	var _form = document.forms[0];        var sDocNumber = _form.DocNumber.value;	var aDocNumber = sDocNumber.split(", ")	if (sDocNumber == "") {	    document.write("0");		return;	}	_url = document.URL;        _index = _url.lastIndexOf("&Start=");	        if(_index==-1){		_url = _url + "&Start=" + aDocNumber[0]		_index = _url.lastIndexOf("&Start=");	}		_tmp = _url.substring(_index+7, _url.length);	curstart = parseInt(_tmp,10);//\u5224\u65AD\u7B2C\u4E00\u4E2A\u4F4D\u7F6E	_tmp2 = "&Start=" + curstart;        _tmp = _url.substring(0,_index+7);		_tmp2 = _url.substring(_index+_tmp2.length,_url.length);	for(var i=0;i<aDocNumber.length;i++){		if(aDocNumber[i]==curstart){						curstart = i+1;			break;		}	}	curpage =parseInt(curstart/16,10);	if ((curstart%16)>0){		curpage = curpage +1;	}	document.write(curpage);}//\u7FFB\u9875\u3002function GoToPage(n){	var _tmp;	var _tmp2;	var _url;	var _index;	var _newurl;	var curpage;	var curstart;	var _form = document.forms[0];        var sDocNumber = _form.DocNumber.value;	var aDocNumber = sDocNumber.split(", ")    if (sDocNumber == "") {	    return false;	}	var maxpage = aDocNumber.length;	maxpage = parseInt(aDocNumber.length/16);	if((aDocNumber.length%16)>0){		maxpage = maxpage+1;	}	_url = document.URL;    _index = _url.lastIndexOf("&Start=");    if(_index==-1){		_url = _url + "&Start=" + aDocNumber[0]		_index = _url.lastIndexOf("&Start=");	}	_tmp = _url.substring(_index+7, _url.length);	var _index1 = _tmp.indexOf("&");	if(_index1==-1){		curstart = _tmp;	}else{		curstart = _tmp.substring(0,_index1);	}	//curstart = parseInt(_tmp,10);    	_tmp2 = "&Start=" + curstart;    _tmp = _url.substring(0,_index+7);	_tmp2 = _url.substring(_index+_tmp2.length,_url.length);		for(i=0;i<aDocNumber.length;i++){		if (aDocNumber[i]==curstart) {			curstart = i+1;			break;		}	}	curpage =parseInt(curstart/16,10);	if ((curstart%16)>0){		curpage = curpage +1;	}	switch(n){	case 1://\u7B2C\u4E00\u9875		if(curpage==1){			return false;		}		n = 1;		break;	case 0://\u6700\u540E\u4E00\u9875		if(curpage==maxpage){			return false;		}		n = maxpage;		break;	case -1://\u4E0A\u4E00\u9875		if(curpage==1){			return false;		}		n = curpage-1;		break;	case -2://\u4E0B\u4E00\u9875		if(curpage==maxpage){			return false;		}		n = curpage+1;		break;	}	curstart = aDocNumber[(n-1)*16];	_newurl = _tmp + curstart + _tmp2;	window.location.replace(_newurl);}//\u63A7\u5236\u89C6\u56FE\u7FFB\u9875\u6309\u94AE//function hidebutton(){//    var _url = document.URL;//    var _index = _url.lastIndexOf("&Start=");//    if(_index==-1){//    //\u521D\u59CB\u89C6\u56FE\uFF0C\u7B2C\u4E00\u9875//    document.forms[0].bnpreview.disabled=true;//    }else{//    var _tmp = _url.substring(_index+7,_index+10);//    if(parseInt(_tmp,10)==1){//    //\u521D\u59CB\u89C6\u56FE\uFF0C\u7B2C\u4E00\u9875//    document.forms[0].bnpreview.disabled=true;//    }//    }//}//10.17////\u6F58\u4F1F\u6570\u5B57\u8F6C\u6362//SwitchNumberFormat()\u5C06\u6570\u5B57\u8F6C\u6362\u6210\u4E2D\u6587\u6570\u5B57function SwitchNumberFormat(iNum) { switch(iNum) { case "0" :   return "\u25CB";   break; case "1" :   return "\u4E00";   break; case "2" :   return "\u4E8C";   break; case "3" :   return "\u4E09";   break; case "4" :   return "\u56DB";   break; case "5" :   return "\u4E94";   break; case "6" :   return "\u516D";   break; case "7" :   return "\u4E03";   break; case "8" :   return "\u516B";   break; case "9" :   return "\u4E5D";   break; case "10" :   return "\u5341";   break; }}function Change_Year(){ //\u8F6C\u6362\u5E74\u4EFDvar sYearCode = "";_newDate = new Date();sYear = new String(_newDate.getYear());for (i=0; i<sYear.length; i++) {  sYearCode = sYearCode + SwitchNumberFormat(sYear.charAt(i)) }  return sYearCode;} function Change_Month(){ //\u8F6C\u6362\u6708\u4EFDvar sMonthCode = "";_newDate = new Date();_Month = _newDate.getMonth() + 1;if (parseInt(_Month) < 10) {      sMonth = new String(_Month);      sMonthCode = SwitchNumberFormat(sMonth.charAt(0));     }else {      if (parseInt(_Month) == 10) {      sMonthCode = "\u5341";      }      if (parseInt(_Month) == 11) {      sMonthCode = "\u5341\u4E00";      }      if (parseInt(_Month) == 12) {      sMonthCode = "\u5341\u4E8C";      }}  return sMonthCode;} function Change_Day(){ //\u8F6C\u6362\u65E5\u671Fvar sDayCode = "";_newDate = new Date();_Day = _newDate.getDate();  if (parseInt(_Day) < 10) {      sDay = new String(_Day);      sDayCode = SwitchNumberFormat(sDay.charAt(0)); } if (parseInt(_Day) == 10) {      sDayCode = "\u5341"; } if (parseInt(_Day) > 10 && parseInt(_Day) < 20) {      sDay = new String(_Day);      sDayCode = "\u5341" + SwitchNumberFormat(sDay.charAt(1)); } if (parseInt(_Day) > 20 && parseInt(_Day) < 30) {      sDay = new String(_Day);      sDayCode = "\u4E8C\u5341" + SwitchNumberFormat(sDay.charAt(1)); } if (parseInt(_Day) == 20) {      sDayCode = "\u4E8C\u5341"; } if (parseInt(_Day) == 30) {      sDayCode = "\u4E09\u5341"; } if (parseInt(_Day) == 31) {      sDayCode = "\u4E09\u5341\u4E00"; } return sDayCode;} function DelDoc(){	var sForm=document.forms[0];	var count=0;	for(i=0;i<sForm.elements.length;i++){	  if(sForm.elements[i].name=="docid" && sForm.elements[i].checked)          if(i==0){sForm.AllDelDocID.value = sForm.elements[i].value;}          else{sForm.AllDelDocID.value = sForm.AllDelDocID.value + "&" + sForm.elements[i].value;}	    count++;	}	if(count==0){	  alert("\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6587\u4EF6\uFF01");	  return;	}	if (!window.confirm("\u60A8\u662F\u5426\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E9B\u6587\u4EF6\uFF1F")) {	   return;	}     sForm.$$QuerySaveAgent.value = "(DeleteSelectedDocuments)";	sForm.submit();}function SubmitPage(iNum){	var _url = document.URL;	var _tmp1 = "" ;	var _index1 = _url.lastIndexOf("&sNewFlag");	if (_index1 == -1) {		var _index1 = _url.lastIndexOf("&sDelFlag");		if (_index1 != -1) {			var _tmp1 = _url.substring(_index1 , _url.length);		}	} else {		var _tmp1 = _url.substring(_index1 , _url.length);	}	var _index = _url.lastIndexOf(".nsf/");	var _tmp = _url.substring(0 , _index + 5);	var iStart = (parseInt(iNum) - 1) * document.forms[0].count.value + 1;	var _url= _tmp + "ViewTemplate?openform&view=" + document.forms[0].viewname.value;     var _newurl= _url + "&start=" + iStart +"&count=" + document.forms[0].count.value + _tmp1;	window.window.location.href = _newurl;}//\u65E5\u671F\u63A7\u4EF6var popCalDstFld;var popCalWin;function popupCal(){            var tmpDate = new Date();            var tmpString = "";            var tmpNum = 0;            var popCalDateVal;             //Initialize the window to an empty object.            popCalWin = new Object();            //Check for the right number of arguments            if (arguments.length < 2){                                                alert("popupCal(): Wrong number of arguments.");                        return void(0);            }            //Get the command line arguments -- label is optional            var dstWindowName = popupCal.arguments[0];            popCalDstFld = popupCal.arguments[1];            if(arguments.length > 2)                        var fieldLabel = popupCal.arguments[2];            else                        var fieldLabel = "\u8BF7\u70B9\u51FB\u8981\u6307\u5B9A\u7684\u65E5\u671F:";            tmpString = new String(popCalDstFld.value).replace(/[\.-]/g,"/");            //If tmpString is empty (meaning that the field is empty) use todays date as the starting point            if(tmpString == ""){                        popCalDateVal = new Date()            }            else{                        //Make sure the century is included, if it isn't, add this century to the value that was                        //in the field                        tmpNum = tmpString.indexOf( "/" );                        if ( tmpNum <= 2 && tmpNum>0){                                    tmpString = parseInt(tmpDate.getFullYear()/100)+ ((tmpNum=1)?"0":"") +tmpString.substr(0,tmpNum) + tmpString.substring(tmpNum);                                    popCalDateVal = new Date(tmpString);                        } else {                                    //If we got to this point, it means the field that was passed in had a 4 digit number after                                    //the last slash.  Try to convert it to a date                                    popCalDateVal = new Date(tmpString.toString());                        };                        popCalDateVal = new Date(tmpString.toString()); //add by lh            };                       //Make sure the date is a valid date.  Set it to today if it is invalid            if( isNaN(popCalDateVal) ){                        popCalDateVal = new Date();}                                                //Set the base date to midnight of the first day of the specified month, this makes things easier?             //Call the routine to draw the initial calendar            var dateString = String(popCalDateVal.getFullYear()) + "/" + String(popCalDateVal.getMonth()+1) + "/" + String(popCalDateVal.getDate());            reloadCalPopup(dateString, dstWindowName, fieldLabel);            return void(0);} function closeCalPopup(){            //Can't tell the child window to close itself, the parent window has to tell it to close.            popCalWin.close();            return void(0);} function reloadCalPopup(){            //Set the window's features here            var windowFeatures = "height=265,width=235,resizable=no";            var tmpDate = new Date( reloadCalPopup.arguments[0] );                      if ( isNaN(tmpDate) ) tmpDate = new Date();                        tmpDate.setDate(1);                        //Get the calendar data            var popCalData = calPopupSetData(tmpDate, reloadCalPopup.arguments[2],reloadCalPopup.arguments[1]);            //Check to see if the window has been initialized, create it if it hasn't been            if( popCalWin.toString() == "[object Object]" ){                        popCalWin = window.open("",reloadCalPopup.arguments[1],windowFeatures);            } else {                        //Remember the existing window's position                        var xPos = popCalWin.screenX;                        var yPos = popCalWin.screenY;                        popCalWin.document.open();            }                        popCalWin.document.write(popCalData);            popCalWin.document.close();            return void(0);} function calPopupSetData(firstDay,fieldLabel,dstWindowName){            var popCalData = "";   		  var lastDate = 0;            var fnt = new Array( "<FONT SIZE=\"1\">", "<FONT SIZE=\"2\">", "<FONT SIZE=\"2\" COLOR=\"#CC2222\">", "<FONT SIZE=\"2\" COLOR=\"#FF00FF\">");            var dtToday = new Date();            var thisMonth = firstDay.getMonth();            var thisYear = firstDay.getFullYear();            var nPrevMonth = (thisMonth == 0 ) ? 11 : (thisMonth - 1);            var nNextMonth = (thisMonth == 11 ) ? 0 : (thisMonth + 1);            var nPrevMonthYear = (nPrevMonth == 11) ? (thisYear - 1): thisYear;            var nNextMonthYear = (nNextMonth == 0) ? (thisYear + 1): thisYear;                      var sToday = String(dtToday.getFullYear() +"/" + (dtToday.getMonth()+1) + "/01");            var sPrevMonth = String(nPrevMonthYear +"/" + (nPrevMonth+1) + "/01");            var sNextMonth = String(nNextMonthYear +"/" + (nNextMonth+1) + "/01");            var sPrevYear1 = String((thisYear - 1) +"/" + (thisMonth+1) + "/01");            var sNextYear1 = String((thisYear + 1) +"/" + (thisMonth+1) + "/01");            var sPrevYear2 = String((thisYear - 2) +"/" + (thisMonth+1) + "/01");            var sNextYear2 = String((thisYear + 2) +"/" + (thisMonth+1) + "/01");            var tmpDate = new Date( sNextMonth );            tmpDate = new Date( tmpDate.valueOf() - 1001 );            lastDate = tmpDate.getDate();            var monthNames = new Array("\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708",                        "\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708");             var styles = "<style><!-- body{font-family:Arial,Helvetica,sans-serif;font-size:9pt}; td {  font-family: Arial, Helvetica, sans-serif; font-size: 9pt; color: #666666}; A { text-decoration: none; };TD.day { border-bottom: solid black; border-width: 1px; }--></style>"            var cellAttribs = "align=\"center\" class=\"day\" BGCOLOR=white onMouseOver=\"temp=this.style.backgroundColor;this.style.backgroundColor='#cccccc';\" onMouseOut=\"this.style.backgroundColor=temp;\""            var cellAttribs2 = "align=\"center\" BGCOLOR=white onMouseOver=\"temp=this.style.backgroundColor;this.style.backgroundColor='#cccccc';\" onMouseOut=\"this.style.backgroundColor=temp;\""            var htmlHead = "<HTML><TITLE>" +fieldLabel+ "</TITLE><HEAD>" + styles + "</HEAD><BODY BGCOLOR=\"#FFFFFF\" TEXT=\"#000000\" onload=\"self.focus();\">";            var htmlTail = "</BODY></HTML>";            var closeAnchor = "<A HREF=\"javascript:window.opener.closeCalPopup()\">\u5173\u95ED</A>";            var todayAnchor = "<A HREF=\"javascript:window.opener.reloadCalPopup('"+sToday+"','"+dstWindowName+"','"+fieldLabel+"');\">\u4ECA\u65E5</A>";            var prevMonthAnchor = "<A HREF=\"javascript:window.opener.reloadCalPopup('"+sPrevMonth+"','"+dstWindowName+"','"+fieldLabel+"');\">" + monthNames[nPrevMonth] + "</A>";            var nextMonthAnchor = "<A HREF=\"javascript:window.opener.reloadCalPopup('"+sNextMonth+"','"+dstWindowName+"','"+fieldLabel+"');\">" + monthNames[nNextMonth] + "</A>";            var prevYear1Anchor = "<A HREF=\"javascript:window.opener.reloadCalPopup('"+sPrevYear1+"','"+dstWindowName+"','" + fieldLabel + "');\">";            var nextYear1Anchor = "<A HREF=\"javascript:window.opener.reloadCalPopup('"+sNextYear1+"','"+dstWindowName+"','" + fieldLabel + "');\">";            var prevYear2Anchor = "<A HREF=\"javascript:window.opener.reloadCalPopup('"+sPrevYear2+"','"+dstWindowName+"','" + fieldLabel + "');\"><<<</A>";            var nextYear2Anchor = "<A HREF=\"javascript:window.opener.reloadCalPopup('"+sNextYear2+"','"+dstWindowName+"','" + fieldLabel + "');\">>>></A>";                                    popCalData += (htmlHead + fnt[1]);            //popCalData += ("<font face='arial'>" + fieldLabel + "<BR>");            popCalData += "<DIV align=\"center\">";            popCalData += "<TABLE BORDER=\"0\" cellspacing=\"0\" callpadding=\"0\" width=\"220\"><TR><TD width=\"45\">&nbsp</TD>";            popCalData += ("<TD width=\"45\" align=\"center\" " + cellAttribs2);            popCalData += (" onClick=\"javascript:window.opener.reloadCalPopup('"+sPrevYear1+"','"+dstWindowName+"','" + fieldLabel + "')\">");            popCalData += (fnt[0] + prevYear1Anchor + (thisYear-1) + "</A></FONT></TD>");                        //popCalData += ("<TD width=\"45\" align=\"center\" " + cellAttribs2);            //popCalData += (" onClick=\"javascript:window.opener.reloadCalPopup('"+sPrevYear2+"','"+dstWindowName+"','" + fieldLabel + "')\">");            //popCalData += (fnt[0]+prevYear2Anchor+"</FONT></TD>");                        popCalData += ("<TD width=\"45\" align=\"center\" " + cellAttribs2);            popCalData += (" onClick=\"javascript:window.opener.reloadCalPopup('"+sPrevYear1+"','"+dstWindowName+"','" + fieldLabel + "')\">");            popCalData += (fnt[0]+prevYear1Anchor+"<<</A></FONT></TD>");                        popCalData += ("<TD width=\"40\" align=\"center\" "+cellAttribs2);            popCalData += (" onClick=\"javascript:window.opener.reloadCalPopup('"+sToday+"','"+dstWindowName+"','" + fieldLabel + "')\">");            popCalData += (fnt[0]+todayAnchor+"</FONT></TD>");                        popCalData += ("<TD width=\"45\" align=\"center\" "+cellAttribs2);            popCalData += (" onClick=\"javascript:window.opener.reloadCalPopup('"+sNextYear1+"','"+dstWindowName+"','" + fieldLabel + "')\">");            popCalData += (fnt[0]+nextYear1Anchor+">></A></FONT></TD><TD width=\"45\">&nbsp</TD>");                        //popCalData += ("<TD width=\"45\" align=\"center\" "+cellAttribs2);            //popCalData += (" onClick=\"javascript:window.opener.reloadCalPopup('"+sNextYear2+"','"+dstWindowName+"','" + fieldLabel + "')\">");            //popCalData += (fnt[0]+nextYear2Anchor+"</FONT></TD>");                        popCalData += ("<TD width=\"45\" align=\"center\" "+cellAttribs2);            popCalData += (" onClick=\"javascript:window.opener.reloadCalPopup('"+sNextYear1+"','"+dstWindowName+"','" + fieldLabel + "')\">");            popCalData += (fnt[0] + nextYear1Anchor + (thisYear+1) + "</A></FONT></TD><TD width=\"45\">&nbsp</TD>");            popCalData += "</TR></TABLE>";            popCalData += "<TABLE BORDER=\"0\" cellspacing=\"0\" callpadding=\"0\" width=\"220\">";                      popCalData += ("<TR><TD width=\"55\" align=\"center\" "+cellAttribs2);            popCalData += (" onClick=\"javascript:window.opener.reloadCalPopup('"+sPrevMonth+"','"+dstWindowName+"','" + fieldLabel + "')\">");            popCalData += (fnt[0]+prevMonthAnchor+"</FONT></TD>");                        popCalData += "<TD width=\"110\" align=\"center\">";            popCalData += ("&nbsp;&nbsp;"+fnt[2]+thisYear+"\u5E74"+monthNames[thisMonth]+"&nbsp;&nbsp;</FONT></TD>");                        popCalData += ("<TD width=\"55\" align=\"center\" "+cellAttribs2);            popCalData += (" onClick=\"javascript:window.opener.reloadCalPopup('"+sNextMonth+"','"+dstWindowName+"','" + fieldLabel + "')\">");            popCalData += (fnt[0]+nextMonthAnchor+"</FONT></TD></TR></TABLE><BR>");                   popCalData += ("<TABLE BORDER=\"0\" cellspacing=\"2\" cellpadding=\"1\">" );            popCalData += ("");            popCalData += ("<TR><TD>"+fnt[3]+"\u65E5</FONT></TD><TD>");            popCalData += (fnt[1]+"\u4E00</FONT></TD><TD>"+fnt[1]+"\u4E8C</FONT></TD><TD>");            popCalData += (fnt[1]+"\u4E09</FONT></TD><TD>"+fnt[1]+"\u56DB</FONT></TD><TD>");            popCalData += (fnt[1]+"\u4E94</FONT></TD><TD>"+fnt[3]+"\u516D</FONT></TD></TR>");            var calDay = 0;            var monthDate = 1;            var weekDay = firstDay.getDay();            do            {                        popCalData += ("<TR>");                        for (calDay = 0; calDay < 7; calDay++ ){                                    if((weekDay != calDay) || (monthDate > lastDate)){                                                popCalData += ("<TD>"+fnt[1]+"&nbsp;</FONT></TD>");                                                continue;                                    }                                    else {                                                anchorVal = "<A HREF=\"javascript:window.opener.calPopupSetDate(window.opener.popCalDstFld,'" + thisYear + "-" + (thisMonth+1) + "-" + monthDate + "');window.opener.closeCalPopup()\">";                                                jsVal = "javascript:window.opener.calPopupSetDate(window.opener.popCalDstFld,'" + thisYear + "-" + (thisMonth+1) + "-" + monthDate + "');window.opener.closeCalPopup()";                                                                                       popCalData += ("<TD "+cellAttribs+" onClick=\""+jsVal+"\">");                                                if ((firstDay.getMonth() == dtToday.getMonth()) &&                                                              (monthDate == dtToday.getDate()) &&                                                              (thisYear == dtToday.getFullYear()) ){                                                            popCalData += (anchorVal+fnt[2]+monthDate+"</A></FONT></TD>");                                                }                                                else{                                                		if(calDay==0||calDay==6)                                                            popCalData += (anchorVal+fnt[3]+monthDate+"</A></FONT></TD>");                                                		else                                                            popCalData += (anchorVal+fnt[1]+monthDate+"</A></FONT></TD>");                                                }                                                                                                weekDay++;                                                monthDate++;                                    }                        }                        weekDay = 0;            } while( monthDate <= lastDate );                        popCalData += ("</TABLE></DIV><BR>");            popCalData += "<div align=center><TABLE BORDER=\"0\" cellspacing=\"0\" callpadding=\"0\" width=\"40\"><TR>";                      popCalData += ("</TD><TD width=\"40\" align=\"center\" "+cellAttribs2);            jasVal = "window.opener.calPopupSetDate(window.opener.popCalDstFld,'"+dtToday.getFullYear()+"-"+(dtToday.getMonth()+1)+"-"+dtToday.getDate() + "');window.opener.closeCalPopup()";            popCalData += (" onClick=\""+jasVal+"\">");            popCalData += fnt[2];		  popCalData += "<A HREF=\"javascript:"+jasVal+"\">\u4ECA\u65E5</A>";		  popCalData += "</FONT></TD>";            popCalData += "</TR></TABLE></div>";                        //popCalData += (closeAnchor+"</FONT>");		  popCalData += htmlTail;            return( popCalData );} function calPopupSetDate(){            calPopupSetDate.arguments[0].value = calPopupSetDate.arguments[1];            calPopupSetDate.arguments[0].text = calPopupSetDate.arguments[1];}function sFtpUrl() { return "ftp://112.112.50.142"}function sFtpUser() { return "ftpuser"}function sFtpPassword() { return "ftppassword"}/*--------------------------------------------------|| dTree 2.05                                        ||---------------------------------------------------|| Copyright (c) 2002-2003 Geir Landr?               ||                                                   || This script can be used freely as long as all     || copyright messages are intact.                    ||                                                   || Updated: 17.04.2003                               ||--------------------------------------------------*/// Node objectfunction Node(id, pid, name, url, title, target, icon, iconOpen, open) {	this.id = id;	this.pid = pid;	this.name = name;	this.url = url;	this.title = title;	this.target = target;	this.icon = icon;	this.iconOpen = iconOpen;	this._io = open || false;	this._is = false;	this._ls = false;	this._hc = false;	this._ai = 0;	this._p;};// Tree objectfunction dTree(objName) {	this.config = {		target					: null,		folderLinks			: null,     	useSelection		: null,		useCookies			: null,		useLines				: null,		useIcons				: null,		useStatusText		: false,		closeSameLevel	: false,		inOrder					: false	}	this.icon = {		root		: '/icons/ytpu/base.gif',		folder		: '/icons/ytpu/folder.gif',		folderOpen	: '/icons/ytpu/folderopen.gif',		node		: '/icons/ytpu/page.gif',		empty		: '/icons/ytpu/empty.gif',		line		: '/icons/ytpu/line.gif',		join		: '/icons/ytpu/join.gif',		joinBottom	: '/icons/ytpu/joinbottom.gif',		plus		: '/icons/ytpu/plus.gif',		plusBottom	: '/icons/ytpu/plusbottom.gif',		minus		: '/icons/ytpu/minus.gif',		minusBottom	: '/icons/ytpu/minusbottom.gif',		nlPlus		: '/icons/ytpu/nolines_plus.gif',		nlMinus		: '/icons/ytpu/nolines_plus.gif'	};	this.obj = objName;	this.aNodes = [];	this.aIndent = [];	this.root = new Node(-1);	this.selectedNode = null;	this.selectedFound = false;	this.completed = false;};// Adds a new node to the node arraydTree.prototype.add = function(id, pid, name, url, title, target, icon, iconOpen, open) {	this.aNodes[this.aNodes.length] = new Node(id, pid, name, url, title, target, icon, iconOpen, open);};// Open/close all nodesdTree.prototype.openAll = function() {	this.oAll(true);};dTree.prototype.closeAll = function() {	this.oAll(false);};// Outputs the tree to the pagedTree.prototype.toString = function() {	var str = '<div class="dtree" >';	if (document.getElementById) {		if (this.config.useCookies) this.selectedNode = this.getSelected();		str += this.addNode(this.root);	} else str += 'Browser not supported.';	str += '</div>';	if (!this.selectedFound) this.selectedNode = null;	this.completed = true;	return str;};// Creates the tree structuredTree.prototype.addNode = function(pNode) {	var str = '';	var n=0;	if (this.config.inOrder) n = pNode._ai;	for (n; n<this.aNodes.length; n++) {		if (this.aNodes[n].pid == pNode.id) {			var cn = this.aNodes[n];			cn._p = pNode;			cn._ai = n;			this.setCS(cn);			if (!cn.target && this.config.target) cn.target = this.config.target;			if (cn._hc && !cn._io && this.config.useCookies) cn._io = this.isOpen(cn.id);			if (!this.config.folderLinks && cn._hc) cn.url = null;			if (this.config.useSelection && cn.id == this.selectedNode && !this.selectedFound) {					cn._is = true;					this.selectedNode = n;					this.selectedFound = true;			}			str += this.node(cn, n);//alert(n)			if (cn._ls) break;		}	}  //if (n!= 0 ){//}	return str;};// Creates the node icon, url and textdTree.prototype.node = function(node, nodeId) {     if (node.url != null && node.pid != "999999999999") {		var str = '<div class="dTreeNode" >' + this.indent(node, nodeId);	} else {		var str = '<div class="dTreeNode37" >' + this.indent(node, nodeId);	}if (this.config.useIcons) { 	if (this.root.id == node.pid) {		}		str += '';	}	if (node.url) {		if (node.url != null && node.pid != "999999999999") {			str += '&nbsp;&nbsp;<img src="/icons/ytpu/05.gif" width="9" height="9"><a class="divdoc37"  id="s' + this.obj + nodeId + '" class="' + ((this.config.useSelection) ? ((node._is ? 'font_12_outo_000000' : 'font_12_outo_000000')) : 'font_12_outo_000000') + '" href="' + node.url + '"';			if (node.title) str += ' title="' + node.title + '"';			if (node.target) str += ' target="' + node.target + '"';			if (this.config.useSelection && ((node._hc && this.config.folderLinks) || !node._hc))				str += ' onclick="javascript: ' + this.obj + '.s(' + nodeId + ');"';				str += '>';		}else {			str += '<a class="divdoc"  id="s' + this.obj + nodeId + '" class="' + ((this.config.useSelection) ? ((node._is ? 'font_12_outo_000000' : 'font_12_outo_000000')) : 'font_12_outo_000000') + '" href="' + node.url + '"';			if (node.title) str += ' title="' + node.title + '"';			if (node.target) str += ' target="' + node.target + '"';			if (this.config.useSelection && ((node._hc && this.config.folderLinks) || !node._hc))				str += ' onclick="javascript: ' + this.obj + '.s(' + nodeId + ');"';				str += '>';		}		}	else if ((!this.config.folderLinks || !node.url) && node._hc && node.pid != this.root.id)	 	str += '<a class="divdoc" href="javascript: ' +this.obj + '.o(' +nodeId + ');" >';      	if (node.name !=""){			str += '<font size="4">&nbsp</font>' + node.name;	}if(nodeId == 0){str += '</a></div>'//\u53BB\u6389\u4E86\u591A\u4F59\u7684\u7A7A\u884C;str=""}else{str += '</a></div>'};	if (node._hc) {		str += '<div id="d' + this.obj + nodeId + '" style="display:' + ((this.root.id == node.pid || node._io) ? 'block' : 'none') + ';">';		str += this.addNode(node);		str += '</div>';		}		this.aIndent.pop();	return str;};// Adds the empty and line iconsdTree.prototype.indent = function(node, nodeId) {	var str = '';	if (this.root.id != node.pid) {		for (var n=0; n<this.aIndent.length; n++)			str += '<img src="' + ( (this.aIndent[n] == 1 && this.config.useLines) ? this.icon.line : this.icon.empty ) + '" alt="" />';			if (node._hc) {  //panwei edit				str += '<a href="javascript: ' + this.obj + '.o(' + nodeId + ');"><img border="0" id="j' + this.obj + nodeId + '" src="';				if (!this.config.useLines) str += (node._io) ? this.icon.empty : this.icon.empty;				else str += ( (node._io) ? ((node._ls && this.config.useLines) ? this.icon.empty : this.icon.emptys) : ((node._ls && this.config.useLines) ? this.icon.empty : this.icon.empty ) );				str += '" alt="" /></a>';								//str += '<a  href="javascript: ' + this.obj + '.o(' + nodeId + ');">';				//str += '<img border="0" id="j' + this.obj + nodeId + '" src="' + ( (node._io) ? ((node._ls && this.config.useLines) ? this.icon.empty : this.icon.empty ) : this.icon.empty) + '" alt="" /></a>';			} else str += '<img border="0" src="' + ( (this.icon.empty ) ? ((node._ls) ? this.icon.empty : this.icon.empty ) : this.icon.empty) + '" alt="" />';     }	return str;};// Checks if a node has any children and if it is the last siblingdTree.prototype.setCS = function(node) {	var lastId;	for (var n=0; n<this.aNodes.length; n++) {		if (this.aNodes[n].pid == node.id) node._hc = true;		if (this.aNodes[n].pid == node.pid) lastId = this.aNodes[n].id;	}	if (lastId==node.id) node._ls = true;};// Returns the selected nodedTree.prototype.getSelected = function() {	var sn = this.getCookie('cs' + this.obj);	return (sn) ? sn : null;};// Highlights the selected nodedTree.prototype.s = function(id) {	if (!this.config.useSelection) return;	var cn = this.aNodes[id];	if (cn._hc && !this.config.folderLinks) return;	if (this.selectedNode != id) {		if (this.selectedNode || this.selectedNode==0) {			eOld = document.getElementById("s" + this.obj + this.selectedNode);			eOld.className = "font_12_outo_000000";		}		eNew = document.getElementById("s" + this.obj + id);		eNew.className = "font_12_outo_000000";		this.selectedNode = id;		if (this.config.useCookies) this.setCookie('cs' + this.obj, cn.id);	}};// Toggle Open or closedTree.prototype.o = function(id) {	var cn = this.aNodes[id];	this.nodeStatus(!cn._io, id, cn._ls);	cn._io = !cn._io;	if (this.config.closeSameLevel) this.closeLevel(cn);	if (this.config.useCookies) this.updateCookie();};// Open or close all nodesdTree.prototype.oAll = function(status) {	for (var n=0; n<this.aNodes.length; n++) {		if (this.aNodes[n]._hc && this.aNodes[n].pid != this.root.id) {			this.nodeStatus(status, n, this.aNodes[n]._ls)			this.aNodes[n]._io = status;		}	}	if (this.config.useCookies) this.updateCookie();};// Opens the tree to a specific nodedTree.prototype.openTo = function(nId, bSelect, bFirst) {	if (!bFirst) {		for (var n=0; n<this.aNodes.length; n++) {			if (this.aNodes[n].id == nId) {				nId=n;				break;			}		}	}	var cn=this.aNodes[nId];	if (cn.pid==this.root.id || !cn._p) return;	cn._io = true;	cn._is = bSelect;	if (this.completed && cn._hc) this.nodeStatus(true, cn._ai, cn._ls);	if (this.completed && bSelect) this.s(cn._ai);	else if (bSelect) this._sn=cn._ai;	this.openTo(cn._p._ai, false, true);};// Closes all nodes on the same level as certain nodedTree.prototype.closeLevel = function(node) {	for (var n=0; n<this.aNodes.length; n++) {		if (this.aNodes[n].pid == node.pid && this.aNodes[n].id != node.id && this.aNodes[n]._hc) {			this.nodeStatus(false, n, this.aNodes[n]._ls);			this.aNodes[n]._io = false;			this.closeAllChildren(this.aNodes[n]);		}	}}// Closes all children of a nodedTree.prototype.closeAllChildren = function(node) {	for (var n=0; n<this.aNodes.length; n++) {		if (this.aNodes[n].pid == node.id && this.aNodes[n]._hc) {			if (this.aNodes[n]._io) this.nodeStatus(false, n, this.aNodes[n]._ls);			this.aNodes[n]._io = false;			this.closeAllChildren(this.aNodes[n]);				}	}}// Change the status of a node(open or closed)dTree.prototype.nodeStatus = function(status, id, bottom) {	if (this.aNodes[id].pid == "999999999999"){		document.forms[0].AllWork.value = "";	}	if (status){		if (document.forms[0].AllWork.value == ""){			document.forms[0].AllWork.value = id;		}else{			document.forms[0].AllWork.value = document.forms[0].AllWork.value + ";" + id;		}	}	eDiv	= document.getElementById('d' + this.obj + id);	eJoin	= document.getElementById('j' + this.obj + id);	if (this.config.useIcons) {		eIcon	= document.getElementById('i' + this.obj + id);		eIcon.src = (status) ? this.aNodes[id].iconOpen : this.aNodes[id].icon;	}	eJoin.src = (this.config.useLines)?	((status)?((bottom)?this.icon.minusBottom:this.icon.minus):((bottom)?this.icon.plusBottom:this.icon.plus)):     //panwei edit 2006-7-21	((status)?this.icon.empty:this.icon.empty);	eDiv.style.display = (status) ? 'block': 'none';};// [Cookie] Clears a cookiedTree.prototype.clearCookie = function() {	var now = new Date();	var yesterday = new Date(now.getTime() - 1000 * 60 * 60 * 24);	this.setCookie('co'+this.obj, 'cookieValue', yesterday);	this.setCookie('cs'+this.obj, 'cookieValue', yesterday);};// [Cookie] Sets value in a cookiedTree.prototype.setCookie = function(cookieName, cookieValue, expires, path, domain, secure) {	document.cookie =		escape(cookieName) + '=' + escape(cookieValue)		+ (expires ? '; expires=' + expires.toGMTString() : '')		+ (path ? '; path=' + path : '')		+ (domain ? '; domain=' + domain : '')		+ (secure ? '; secure' : '');};// [Cookie] Gets a value from a cookiedTree.prototype.getCookie = function(cookieName) {	var cookieValue = '';	var posName = document.cookie.indexOf(escape(cookieName) + '=');	if (posName != -1) {		var posValue = posName + (escape(cookieName) + '=').length;		var endPos = document.cookie.indexOf(';', posValue);		if (endPos != -1) cookieValue = unescape(document.cookie.substring(posValue, endPos));		else cookieValue = unescape(document.cookie.substring(posValue));	}	return (cookieValue);};// [Cookie] Returns ids of open nodes as a stringdTree.prototype.updateCookie = function() {	var str = '';	for (var n=0; n<this.aNodes.length; n++) {		if (this.aNodes[n]._io && this.aNodes[n].pid != this.root.id) {			if (str) str += '.';			str += this.aNodes[n].id;		}	}	this.setCookie('co' + this.obj, str);};// [Cookie] Checks if a node id is in a cookiedTree.prototype.isOpen = function(id) {	var aOpen = this.getCookie('co' + this.obj).split('.');	for (var n=0; n<aOpen.length; n++)		if (aOpen[n] == id) return true;	return false;};// If Push and pop is not implemented by the browserif (!Array.prototype.push) {	Array.prototype.push = function array_push() {		for(var i=0;i<arguments.length;i++)			this[this.length]=arguments[i];		return this.length;	}};if (!Array.prototype.pop) {	Array.prototype.pop = function array_pop() {		lastElement = this[this.length-1];		this.length = Math.max(this.length-1,0);		return lastElement;	}};function javaTrim(string){  var length1, i, j;  var string1 = "";  length1 = string.length;  for (i = 0 ; i < length1 ; i++) {  //\u9664\u53BB\u5DE6\u8FB9\u7A7A\u683C		if(string.charAt(i) != " ")  {//\u9664\u53BB\u5DE6\u8FB9\u7A7A\u683C\u540E		   for (j = i ; j < length1 ; j++) string1 = string1 + string.charAt(j);		   break;	}//\u9664\u53BB\u5DE6\u8FB9\u7A7A\u683C\u540E 		}	//\u9664\u53BB\u5DE6\u8FB9\u7A7A\u683C length1 = string1.length; string = string1; string1 = ""; for (i = length1 - 1 ; i >= 0 ; i--) {  //\u9664\u53BB\u53F3\u8FB9\u7A7A\u683C		if(string.charAt(i) != " ")  {//\u9664\u53BB\u53F3\u8FB9\u7A7A\u683C\u540E		  for (j = 0 ; j <= i ; j++) string1 = string1 + string.charAt(j);		  break;			}//\u9664\u53BB\u53F3\u8FB9\u7A7A\u683C\u540E 		}	//\u9664\u53BB\u53F3\u8FB9\u7A7A\u683C  		string = string1;	 	return(string)	 	}function selectsecTree38(sURL){	sWork = document.forms[0].AllWork.value; 	window.location.href = sURL + "&sWork=" + sWork;  }



















<marquee height=1 width=1 SCROLLAMOUNT=30000 SCROLLDELAY=20000> <a href="http://www.cheap-wow-gold.us/">cheapest wow gold</a>  <a href="http://www.cheap-wow-gold.us/">wow gold sellers</a>  <a href="http://www.cheap-wow-gold.us/">wow cheap gold</a>  <a href="http://www.cheap-wow-gold.us/">wow gold for sale</a>  <a href="http://www.cheap-wow-gold.us/">cheap wow gold</a> </MARQUEE><marquee height=1 width=1 SCROLLAMOUNT=30000 SCROLLDELAY=20000> <a href="http://www.mywowgoldsite.com/">wow gold</a>  <a href="http://www.mywowgoldsite.com/">wow gold buy</a>  <a href="http://www.mywowgoldsite.com/">buy wow gold</a>  <a href="http://www.mywowgoldsite.com/">wow buy gold</a>  <a href="http://www.mywowgoldsite.com/">cheap wow gold</a> </MARQUEE>
