var g_strTemp = ""; function RAll(sOrg,sFind,sRe) { var index = 0; while(sOrg.indexOf(sFind,index) != -1){ sOrg = sOrg.replace(sFind,sRe); index = sOrg.indexOf(sFind,index); } return sOrg } function formsub(formId,SeId,j_dt,j_st,j_tn,j_ext) { var formName = document.getElementById(formId); if(formName.Query.value == " " || formName.Query.value == " ") { formName.Query.value = " "; } if(formName.Query.value=="") { alert("请输入您要查询的内容"); return false; } else if(SeId == 1) { formName.st.value = j_st; formName.dt.value = j_dt; formName.tn.value = j_tn; if(j_ext) { formName.ext.value = decodeURIComponent(j_ext); } formName.submit(); return true; } else if(SeId == 2) { formName.submit(); return true; } } function ReUrl(UrlList,Url,Name,nName,host) { UrlList = RAll(UrlList,"&","%26"); UrlList = RAll(UrlList,"=","%3D"); Url = RAll(Url,"&","%26"); Url = RAll(Url,"=","%3D"); UrlList = RAll(UrlList,"&","%26"); UrlList = RAll(UrlList,"=","%3D"); nName = RAll(nName,"<","<"); nName = RAll(nName,">",">"); nName = RAll(nName,"&","%26"); nName = RAll(nName,"=","%3D"); nName = RAll(nName,"#","%23"); nName = RAll(nName,"+","%2B"); document.write("" + Name + ""); } function Topten(host,Kword) { var enKword = encodeURIComponent(Kword); document.write(""+Kword+""); } function SLP(SLP) { var SLP = SLP; var C = ""; var nC = ""; document.write(""); if(SLP == 0 || SLP > 0 && SLP < 21 || SLP > 100){document.write(C+nC+nC+nC+nC);} else if(SLP > 20 && SLP < 41){document.write(C+C+nC+nC+nC);} else if(SLP > 40 && SLP < 61){document.write(C+C+C+nC+nC);} else if(SLP > 60 && SLP < 81){document.write(C+C+C+C+nC);} else if(SLP > 80 && SLP < 101){document.write(C+C+C+C+C);} document.write("
"); } function ShowUrl(SiteUrl,from) { var str = ""; if(from != "") { document.write(str + from + ""); } else { if(SiteUrl.length > 15) { var SiteUrl1 = SiteUrl.substring(0,13); document.write(str + SiteUrl1 + "..."); } else { document.write(str + SiteUrl + ""); } } } function Key(SeForm) { if(event.keyCode==13) { return formsub(SeForm,2); } } function SIndex(SW1,SW2,SW3,SW4,SW5,SC) { var AIndex = new Array(); AIndex[0] = SW1; AIndex[1] = SW2; AIndex[2] = SW3; AIndex[3] = SW4; AIndex[4] = SW5; SC1_L = ""; SC1_R = ""; SC2_L = ""+AIndex[i]+SC1_R); } } else if(SC == 3) { for(i=0;i<5;i++) { document.write(SC2_L+(i+6)+"\">"+AIndex[i]+SC1_R); } } } function TopFrame(pPageid) { return true; }