function $(s){return document.getElementById(s);};function dw(s){document.write(s);};function $$(s){return document.frames?document.frames[s]:$(s).contentWindow;};function $c(s){return document.createElement(s);};function exist(s){return $(s)!=null;};function isNull(_sVal){return (_sVal==""||_sVal==null||_sVal=="undefined");};function hide(s){$(s).style.display=$(s).style.display=="none"?"":"none";};function swap(s,a,b,c){$(s)[a]=$(s)[a]==b?c:b;};function isIE(){return BROWSER.indexOf('ie')>-1;};function setCopy(_sTxt){try{clipboardData.setData('Text',_sTxt)}catch(e){}};function OpenEditWindow(){setTimeout("parent.document.getElementById('BHA_frame').cols='140,0,*'",500);};function CloseEditWindow(){parent.document.getElementById("BHA_frame").cols="140,*,0";};function GotoNewsWindows(s){parent.Edit.location=s;OpenEditWindow();};function Button(Str_Button_Text,Str_Window,Str_FileName,Str_Script){var Str_Temp="<input type=button value='"+Str_Button_Text+"' class=hand style='Width:80;' onclick=\"";switch(Str_Window){case "":Str_Temp+="window.location='"+Str_FileName+"';\">";break;case "New":Str_Temp+="parent.Edit.location='"+Str_FileName+"';OpenEditWindow();\">";break;case "Back":Str_Temp+="CloseEditWindow();\">";break;case "UpdateBack":Str_Temp+="parent.middle.location='"+Str_FileName+"';CloseEditWindow();\">";break;case "Script":Str_Temp+=""+Str_Script+";\">";break;};return Str_Temp;};var BROWSER=browserDetect();function browserDetect(){var sUA=navigator.userAgent.toLowerCase();var sIE=sUA.indexOf("msie");var sOpera=sUA.indexOf("opera");var sMoz=sUA.indexOf("gecko");if(sOpera!=-1){return "opera";};if(sIE!=-1){nIeVer=parseFloat(sUA.substr(sIE+5));if(nIeVer>=6){return "ie6";}else if(nIeVer>=5.5){return "ie55";}else if(nIeVer>=5){return "ie5";}};if(sMoz!=-1){return "moz";};return "other";};function resizeImg(_oObj,_iWidth){var tMark=true;var iWidth=0;var sOuterHtml;var aNode=_oObj.attributes;for(var i=0;i<aNode.length;i++){if(aNode[i].specified){if(aNode[i].name=="width"||aNode[i].name=="height"){tMark=false;}}};if(tMark){if(_iWidth){setTimeout("resize()",500);}};this.resize=function (){if(_oObj.width>_iWidth){_oObj.width=_iWidth;}}};function ObjPage(){var Web_Name="",FileName="",Max_Page=12,Page=1,Num_Page=0,Str_Page="Page=";this.EndFlag=0;this.BlnOut=true;this.Web_Path="";this.Web_Name=Web_Name;this.FileName=FileName;this.Max_Page=Max_Page;this.Page=Page;this.Num_Page=Num_Page;this.Str_Page=Str_Page;this.SelectDel=function SelectDel(Str_File){question=confirm("您确定要删除此记录吗？");if(question!="0"){window.location=Str_File;}};this.Show_Hide=function Show_Hide(obj,obj2,str_index){if(this.EndFlag==0){alert("网页未下载完成,请稍候...");return ;};if($(obj).style.display!='block'){$(obj).style.display="block";$(obj2).src=this.Web_Path+"images/menu_open.gif";if($(obj2).loaded=="no"){$("TD"+obj).innerHTML="&nbsp; &nbsp; 数据下载中...&nbsp; &nbsp; ";$("hiddenframe").src=str_index+"Int_Id="+obj;}}else {$(obj).style.display="none";$(obj2).src=this.Web_Path+"images/menu_close.gif";}};this.Show_Hide2=function Show_Hide2(obj,obj2){if($(obj).style.display!='block'){$(obj).style.display="block";$(obj2).src=this.Web_Path+"images/menu_open.gif";}else {$(obj).style.display="none";$(obj2).src=this.Web_Path+"images/menu_close.gif";}};this.Show_Title=function Show_Title(Str_Number,Str_Text,Bln_Type,Show_Mode){var Arr_Number=Str_Number.split(",");var Arr_Text=Str_Text.split(",");var Int_Rows=Arr_Number.length;if(Int_Rows!=Arr_Text.length){return ;};if(Bln_Type){dw("<span id=System_Data_List><table width='98%' class=TableList align=center><tr class=tr_title>");for(var i=0;i<Int_Rows;i++){dw("<td class=td_Title noWrap width='"+Arr_Number[i]+"%'>"+Arr_Text[i]+"</td>");};if(Show_Mode==null){dw("<td class=td_Title noWrap width='20%' colspan=2>操作</td>");};dw("</tr>");}else {var Str_Temp="<table width='98%' class=TableList align=center><tr class=tr_title>";for(var i=0;i<Int_Rows;i++){Str_Temp+="<td class=td_Title noWrap width='"+Arr_Number[i]+"%'>"+Arr_Text[i]+"</td>";};if(Show_Mode==null){Str_Temp+="<td class=td_Title noWrap width='20%' colspan=2>操作</td>";};Str_Temp+="</tr>";return Str_Temp;}};this.Show_FenYe=function Show_FenYe(Bln_Span){dw("<table width='98%' class=tablelist><tr class=Listrow1_1><td align=left>&nbsp; ");this.Showpages("3366FF");dw("</td></tr></table>");if(isNull(Bln_Span))dw("</span>");};this.To_Fill=function To_Fill(Int_Rows,Int_Col){var Int_Temp=this.Max_Page-Int_Rows;var Str_Text="";if(Int_Temp>=0){for(var i=0;i<Int_Temp;i+=1){Str_Text+="<tr class=Listrow1_1>";for(var y=0;y<Int_Col;y+=1){Str_Text+="<td class=td_Row></td>";};Str_Text+="</tr>";}};Str_Text+="</table>";return Str_Text;};this.MainWindows=function MainWindows(Str_Title,i,Str_Note){dw("<div class=tab-page id=tabPage"+i+"><h2 class=tab>"+Str_Title+"</h2><table style='Width:90%;height:90%;' border=0 cellpadding=0 cellspacing=0>"+Str_Note+"</table></div>");};this.MainWindows2=function MainWindows2(Str_Title,i){dw("<div class=tab-page id=tabPage"+i+"><h2 class=tab>"+Str_Title+"</h2>");};this.MainWindows3=function MainWindows3(){dw("</div>");};this.MainWindows4=function MainWindows4(Str_Form,Str_Form_Width1,Str_Form_Width2,Str_Note,Str_Form2,Str_OnChick,Bln_Disabled,Bln_Response){if(isNull(Bln_Response)){dw("<table align=center width="+Str_Form_Width1+" class=Main_windows><tr><td>"+Str_Form);dw("<table width="+Str_Form_Width2+" border=0 cellpadding=0 cellspacing=0 style='Margin:5px 5px 5px 5px'>");dw(Str_Note);dw("<tr height=50><td colspan=2 align=center>");dw(Str_Form2);dw("<input type=reset value=' 重 设 ' class=bha>　　<input type=submit value=' 确 定 ' class=bha");if(!isNull(Str_OnChick)){dw(" onclick=\""+Str_OnChick+"();\"");};if(!isNull(Bln_Disabled)){dw(" disabled=true");};dw("></td></tr></table></td></form></tr></table>");}else {var Str_Temp="<table align=center width="+Str_Form_Width1+" class=Main_windows><tr><td>"+Str_Form+""+"<table width="+Str_Form_Width2+" border=0 cellpadding=0 cellspacing=0 style='Margin:5px 5px 5px 5px'>"+Str_Note+"<tr height=50><td colspan=2 align=center>"+Str_Form2+"<input type=reset value=' 重 设 ' class=bha>　　<input type=submit value=' 确 定 ' class=bha";if(!isNull(Str_OnChick)){Str_Temp+=" onclick=\""+Str_OnChick+"();\"";};if(!isNull(Bln_Disabled)){Str_Temp+=" disabled=true";};Str_Temp+="></td></tr></table></td></form></tr></table>";return Str_Temp;}};this.Project=function Project(Str_Title,Str_Note,Bln_Type,Str_ID){var Str_Temp="";var Str_Star="";if(!isNull(Str_ID)){Str_ID="name="+Str_ID+" id="+Str_ID+" style='DISPLAY:none'";}else {Str_ID="";};if(Bln_Type==1){Str_Star="(<span class=red>*</span>)";};Str_Temp="<tr class=InputFrameLine "+Str_ID+">"+"	<td class=InputLabelCell Style='width:120px;'>"+Str_Title+Str_Star+"</td>"+"	<td class=InputAreaCell width=*>"+Str_Note+"</td>"+"</tr>";return Str_Temp;};this.AdminForma=function AdminForma(Str_Title,Str_Message,Str_Botton,Str_Form){dw("<div align=left class=titlebar>"+this.Web_Name+"系统 > "+Str_Title+"</div>");dw("<table width='98%'class=tabletoolbar border=0 align=center>");dw("<tr><td><div class=TableTitleText>"+Str_Message+"</div></td>");if(!isNull(Str_Form)){dw(Str_Form);};if(!isNull(Str_Botton)){var Arr_Botton=Str_Botton.split(",");for(var i=0;i<Arr_Botton.length;i++){dw("<td width='10%' align=right>"+Arr_Botton[i]+"</td>");}};if(Str_Form!=null){dw("</form>");};dw("</tr></table>");};this.Art_Pages=function Art_Pages(Str_FileName,Max_Page,Page,Str_StyleName){var Open_Page;var End_Page;var num_display=10;if(Page<0){Page=1;};if((Page%num_display)==0){Open_Page=Page-num_display+1;End_Page=Page;}else {Open_Page=Math.floor(Page/num_display)*num_display+1;End_Page=Math.floor(Page/num_display)*num_display+num_display;if(End_Page>Max_Page){End_Page=Max_Page;}};if(!isNull(Str_StyleName)){var Arr_S=Str_StyleName.split(",");for(var i=0;i<Arr_S.length;i++){Arr_S[i]="class="+Arr_S[i];}}else {var Arr_S=["NowPage","OtherPage"];};var KY_New_FileName=Str_FileName.substr(0,Str_FileName.indexOf("."));var Str_FileSuffix=Str_FileName.substr(Str_FileName.indexOf("."),Str_FileName.length);var Str_Temp="";if(Open_Page>5){Str_Temp+="<a href="+Str_FileName+" "+Arr_S[1]+">1</a><a href="+KY_New_FileName+"_"+(Open_Page-1)+Str_FileSuffix+"><<</a>";};for(var i=Open_Page;i<=End_Page;i++){if(i==Page){Str_Temp+="<a href=# "+Arr_S[0]+"><STRONG>"+i+"</STRONG></a>";}else {if(i==1){Str_Temp+="<a href="+Str_FileName+" "+Arr_S[1]+">"+i+"</a>";}else {Str_Temp+="<a href="+KY_New_FileName+"_"+i+Str_FileSuffix+" "+Arr_S[1]+">"+i+"</a>";}}};if(Page<Max_Page){Str_Temp+="<A "+Arr_S[1]+" href="+KY_New_FileName+"_"+(Page+1)+Str_FileSuffix+" >&#8250;&#8250;</A>";};if(End_Page<Max_Page){Str_Temp+="<a href="+KY_New_FileName+"_"+(End_Page+1)+Str_FileSuffix+" title=\"下"+num_display+"页\" "+Arr_S[1]+">>></a><a href="+KY_New_FileName+"_"+Max_Page+Str_FileSuffix+" title='到末页' "+Arr_S[1]+">"+Max_Page+"</a>";};Str_Temp+="<KBD><INPUT onkeydown=\"if(event.keyCode==13) {window.location='"+KY_New_FileName+"_'+this.value+'"+Str_FileSuffix+"'; return false;}\" size=3 name=custompage></KBD>";return Str_Temp;};this.outDate=function outDate(){var today=new Date();var d=new Array("日","一","二","三","四","五","六");var strDate="";strDate+=today.getYear()+"年";strDate+=(today.getMonth()+1)+"月";strDate+=today.getDate()+"日 ";strDate+="星期"+d[today.getDay()];dw(strDate);};this.Showpages=function Showpages(font_color){var num_display=10;var i;var open_page;var top_Page;var str_temp;if(this.Num_Page==1){dw("");return ;};if(this.Page<0){this.Page=1;};if((this.Page%num_display)==0){top_Page=this.Page;open_page=Math.floor(this.Page)-num_display+1;}else {open_page=Math.floor(this.Page/num_display)*num_display+1;top_Page=Math.floor(this.Page/num_display)*num_display+num_display;if(top_Page>this.Num_Page){top_Page=this.Num_Page;}};str_temp="<div class=manu>";if(open_page>num_display){str_temp+="<a href="+this.FileName+this.Str_Page+"1 title='到首页'>1</a> ··· <a href="+this.FileName+this.Str_Page+(open_page-1)+" title=\"上"+num_display+"页\"><<</a> ";}else {str_temp+="<span class=disabled><<</span> ";};for(i=open_page;i<=top_Page;i++){if(i==this.Page){str_temp+="<span class=current>"+i+"</span> ";}else {str_temp+="<a href="+this.FileName+this.Str_Page+i+" title='第"+i+"页'>"+i+"</a> ";}};if((open_page+num_display-1)>top_Page){for(i=top_Page+1;i<=(open_page+num_display-1);i++){str_temp+="<span class=disabled>"+i+"</span> ";}};if(top_Page<this.Num_Page){str_temp+="<a href="+this.FileName+this.Str_Page+(top_Page+1)+" title=\"下"+num_display+"页\">>></a> ··· <a href="+this.FileName+this.Str_Page+this.Num_Page+" title='到末页'>"+this.Num_Page+"</a> ";}else {str_temp+="<span class=disabled>>></span> ";};str_temp+="</div>";dw(str_temp);};this.StrToArr=function StrToArr(Str_Text){var Arr_D1=Str_Text.split("|");var Arr_D2=eval("new Array("+Arr_D1.length+");");var Str_Temp="";var Arr_Temp;var Int_Rows;for(var i=0;i<Arr_D1.length;i++){Arr_Temp=Arr_D1[i].split(",");if(i==0){Int_Rows=Arr_Temp.length;};Str_Temp="";for(var y=0;y<Int_Rows;y++){if(y>0){Str_Temp+=",";};Str_Temp+="'"+Arr_Temp[y]+"'";};Arr_D2[i]=eval("new Array("+Str_Temp+");");};return Arr_D2;};this.StrSelectOption=function StrSelectOption(para1,IntValue){var StrOption="";var isSelect="";var Arr_Data=this.StrToArr(para1);for(var j=0;j<Arr_Data.length;j++){if(Arr_Data[j][0]==IntValue){isSelect=" selected";}else {isSelect="";};StrOption+="<option value="+Arr_Data[j][0]+" "+isSelect+">"+Arr_Data[j][1]+"</option>";};return StrOption;};this.toScript=function toScript(val){val.value="document.writeln(\""+val.value.replace(/\\/g,"\\\\").replace(/\//g,"\\/").replace(/\'/g,"\\\'").replace(/\"/g,"\\\"").split('\r\n').join("\");\ndocument.writeln(\"")+"\")";};this.Show_Time=function Show_Time(Dtm_Date){return Dtm_Date.substr(0,Dtm_Date.indexOf(" "));};this.checkall=function checkall(form,prefix,checkall){var checkall=checkall?checkall:'chkall';for(var i=0;i<form.elements.length;i++){var e=form.elements[i];if(e.name!=checkall&&(!prefix||(prefix&&e.name.match(prefix)))){e.checked=form.elements(checkall).checked;;}}};this.Show_Select=function Show_Select(Str_Selected,Str_Text,Str_SelectName,Str_Default){var Str_Temp="<Select name="+Str_SelectName+" class=smallselect Style='Width:200px;'>";var Arr_Data=Str_Text.split(",");var Int_Rows=Arr_Data.length;if(isNull(Str_Selected)){Str_Selected=Str_Default;};for(var i=0;i<Int_Rows;i++){Str_Temp+="<option value='"+Arr_Data[i]+"'";if(Arr_Data[i]==Str_Selected){Str_Temp+=" Selected=true";};Str_Temp+=">"+Arr_Data[i]+"</option>";};Str_Temp+="</Select>";return Str_Temp;};this.AJAXSP=function AJAXSP(font_color){var display_font="Arial";var str_font="<font color=#"+font_color+" Style='font-size:12px;font-family:"+display_font+";'>";var str_font2="<font Style='font-size:12px;font-family:"+display_font+";' color=red>";if(this.Page<0){this.Page=1;};var str_temp="<font Style='font-size:12px;font-family:Arial;' color=#"+font_color+">当前第 <u><span id=ShowPageNow>"+this.Page+"</span></u> 页 [ ";for(var i=1;i<=this.Num_Page;i++){str_temp+="<a href="+this.FileName+"page="+i+" title='到第"+i+"页' target=hiddenframe>"+str_font2+i+"</font></a> ";};str_temp+="]</font>";dw(str_temp);};this.ShowPagerBar=function ShowPagerBar(PageButtonNumber,Str_From){if(isNull(PageButtonNumber)){PageButtonNumber=8};if(!isNull(Str_From)){Str_From="target="+Str_From+"";};this.Page=this.Page*1;if(this.Page>this.Num_Page){this.Page=this.Num_Page;};if(this.Page<1){this.Page=1;};if(PageButtonNumber%2==0){PageButtonNumber++};this.PageButtonNumber2=(PageButtonNumber-1)/2;var Html;var Int_Start=1;if(this.Page==1){Html="[上一页] ";}else {Html="<a href="+this.FileName+"page="+(this.Page-1)+" title='到第"+(this.Page-1)+"页' "+Str_From+">[上一页]</a> ";};if(this.Page<=this.PageButtonNumber2){for(var i=1;i<=PageButtonNumber;i++){if(i>this.Num_Page){break;};if(i==this.Page){Html+="["+i+"] ";}else {Html+="<a href="+this.FileName+"page="+i+" title='到第"+i+"页' "+Str_From+">["+i+"]</a> ";}}}else if(this.Page+this.PageButtonNumber2>this.Num_Page){Int_Start=this.Num_Page-PageButtonNumber+1;if(Int_Start<1){Int_Start=1;};for(var i=Int_Start;i<=this.Num_Page;i++){if(i>this.Num_Page){break;};if(i==this.Page){Html+="["+i+"] ";}else {Html+="<a href="+this.FileName+"page="+i+" title='到第"+i+"页' "+Str_From+">["+i+"]</a> ";}}}else {Int_Start=this.Page-this.PageButtonNumber2;if(Int_Start<1){Int_Start=1;};for(var i=Int_Start;i<=this.Page+this.PageButtonNumber2;i++){if(i>this.Num_Page){break;};if(i==this.Page){Html+="["+i+"] ";}else {Html+="<a href="+this.FileName+"page="+i+" title='到第"+i+"页' "+Str_From+">["+i+"]</a> ";}}};if(this.Page==this.Num_Page){Html+="[下一页] ";}else {Html+="<a href="+this.FileName+"page="+(this.Page+1)+" title='到第"+(this.Page+1)+"页' "+Str_From+">[下一页]</a> ";};Html+="["+this.Page+"/"+this.Num_Page+"] ";return Html;};this.AutoSubStr=function AutoSubStr(Str_Title,Int_FontNumber,Bln_Type){var Int_Rows=Str_Title.length;if(Int_Rows>Int_FontNumber){if(isNull(Bln_Type)){Str_Title=Str_Title.substr(0,Int_FontNumber)+"...";}else {Str_Title=Str_Title.substr(0,(Int_FontNumber-5))+"..."+Str_Title.substr(Int_Rows-3);}};return Str_Title;};this.Tips=function Tips(event,thisobj,txt,Int_Width,Int_Height,Int_Top){evt=event?event:window.event;var x=evt.clientX;var y=evt.clientY;if($("tipdiv")){document.body.removeChild($("tipdiv"));};if(isNull(Int_Width)){Int_Width=250;};if(isNull(Int_Height)){Int_Height=40;};if(isNull(Int_Top)){Int_Top=80;};var tipdiv=$c("DIV");tipdiv.setAttribute("id","tipdiv");tipdiv.style.left=x+document.body.scrollLeft+"px";tipdiv.style.top=y+document.body.scrollTop-Int_Top+"px";tipdiv.style.width=Int_Width+"px";tipdiv.style.height=Int_Height+"px";tipdiv.style.zIndex='15';tipdiv.style.position='absolute';tipdiv.style.textalign="left";document.body.appendChild(tipdiv);$("tipdiv").innerHTML="<div style='border:1px solid #23A3EC;padding:5px;background:#E5F2F8;text-align:left;'>"+txt+"</div>";this.hide_tipdiv=function (){if($("tipdiv")!=null)document.body.removeChild($("tipdiv"));};if(!document.all){window.document.addEventListener("click",this.hide_tipdiv,false);thisobj.addEventListener("mouseout",this.hide_tipdiv,false);}else {window.document.attachEvent("onclick",this.hide_tipdiv);thisobj.attachEvent("onmouseout",this.hide_tipdiv);}};this.check_Obj=function check_Obj(strObj){if($(strObj)){return true}else {return false}};this.getURLParameter=function getParameter(paraStr,url){if(isNull(url)){url=location.href;};var result="";var str="&"+url.split("?")[1];var paraName=paraStr+"=";if(str.indexOf("&"+paraName)!=-1){if(str.substring(str.indexOf(paraName),str.length).indexOf("&")!=-1){var TmpStr=str.substring(str.indexOf(paraName),str.length);result=TmpStr.substr(TmpStr.indexOf(paraName),TmpStr.indexOf("&")-TmpStr.indexOf(paraName));}else {result=str.substring(str.indexOf(paraName),str.length);}}else {result="";};return (result.replace("&","").replace(paraStr+"=",""));};this.GetFilePath=function GetFilePath(Path,Name,Str_Domain){if(isNull(Str_Domain)){Str_Domain="/";};dw("<scr"+""+"ipt language=javascript src="+Str_Domain+Path+"/"+Name+"></scr"+""+"ipt>");};this.SelectDIV=function SelectDIV(Str_ID,Str_SelectID){var Arr_Temp=Str_ID.split(",");for(var i=0;i<Arr_Temp.length;i++){$(Arr_Temp[i]).style.display="none";};$(Str_SelectID).style.display="block";};this.getNoRepeat=function getNoRepeat(){return arguments[0].join('‖').match(/(\b[^‖]+\b)(?!.*‖\1\b)/ig);};this.JSDateDiff=function JSDateDiff(Dtm_Start,Dtm_End){var t0=Dtm_Start.split(" ");var t_0=t0[0].split("-");var t_1=t0[1].split(":");var t1=new Date(t_0[0],t_0[1]-1,t_0[2],t_1[0],t_1[1],t_1[2]);if(isNull(Dtm_End)){var t2=new Date();}else {t0=Dtm_End.split(" ");t_0=t0[0].split("-");t_1=t0[1].split(":");var t2=new Date(t_0[0],t_0[1]-1,t_0[2],t_1[0],t_1[1],t_1[2]);};return (t2-t1)/1000;};this.LoadCss=function LoadCss(file){var cssTag=$('loadCss');var head=document.getElementsByTagName('head').item(0);if(cssTag){head.removeChild(cssTag);};css=$c('link');css.href="/"+file+"";css.rel='stylesheet';css.type='text/css';css.id='loadCss';head.appendChild(css);}};if(jdt==null){var jdt={};};jdt.ProgressBar=function (parent,width,barClass,display){this.parent=parent;this.pixels=width;this.parent.innerHTML="<div/>";this.outerDIV=this.parent.childNodes[0];this.outerDIV.innerHTML="<div/>";this.fillDIV=this.outerDIV.childNodes[0];this.fillDIV.innerHTML="0";this.fillDIV.style.width="0px";this.outerDIV.className=barClass;this.outerDIV.style.width=(width+2)+"px";this.parent.style.display=display==false?'none':'';};jdt.ProgressBar.prototype.setPercent=function (pct){var fillPixels;if(pct<1.0){fillPixels=Math.round(this.pixels*pct);}else {pct=1.0;fillPixels=this.pixels;};this.fillDIV.innerHTML=Math.round(100*pct)+"%";this.fillDIV.style.width=fillPixels+"px";};jdt.ProgressBar.prototype.display=function (v){this.parent.style.display=v==true?'':'none';};