document.write (''); //cache //======缓加载====== //例:getDom("login:index/Login,adsPic:ad1") //带条件例子:getDom("login:index/Login,adsPic:ad1(act=xxx)") var GetRandomn = 1; function GetRandom(n){GetRandomn=Math.floor(Math.random()*n+1)} function getDom(domStr){ var thisData=domStr.replaceAll(",","&"); var thisData=thisData.replaceAll(":","="); var nowNum=GetRandom(1000); $.ajax({ type: "POST", cache: true, //缓存数据 async: true,//锁定前端 url: "/load.asp?"+nowNum+"v1.0data", data: thisData, success: function(data){ data=data.split("$%^%$"); for(getDom_i=0;getDom_i0){break;}}} if(!url)return;imagePreloader=new Image;imagePreloader.src=url;if(imagePreloader.complete){cci++;ImgPreloader();}else{$(imagePreloader).unbind().bind('load',function(){cci++;ImgPreloader();});}} $(window).load(function(){setTimeout(ImgPreloader,1000);});} function slideShowFn(eCss,pId,nId,sNum,sstime,autoStart,playTime,direction){if(typeof eCss!="string"||(typeof pId!="string"&&typeof nId!="string"))return false;if(typeof $=="function") {$(function(){var ssctliste=$("."+eCss),ssctlist=[],ssi=0,tempsse,bdir=true;if(typeof sstime!="number")sstime=600;if(typeof sNum!="number")sNum=2;else sNum--;if(typeof autoStart!="boolean") {autoStart=true;} else if(autoStart) {if(typeof playTime!="number")playTime=1000;if(direction=="right")bdir=false;else bdir=true;} ssctliste.each(function(i){tempsse=$(this);ssctlist.push(tempsse);tempsse.hover(function(){if(autoNextTimer)clearInterval(autoNextTimer);},function(){ssOutPlayControl()});if(i>sNum) {tempsse.hide();}});if(ssctlist.length>0) {var pssbusy=false,nssbusy=false,sscount=ssctlist.length-1,autoNextTimer;if(typeof pId=="string") {$("#"+pId).css("cursor","pointer").click(function(){pssbusy=true;if(!nssbusy) {var te,ee,se,m_ssi=ssi;if(ssi>0) {ssi-=1;} else {ssi=sscount;} if(m_ssi==0) {te=sscount;} else {te=m_ssi-1;} ee=((m_ssi+sNum)>sscount)?m_ssi-sscount+sNum-1:m_ssi+sNum;$(ssctlist[m_ssi]).before(ssctlist[te]);ssctlist[te].show(sstime);ssctlist[ee].hide(sstime,function(){pssbusy=false});}}).hover(function(){if(autoNextTimer)clearInterval(autoNextTimer);},function(){ssOutPlayControl()});} if(typeof nId=="string") {$("#"+nId).css("cursor","pointer").click(function(){nssbusy=true;if(!pssbusy) {var te,ee,se,m_ssi=ssi;if(ssisscount)?m_ssi-sscount+sNum:m_ssi+sNum+1;ssctlist[m_ssi].hide(sstime,function(){ssctlist[ee].after(ssctlist[m_ssi]);nssbusy=false;});ssctlist[te].show(sstime);}}).hover(function(){if(autoNextTimer)clearInterval(autoNextTimer);},function(){ssOutPlayControl()});;} function ssOutPlayControl() {if(autoStart) {if(bdir&&typeof nId=="string") {autoNextTimer=setInterval(function(){$("#"+nId).trigger("click");},playTime);} else if(typeof pId=="string") {autoNextTimer=setInterval(function(){$("#"+pId).trigger("click")},playTime);}}} ssOutPlayControl();}});}} function setCookie(c_name,value,expiredays,domian,pth) {var exdate=new Date(),ckstr;exdate.setDate(exdate.getDate()+expiredays);ckstr=c_name+"="+escape(value)+";";if(typeof expiredays!="undefined")ckstr+="expires="+exdate.toGMTString()+";";if(typeof domian=="string")ckstr+="domain="+domian+";";if(typeof pth=="string") {ckstr+="patch="+pth+";";} else {ckstr+="patch=//;";} document.cookie=ckstr;};function getCookie(c_name,domian) {var tcookie=document.cookie,reg="/"+c_name+"=([^;]*)/";if(tcookie.length<1)return false;result=tcookie.match(eval(reg));if(result) {if(result.length>1) {return unescape(result[1]);}} return false;};function AjGetData(u,qE,cB) {busy=true;$.ajax({type:"post",dataType:"text",processData:false,url:u,data:qE,success:function(msg){busy=false;if(typeof msg=="string") {if(msg.length>1) {cB(msg);}}},error:function(Request){busy=false;}});};function BindSelEGetData(sE,gFName,sN,hE,qE,sP,sP2) {$(function(){if(typeof sE!="string"||sE=="")return false;if(typeof gFName!="string"||gFName=="")return false;if(typeof sN!="number")sN=3;if(typeof qE!="string"||qE=="")qE="rValue";if(typeof sP!="string"||sP=="")sP="|_";if(typeof sP2!="string"||sP2=="")sP2="#_";var jsE=$("#"+sE),d=[],hD,str,tempA,eL,dE,jhE,Vsign=false,jseV,busy=false;GAJData();function GAJData() {jsE.unbind("keydown");jsE.keydown(function(){setTimeout(function(){var v=jsE.val();if(jsE.val().length>=sN) {AjGetData(gFName,qE+"="+v,OpenRelDiv);}},200);});};function AddDivLi(eData) {d.length=0;if(eData.indexOf(sP)>0) {tempA=eData.split(sP);if(eData.indexOf(sP2)>0) {var _tempA;hD=[];hD.lenght=0;for(ai=0;ai";if(typeof dE!="undefined") {dE.empty();dE.html(str);dE.show();} else {ShowSelDiv(sE,str,"bottom","left","no");} eL=$("#select_List li");if(typeof hD=="undefined"||hD.constructor!=Array) {eL.click(function(){jsE.val($(this).text());jhE.val($(this).text());dE.slideUp("fast");});} else {eL.each(function(i){$(this).click(function(){jsE.val($(this).text());jhE.val((hD[i]));dE.slideUp("fast");});});} Vsign=false;};function OpenRelDiv(eData) {jhE=$("#"+hE);jsE.unbind("keydown");AddDivLi(eData);dE=$("#"+sE+"seldiv");jsE.keydown(function(){setTimeout(function(){jseV=jsE.val();if(jseV.length=sN&&!busy) {dE.hide();dE.empty();AjGetData(gFName,qE+"="+jseV,AddDivLi);} if(eL.text().indexOf(jseV)>=0) {eL.each(function(){if($(this).html().indexOf("=0||$(this).html().indexOf("=0) {$(this).find("a").html($(this).text().replace(jseV,""+jseV+""));} else {$(this).html($(this).text().replace(jseV,""+jseV+""));}});} else {dE.hide();dE.empty();Vsign=true;}},200);});}});};function handleData(d) {if(typeof d=="undefined"||d.constructor!=Array)return"";var lstr="";for(i=0;i";} return lstr;} function ShowSelDiv(e,str,ePx,ePy,eD,dcss) {if(typeof e!="string")return;var eofs,ele;ele=$("#"+e);eofs=ele.offset();if(typeof ePx=="string") {if(ePx=="top") ePx=ele.innerHeight()+2;if(ePx=="bottom") ePx=-(ele.innerHeight()+2);} else if(typeof ePx!="number") {ePx=20;} if(typeof ePy=="string") {if(ePy=="left") ePy=0;if(ePy=="right") ePy=-ele.innerWidth();} else if(typeof ePy!="number") {ePy=0;} if(typeof dcss!="string") {dcss="arrowDownTest";} appDivCke(eofs.top-ePx,eofs.left-ePy,e+"seldiv",str,dcss);if(typeof eD=="undefined") {ele.one("blur",function(){$("#"+e+"seldiv").replaceWith()});} else if(eD!="no") {ele.one(eD,function(){$("#"+e+"seldiv").replaceWith()});}};function RegCkElement(sE,eStr,reg,dfStr,oE,fc) {var ele=document.getElementById(sE);if(!ele)return false;if(typeof dfstr!="string")dfstr="";if(typeof fc!="boolean")fc=true;if(typeof ele.value=="string"&&ele.value.replace(/\s*/g,"")!=""&&ele.value!=dfstr) {if(typeof reg=="string") {var pattern=eval(reg);var flag=pattern.test(ele.value);  if(!flag){if(typeof eStr=="string") {ShowE(sE,eStr,oE);} if(fc)FocusE(ele);return false;}} return true;} if(typeof eStr=="string") {ShowE(sE,eStr,oE);} if(fc)FocusE(ele);return false;};function IsEmptyOrNotNum(sE,eStr,dfStr,oE,fc) {var ele=document.getElementById(sE);if(!ele)return false;if(typeof dfstr!="string")dfstr="";if(typeof fc!="boolean")fc=true;if(typeof ele.value=="string"&&ele.value.replace(/\s*/g,"")!=""&&ele.value!=dfStr) {if(isNaN(ele.value)) {if(typeof eStr=="string") {ShowE(sE,eStr,oE);} if(fc)FocusE(ele);return false;} return true;} if(typeof eStr=="string") {ShowE(sE,eStr,oE);} if(fc)FocusE(ele);return false;} function StrIsNullOrEmpty(sE,eStr,dfStr,oE,fc) {var ele=document.getElementById(sE);if(!ele)return false;if(typeof dfstr!="string")dfstr="";if(typeof fc!="boolean")fc=true;if(typeof ele.value=="string"&&ele.value.replace(/\s*/g,"")!=""&&ele.value!=dfStr) {return true;} if(typeof eStr=="string") {ShowE(sE,eStr,oE);} if(fc)FocusE(ele);return false;} function FocusE(e) {if(e) {if(e.getAttribute("visible")=="true"||e.style.display!="none") {e.focus();}}};function ShowE(sE,str,oE) {var ele;ele=document.getElementById(oE);if(ele) {ele.style.display="";ele.innerHTML=str;} else{str=AddArrowhtml(str);OpenMsg(sE,str);}};function AddArrowhtml(s) {return s+"
";} function OpenMsg(e,str) {if(typeof e!="string")return;var eofs,ele;ele=$("#"+e);eofs=ele.offset();appDivCke(eofs.top-24,eofs.left,e+"ediv",str,"arrowDownTest");ele.one("blur",function(){$("#"+e+"ediv").replaceWith()});};function appDivCke(t,l,n,estr,dcss) {$("body").prepend("
"+estr+"
");} function TrunMenu(eId,cls,hType,hEName,hI,hOc) {if(arguments.length<1) {eId="Trun_Menu";} if(typeof eId!="string"||eId.length<1)eId="Trun_Menu";if(typeof cls!="string")cls="active";if(typeof hType!="string")hType="li";if(isNaN(hI))hI=1;if(typeof hOc!="boolean")hOc=false;$().ready(function(){var Tdiv=[],Ediv;if(typeof hEName=="string") {Ediv=$("[name='"+hEName+"']");} $("#"+eId+" li").each(function(i){var Te,Oe,Hf,Odid;Te=$(this);Te.attr("TrunNum",i);Oe=Te.text();if(typeof Ediv!="object") {Odid=$("#"+Oe.replace(/\s*/g,"")).show();} else {Odid=Ediv.eq(i);} if(i==hI-1) {Odid.show();if(hType=="li") {Te.addClass(cls);} else {Te.find("a").addClass(cls);}} else {Odid.hide();if(hType=="li") {Te.removeClass(cls);} else {Te.find("a").removeClass(cls);}} Hf=Te.find("a").attr("href");if(typeof Hf!="string"||Hf=="#"||Hf=="###") {Hf="javascript:;";} Tdiv.push({CTe:Te,COe:Oe,Href:Hf,Did:Odid});if(hType=="li") {if(hOc) {Te.hover(function(){for(i=0;i"+Tdiv[i].COe+"");Tdiv[i].CTe.removeClass(cls);} Te=$(this);Tdiv[parseInt(Te.attr("TrunNum"))].Did.show();Te.addClass(cls).html(Oe);});} else {Te.click(function(){for(i=0;i"+Tdiv[i].COe+"");Tdiv[i].CTe.removeClass(cls);} Te=$(this);Tdiv[parseInt(Te.attr("TrunNum"))].Did.show();Te.addClass(cls).html(Oe);});}} else {if(hOc) {Te.hover(function(){for(i=0;i');var allDialogs=[];var seq=0;var bottomclose='';function iframe(url,w,h) {return'';} function CreateBoxy(tit,cnt,options) {options=$.extend({title:tit},options||{});var dialog=new Boxy(cnt,options);allDialogs.push(dialog);return false;} function ShowIFrame(title,url,w,h,closeplace) {var options;var cnt=iframe(url,w,h);if(closeplace=='top') {options={fixed:false,modal:true}} else if(closeplace=='bottom') {options={fixed:false,modal:true,closeable:false} cnt=cnt+bottomclose;} else {options={fixed:false,modal:true,closeable:false}} return CreateBoxy(title,cnt,options);} function ShowSendMail() {return ShowIFrame('','/forms/sendmail.aspx',610,510,'bottom');}