var contextPath="/";var currently_url_div_value_01="info_history";var info_history_switch=true;function getmodule(divid,para,initarray){para=para+"&divid_system="+divid;var replaceobj=document.getElementById(divid);var myAjax=new Ajax.Request("ajax.do?method=getMod&"+para,{asynchronous:false,method:"get",evalScripts:true,onComplete:function callBack(response){replaceobj.innerHTML=response.responseText;initjs(replaceobj);if(initarray){for(var i=0;i<initarray.length;i++){eval(initarray[i]);}}}});}function getmodules(divid,buid,param,initarray){closeCommonLayer();param=param+"&divid_system="+divid;var replaceobj=document.getElementById(divid);var myAjax=new Ajax.Updater(divid,"ajax.do?method=getBU&bu_id="+buid+"&"+param,{asynchronous:false,method:"get",evalScripts:true,onComplete:function callBack(response){initjs(replaceobj);if(initarray){for(var i=0;i<initarray.length;i++){eval(initarray[i]);}}}});}function getmoduleByPost(divid,boid,formid,initarray){if(event&&event.keyCode!=0&&!(event.keyCode>=0&&event.keyCode<=90)){closeCommonLayer();}var replaceobj=document.getElementById(divid);var para=getFormDataByPost(formid);para+="&bo_id="+escape(escape(boid));para+="&divid_system="+divid;if(document.getElementById("sharefavdiv")){para+="&objurl_share="+escape(escape(document.getElementById("sharefavdiv").innerHTML));}var myAjax=new Ajax.Updater(divid,"ajax.do?method=getMod&request_type=post",{asynchronous:false,method:"post",evalScripts:true,parameters:para,onComplete:function callBack(response){initjs(replaceobj);if(initarray){for(var i=0;i<initarray.length;i++){eval(initarray[i]);}}}});}function initjs(replaceobj){var spans=replaceobj.getElementsByTagName("span");if(spans){var l=spans.length;for(var x=0;x<l;x++){if(spans[x].id.indexOf("_js")<0){continue;}var jsStr=spans[x].innerText;if(jsStr.indexOf(";")>-1){var jsArr=jsStr.split(";");for(var i=0;i<jsArr.length;i++){eval(jsArr[i]);}}else{eval(jsStr);}}}}function getFormDataByPost(e){var d=document.getElementById(e);if(d=="null"||d==null){return"";}var b=new Array();var h="";var j=0;for(i=0;i<d.length;i++){var g=d.elements[i];var a=escape(escape(trim(g.value)));if(a.substring(0,3)=="--&"){a="";}if(g.type=="checkbox"&&g.checked==true){h=h+g.name+"="+a+"&";}else{if(g.type=="radio"&&g.checked==true){h=h+g.name+"="+a+"&";}else{if(g.type=="text"){h=h+g.name+"="+a+"&";}else{if(g.type=="file"){h=h+g.name+"="+a+"&";}else{if(g.type=="hidden"){h=h+g.name+"="+a+"&";}else{if(g.type=="select-one"){h=h+g.name+"="+a+"&";}else{if(g.type=="password"){h=h+g.name+"="+a+"&";}else{if(g.type=="textarea"){h=h+g.name+"="+a+"&";}}}}}}}}}return h;}function processStr(a){a=a.replace(/{/g,"\u300e");a=a.replace(/}/g,"\u300f");a=a.replace(/#/g,"\uff03");a=a.replace(/&amp;/g,"＆");a=a.replace(/&/g,"＆");a=a.replace(/[$]/g,"＄");return a;}function setObjCenter(d,c,a){if(!c){c=d.scrollWidth;}if(!a){a=d.scrollHeight;}var b,e;if(self.innerHeight){b=self.innerWidth;e=self.innerHeight;}else{if(document.documentElement&&document.documentElement.clientHeight){b=document.documentElement.clientWidth;e=document.documentElement.clientHeight;}else{if(document.body){b=document.body.clientWidth;e=document.body.clientHeight;}}}d.style.left=(b-c)/2+"px";d.style.top=(e-a)/2+"px";}function toCenter_001(b,a,e){var c=document.getElementById("pubwin");var d=document.getElementById("sider");c.style.zIndex=d.style.zIndex+1;if(c.style.position){c.style.position="absolute";}if(d.style.position){d.style.position="absolute";}c.style.width=b;d.style.width=document.getElementById("mid").scrollWidth;d.style.height=document.getElementById("mid").scrollHeight+300;setObjCenter(c,b,a);c.style.display="block";d.style.display="block";opSelect("hidden");}function toCenter(c,a,b){var e=document.getElementById("pubwin");var f=document.getElementById("sider");e.style.zIndex=f.style.zIndex+1;var d=navigator.userAgent;if(d.indexOf("MSIE 6.0")>0){e.style.position="absolute";f.style.position="absolute";}if(f.style.position){f.style.position="absolute";}f.style.width=document.getElementById("mid").scrollWidth;f.style.height=document.getElementById("mid").scrollHeight+300;setObjCenter(e,c,a);e.style.display="block";if(!b){f.style.display="block";}opSelect("hidden");}function closePubWin(){var a=document.getElementById("pubwin");var b=document.getElementById("sider");if(a){a.style.display="none";}if(b){b.style.display="none";}opSelect("visible");}limitTxtLength=function(obj,length,toobj){var content=obj.value;var counter=document.getElementById(toobj);if(content.length>=length-1){obj.value=content.substring(0,length-1);}counter.innerHTML="当前"+eval(obj.value.length)+"字，最大"+length+"字";};function toselect(c,a){var f=document.getElementById(c);var b=f.options.length;for(var d=0;d<b;d++){var e=f.options[d];if(e.value==a){f.options[d].selected=true;break;}}}function checkAll(b){var d=document.getElementsByTagName("input");var a=d.length;for(var c=0;c<a;c++){if((d[c].type=="checkbox")&&(d[c].name==b)){d[c].checked=true;}}}function reverseAll(b){var d=document.getElementsByTagName("input");var a=d.length;for(var c=0;c<a;c++){if((d[c].type=="checkbox")&&(d[c].name==b)){d[c].checked=!(d[c].checked);}}}function clearAll(b){var d=document.getElementsByTagName("input");var a=d.length;for(var c=0;c<a;c++){if((d[c].type=="checkbox")&&(d[c].name==b)){d[c].checked=false;}}}function checkData(c){var e=document.getElementsByName(c);var a=e.length;var b=false;for(var d=0;d<a;d++){if(e[d].checked==true){b=true;break;}}return b;}function spliceVerticalBar(c){var e=document.getElementsByName(c);var a=e.length;var b="";for(var d=0;d<a;d++){if((e[d].type=="checkbox")&&e[d].checked){b+=e[d].value+"|";}}return b;}function curradioValue(c){var e=document.getElementsByName(c);var a=e.length;var b="";for(var d=0;d<a;d++){if(e[d].checked==true&&e[d].type=="radio"){b=e[d].value;break;}}return b;}function closeDiv(a){if(document.getElementById(a)){document.getElementById(a).style.display="none";}if(document.getElementById("sider")){if(document.getElementById("pubwin").style.display=="block"){return;}else{document.getElementById("sider").style.display="none";}}}function closeDiv2(a){if(document.getElementById(a)){document.getElementById(a).style.visibility="hidden";}}function showDiv(a){document.getElementById(a).style.display="inline-block";}function showDiv2(a){document.getElementById(a).style.visibility="visible";}function ltrim(a){return a.replace(/^\s*/,"");}function rtrim(a){return a.replace(/\s*$/,"");}function trim(a){return rtrim(ltrim(a));}function isNan(a){a=trim(a);if(a.length==0){return false;}return true;}function getStrLength(a){return a.length;}function IsMail(c){var a=trim(c);var b=/^[ _a-z0-9- ]+(\.[_a-z0-9-]+)*@[_a-z0-9-]+(\.[_a-z0-9-]+)*(\.[a-z]{2,3})$/;return b.test(a);}function IsNumber(c){var a=trim(c);var b=/^-?\d+$/;return b.test(a);}function IsNumber_float(c){var a=trim(c);var b=/^(-?\d+)(\.\d+)?$/;return b.test(a);}function IsUsername(c){var a=trim(c);var b=/^[a-zA-Z]{1}\w{5,20}$/;return b.test(a);}function IsURL(c){var d;var a=true;d=c.substring(0,7);d=d.toUpperCase();if((d!="HTTP://")||(c.length<10)){a=false;}return a;}function IsMobile(c){var a=trim(c);if(a.length>11){return false;}var b=/1\d{10}/;return b.test(a);}function IsCode(c){var a=trim(c);var b=/^[1-9]\d{5}$/;return b.test(a);}function IsPhone(c){var a=trim(c);var b=/^(0(\d){3}-)?(\d){7}(-(\d){1,6})?|(0(\d){2}-)?(\d){8}(-(\d){1,6})?$/;return b.test(a);}function IsPwd(c){var a=trim(c);if(a.indexOf(" ")>=0){return false;return;}var b=/[a-zA-Z0-9]/;return b.test(a);}function getVal(a){var b="";try{b=document.getElementById(a).value;if(b.indexOf("name=")!=-1){return -1;}}catch(c){b="";}return b;}function doPage(e,c,b,f,d,a){if(e>0&&e<=b&&e!=c){getmodule(f,d+"&currepage="+e,a);}}function getPageObj(k,c,o){var a=$("totalpage").value;var h=$("currepage").value;var d=5;var q=parseInt(h)-1;var r=parseInt(h)+1;var t="";var g=parseInt(a);if(g<=1){return;}var b=(g-1)/d+1;var p=0;for(var e=0;e<b;e++){if(parseInt(h)<=(d*(e+1))&&parseInt(h)>(d*e)){p=e;}}if(g>d*(p+1)){g=d*(p+1);}var l=0;if(a!=null&&a!=""){for(var f=d*p;f<g;f++){if(h==(f+1)){t+="<span class='current'>"+(f+1)+"</span> ";}else{t+="<a href=javascript:toPage("+(f+1)+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>"+(f+1)+"</a> ";}l=f+1;}}var s="";if(h==1){s="<span class='disabled' id='firstpage' onclick=javascript:toPage(1,"+h+","+a+",'"+k+"','"+c+"','"+o+"');>首页</span> ";s+="<span class='disabled' id='uppage' onclick=javascript:toPage("+q+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>上一页</span> "+t;}else{s="<a id='firstpage' href=javascript:toPage(1,"+h+","+a+",'"+k+"','"+c+"','"+o+"');>首页</a> ";s+="<a id='uppage' href=javascript:toPage("+q+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>上一页</a> "+t;}if((l+2)==a){s=s+" <a href=javascript:toPage("+(a-1)+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>"+(a-1)+"</a> <a href=javascript:toPage("+a+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>"+a+"</a> ";}else{if((l+2)<a){s=s+"... <a href=javascript:toPage("+(a-1)+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>"+(a-1)+"</a> <a href=javascript:toPage("+a+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>"+a+"</a> ";}else{if((l+1)==a){s=s+" <a href=javascript:toPage("+a+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>"+a+"</a> ";}}}if(h==a){s+="<span class='disabled' id='downpage' onclick=javascript:toPage("+r+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>下一页</span> ";s+="<span class='disabled' id='lastpage' onclick=javascript:toPage("+a+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>末页</span>";}else{s+="<a id='downpage' href=javascript:toPage("+r+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>下一页</a> ";s+="<a id='lastpage' href=javascript:toPage("+a+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>末页</a>";}document.getElementById("pageObj").innerHTML=s;}function toPage(e,c,b,f,d,a){if(e>0&&e<=b&&e!=c){getmodule(f,d+"&currepage="+e,new Array(a));}}function getFckText(d){if(!document.getElementById(d)){return document.getElementById("data_temp").innerHTML;}var a=document.getElementById(d).contentWindow.document;var c=a.getElementById("fck_edit___Frame").contentWindow.document;var b=c.getElementsByTagName("iframe");return b[0].contentWindow.document.body.innerHTML;}function getFckText001(d){if(!document.getElementById(d)){return document.getElementById("data_temp").innerHTML;}var a=document.getElementById(d).contentWindow.document;var c=a.getElementById("fck_edit___Frame").contentWindow.document;var b=c.getElementById("eEditorArea").contentWindow.document;return b.body.innerHTML;}function setFckText001(e){var a=document.getElementById(e).contentWindow.document;var b=document.getElementById(e+"_temp").innerHTML;var f=a.getElementById("fck_edit");var d=a.getElementById("fck_edit___Frame").contentWindow.document;var c=d.getElementById("eEditorArea").contentWindow.document;c.body.innerHTML=b;}function setFckText(e){var a=document.getElementById(e).contentWindow.document;var c=document.getElementById(e+"_temp").innerHTML;var f=a.getElementById("fck_edit");var d=a.getElementById("fck_edit___Frame").contentWindow.document;var b=d.getElementsByTagName("iframe");b[0].contentWindow.document.body.innerHTML=c;}function setFckPic(g,b){var a=parent.document.getElementById(g).contentWindow.document;var f=a.getElementById("fck_edit___Frame").contentWindow.document;var c=f.getElementsByTagName("iframe");var d=300;var h=300;var e=300;if(parent.document.getElementById("showpicWidth")){h=parseInt(parent.document.getElementById("showpicWidth").value);}if(parent.document.getElementById("showpicWidth_default")){e=parseInt(parent.document.getElementById("showpicWidth_default").value);}if(document.getElementById("showWidth")){d=document.getElementById("showWidth").value;}if(e<h){d=e;}else{if(e>h){d=h;}}c[0].contentWindow.document.body.innerHTML+="<img src='../../"+b+"' width="+d+">";}function uploadutil(b,a){if(a=="excelfile"||a=="excelmember"||a=="smsfiletest"){excelfile(b,a);}if(a=="txtfile"||a=="smstxtfile"){txtfile(b,a);}}function showInfoParam22(a,e,d,c){var f=document.getElementById(a);f.style.top=(document.body.scrollTop+(document.body.clientHeight-107)/2)+"px";f.style.left=(document.body.scrollLeft+(document.body.clientWidth-255)/2)+"px";document.getElementById(a+"_span").innerHTML=e;var b="<div class='title_pop'><span><a href='javascript:closePubWin();'></a></span>提示</div><div class='pop_table' style='width:340px;'><p>ȷ��ɾ����确定删除吗?</p><p class='window_btn' style='padding-top:20px;'><a  href=javascript:; class='pop_btn' style='float:left; margin-right:3px; margin-left:100px;' onclick=closeDiv('"+a+"'); "+d+">提交</a>";if(c==true){b+="<a href='javascript:;' class='pop_btn3' style='float:left;'  onclick=closeDiv('"+a+"');>ȡ��取消</a>";}b+="</p></div>";alert(b);alert(document.getElementById(a+"_span2").innerHTML);document.getElementById(a+"_span2").innerHTML=b;alert(b);showDiv(a);toCenter(150,80,a);}function showInfoParam(a,e,d,c){var f=document.getElementById(a);f.style.top=(document.body.scrollTop+(document.body.clientHeight-107)/2)+"px";f.style.left=(document.body.scrollLeft+(document.body.clientWidth-255)/2)+"px";document.getElementById(a+"_span").innerHTML=e;var b="<input type=button value=确定 onclick=\"closeDiv('"+f.id+"'); "+d+'"/>';if(c==true){var b=b+"&nbsp;&nbsp;&nbsp;&nbsp;<input type=button value=取消 onclick=\"closeDiv('"+f.id+"');\"/>";}document.getElementById(a+"_span2").innerHTML=b;showDiv(f.id);toCenter(150,80,a);}function getFormData(e){var d=document.getElementById(e);if(d=="null"||d==null){return"";}var b=new Array();var h="";var j=0;for(i=0;i<d.length;i++){var g=d.elements[i];var a=processStr(g.value);a=trim(a);if(a.substring(0,3)=="--&"){a="";}if(g.type=="checkbox"&&g.checked==true){h=h+g.name+"="+a+"&";}else{if(g.type=="radio"&&g.checked==true){h=h+g.name+"="+a+"&";}else{if(g.type=="text"){h=h+g.name+"="+a+"&";}else{if(g.type=="file"){h=h+g.name+"="+a+"&";}else{if(g.type=="hidden"){h=h+g.name+"="+a+"&";}else{if(g.type=="select-one"){h=h+g.name+"="+a+"&";}else{if(g.type=="password"){h=h+g.name+"="+a+"&";}else{if(g.type=="textarea"){h=h+g.name+"="+a+"&";}}}}}}}}}return h;}function block_tiaozhuan(c,b,f,e,a){if(b>1){var d="<input id='tiaopage' type='text' value="+c+" style='width:30px; border: 1px solid #cccccc; height:15px; margin-bottom: -2px; margin-left:10px; padding-top:3px' onchange=javascript:tiaoPage("+c+","+b+",'"+f+"','"+e+"','"+a+"'); />";document.getElementById("pageObj").innerHTML+=d;}}function tiaoPage(c,b,f,e,a){var d=document.getElementById("tiaopage").value;if(IsNumber(d)==false||d<=0||d>b){alert("请输入有效数字!");document.getElementById("tiaopage").value="";document.getElementById("tiaopage").focus();return;}if(d>0&&d<=b&&d!=c){getmodule(f,e+"&currepage="+d,new Array(a));}}function getPageObj_pubwin(k,c,o){var a=document.getElementById("totalpage_pubwin").value;var h=document.getElementById("currepage_pubwin").value;var d=5;var q=parseInt(h)-1;var r=parseInt(h)+1;var t="";var g=parseInt(a);if(g<=1){return;}var b=(g-1)/d+1;var p=0;for(var e=0;e<b;e++){if(parseInt(h)<=(d*(e+1))&&parseInt(h)>(d*e)){p=e;}}if(g>d*(p+1)){g=d*(p+1);}var l=0;if(a!=null&&a!=""){for(var f=d*p;f<g;f++){if(h==(f+1)){t+="<span class='current'>"+(f+1)+"</span> ";}else{t+="<a href=javascript:toPage("+(f+1)+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>"+(f+1)+"</a> ";}l=f+1;}}var s="";if(h==1){s="<span class='disabled' id='firstpage' onclick=javascript:toPage(1,"+h+","+a+",'"+k+"','"+c+"','"+o+"');>首页</span> ";s+="<span class='disabled' id='uppage' onclick=javascript:toPage("+q+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>上一页</span> "+t;}else{s="<a id='firstpage' href=javascript:toPage(1,"+h+","+a+",'"+k+"','"+c+"','"+o+"');>首页</a> ";s+="<a id='uppage' href=javascript:toPage("+q+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>上一页</a> "+t;}if((l+2)==a){s=s+" <a href=javascript:toPage("+(a-1)+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>"+(a-1)+"</a> <a href=javascript:toPage("+a+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>"+a+"</a> ";}else{if((l+2)<a){s=s+"... <a href=javascript:toPage("+(a-1)+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>"+(a-1)+"</a> <a href=javascript:toPage("+a+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>"+a+"</a> ";}else{if((l+1)==a){s=s+" <a href=javascript:toPage("+a+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>"+a+"</a> ";}}}if(h==a){s+="<span class='disabled' id='downpage' onclick=javascript:toPage("+r+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>下一页</span> ";s+="<span class='disabled' id='lastpage' onclick=javascript:toPage("+a+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>末页</span>";}else{s+="<a id='downpage' href=javascript:toPage("+r+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>下一页</a> ";s+="<a id='lastpage' href=javascript:toPage("+a+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>末页</a>";}document.getElementById("pageObj_pubwin").innerHTML=s;}function toCenter_index(b,a,f){var d=f?document.getElementById(f):document.getElementById("pubwin");var e=document.getElementById("sider");d.style.zIndex=e.style.zIndex+1;var c=navigator.userAgent;if(c.indexOf("MSIE 6.0")>0){d.style.position="absolute";e.style.position="absolute";}if(!b){b=d.scrollWidth;}if(!a){a=obj.scrollHeight;}d.style.width=b+"px";d.style.height=a+"px";e.style.width=(b+20)+"px";e.style.height=(a+20)+"px";setObjCenter(d,b,a);setObjCenter(e,b+18,a+18);d.style.display="block";e.style.display="block";opSelect("hidden");document.getElementById("sider").style.display="none";}function toCenterMap(b,a){var d=document.getElementById("pubmap");var e=document.getElementById("sider");var c=navigator.userAgent;if(c.indexOf("MSIE 6.0")>0){d.style.position="absolute";e.style.position="absolute";}if(!b){b=d.scrollWidth;}if(!a){a=obj.scrollHeight;}d.style.width=b+"px";d.style.height=a+"px";e.style.width=(b+20)+"px";e.style.height=(a+20)+"px";setObjCenter(d,b,a);setObjCenter(e,b+20,a+20);d.style.display="block";e.style.display="block";opSelect("hidden");}function closePubWinMap(){var b=document.getElementById("sider");var a=document.getElementById("pubmap");if(b){b.style.display="none";}if(a){a.style.display="none";}opSelect("visible");}function opSelect(b){if(document.getElementById("content")){var d=document.getElementById("content");var a=d.getElementsByTagName("select");for(var c=0;c<a.length;c++){var e=a[c];e.style.visibility=b;}}}function getSeqVal(a){var c="";var d=(new Date()).valueOf();var e="ajaxserver.do?method=getSeqVal&seq_name="+a+"&t="+d;var f=new Ajax.Request(e,{asynchronous:false,method:"get",evalScripts:true,onSuccess:function b(g){c=g.responseText;}});return c;}function noclob(f,e,c,a,b,d){getmodule("seq",f);updateF(e,c,a,b,d);}function updateF(g,d,b,c,e){var f=getFckText(e);f=f.replace(/&amp;/g,"amp;");f=f.replace(/[\/]/g,"|");f=f.replace(/[$]/g,"＄");var a=new Ajax.Request("ajaxserver.do",{method:"",parameters:"method=updateContent&seqval="+g+"&tablename="+d+"&columns="+b+"&idname="+c+"&val="+escape(escape(f)),asynchronous:"false"});}function updateFStr(f,d,b,c,g){var e=g;e=e.replace(/&amp;/g,"amp;");e=e.replace(/[\/]/g,"|");e=e.replace(/[$]/g,"＄");var a=new Ajax.Request("ajaxserver.do",{method:"",parameters:"method=updateContent&seqval="+f+"&tablename="+d+"&columns="+b+"&idname="+c+"&val="+escape(escape(e)),asynchronous:"false"});}function updateFMail(j,b,m,f,k,g,o,l){var r=j.split("|");var c=r[0];var p=r[1];var e=getFckText(l);e=e.replace(/&amp;/g,"amp;");e=e.replace(/[$]/g,"＄");var n="";if(b!=0){var d="ajax.do?method=doApp&app_attribute=getmailmodel&templetid="+b;var a=new Ajax.Request(d,{asynchronous:false,method:"get",evalScripts:true,onSuccess:function h(s){n=s.responseText;}});e=n.split("|")[0]+e+"</div>";if(m!=""&&j!=""){getmodule("pubwin","bo_id=mail_model_contact&type="+m+"&id="+c+"&shopid="+p);e=e+document.getElementById("pubwin").innerHTML;}e=e+n.split("|")[1];}var q=new Ajax.Request("ajaxserver.do",{method:"",parameters:"method=updateContent&seqval="+f+"&tablename="+k+"&columns="+g+"&idname="+o+"&val="+escape(escape(e)),asynchronous:"false"});}function updateFF(g,e,c,d,a){var f=document.getElementById(a).innerHTML;f=f.replace(/&amp;/g,"amp;");f=f.replace(/[\r\n]/g,"<br>");f=f.replace(/[\/]/g,"|");var b=new Ajax.Request("ajaxserver.do",{method:"",parameters:"method=updateContent&seqval="+g+"&tablename="+e+"&columns="+c+"&idname="+d+"&val="+escape(escape(f)),asynchronous:"false"});}function exportFile(e){var d="";var b="ajax.do?method=getMod&"+e;var c=new Ajax.Request(b,{asynchronous:false,method:"get",evalScripts:true,onSuccess:function a(f){d=f.responseText;}});b=d.replace("\\","/");window.open(b,"_blank");}function getValText(a){var b=document.getElementById(a).innerText;return b;}function ajaxAction(a,c){var b=new Ajax.Updater(a,c,{asynchronous:false,method:"get",evalScripts:true});}function changeClass(g,d,f){var c=document.getElementById(g);var e=c.getElementsByTagName("li");var a=e.length;for(var b=0;b<a;b++){if(f==b){e[b].className=d;}else{e[b].className="";}}}function changeClassAll(j,d,e,a,c){var b=document.getElementById(j);var g=b.getElementsByTagName(d);var h=g.length;for(var f=0;f<h;f++){if(c==f){g[f].className=e;}else{g[f].className=a;}}}function changeAClassAll(g,e,d,f){var c=document.getElementsByName(g);var a=c.length;for(var b=0;b<a;b++){if(f==b){c[b].className=e;}else{c[b].className=d;}}}function getStringLength(b){var a=0;for(i=0;i<b.length;i++){if(b.charCodeAt(i)>256){a+=2;}else{a++;}}return a;}function simplePage(a){document.getElementById(a).click();}function gotoObj(a){if($(a)){$(a).focus();}}function clearTextArea(a){if(getOs()=="MSIE"){document.getElementById(a).innerHTML="";}else{document.getElementById(a).value="";}}function copy(b){var a=document.getElementById(b).value;window.clipboardData.setData("Text",a);}var curr_gg=0;function gg(b,h,c,f){var g=document.getElementById(b).value;var a=document.getElementById(h);var e=a.getElementsByTagName("li").length;var d=a.getElementsByTagName("li");if(g!=null&&isNan(g)&&event.keyCode!=40&&event.keyCode!=38&&event.keyCode!=13){getmodule(h,c);a.style.display="block";}else{if(event.keyCode==40&&e>0){if(curr_gg>e-1){curr_gg=e-1;}if(d[curr_gg-1]){ggs(d[curr_gg-1],1);}if(d[curr_gg]){ggs(d[curr_gg],0);}if(d[curr_gg+1]){curr_gg++;}}else{if(event.keyCode==38&&e>0){if(curr_gg>0){if(d[curr_gg]){ggs(d[curr_gg],1);}if(d[curr_gg-1]){ggs(d[curr_gg-1],0);}if(d[curr_gg-1]){curr_gg--;}}}else{if(event.keyCode==13&&e>0){ggclick(d[curr_gg],b,f,h);}else{a.innerHTML="";a.style.display="none";curr_gg=0;}}}}}function ggclick(d,a,c,e){var b=d.innerHTML;if(b){b=trim(b);}document.getElementById(a).value=b;document.getElementById(c).value=d.id;document.getElementById(e).style.display="none";curr_gg=0;}function ggs(b,a){if(a==0){b.style.background="#acc6e9";b.style.color="#fff";}else{if(a==1){b.style.background="#e8f5fe";b.style.color="#000";}}}function tip(targetid,params,divid){new Tip(document.getElementById(targetid),{ajax:{url:"ajax.do?method=getMod&"+params,options:{asynchronous:false,onComplete:function(){var obj_js=$(divid+"_js");var jsStr="";if(obj_js){jsStr=obj_js.innerHTML;}if(jsStr.indexOf(";")>-1){var jsArr=jsStr.split(";");for(var i=0;i<jsArr.length;i++){eval(jsArr[i]);}}else{eval(jsStr);}}}}},{title:"",style:"default",stem:{position:"auto",height:12,width:16},hideOn:{element:"add_friends",event:"click"},hideOn:{element:"set_znj",event:"click"},offset:{x:0,y:0},width:200});}function sleep(b){var a=new Date();var c=a.getTime()+b;while(true){a=new Date();if(a.getTime()>c){return;}}}function setCurSeleted(d,b){var c=document.getElementById(d);for(var a=0;a<c.options.length;a++){if(c.options[a].value==b){c.options[a].selected=true;}}}function setCurrCSS(a,d,c,f){var e=document.getElementsByName(a);if(e!=null){for(var b=0;b<e.length;b++){if(f==null||f==undefined||f==""){e[b].className="";}else{e[b].className=f;}}}if(document.getElementById(d)){document.getElementById(d).className=c;}}function setCurRadio(a,d){var c=document.getElementsByName(a);for(var b=0;b<c.length;b++){if(c[b].value==d){c[b].checked=true;}}}function lookOldPic(d){d=d.replace("con_","");var b=new Image();b.src=d;var c=800;var a=600;if(b.width!=0&&b.height!=0){c=b.width+30;a=b.height+30;}if(c>=1000){c=1000;}window.open(d,"查看原图","width="+c+",height="+a+",channelmode=no,location=no,resizable=yes,status=no,toolbar=no,menubar=no,location=no,z-look=yes");}function closeCommonLayer(){if(document.getElementById("pubwin")){closePubWin();}if(document.getElementById("pubmap")){closePubWinMap();}if(document.getElementById("info")){closeDiv("info");}}function toselectbytest(c,a){var f=document.getElementById(c);var b=f.options.length;for(var d=1;d<b;d++){var e=f.options[d].innerHTML;if(e==a){f.options[d].selected=true;break;}}}function __firefox(){HTMLElement.prototype.__defineGetter__("runtimeStyle",__element_style);window.constructor.prototype.__defineGetter__("event",__window_event);Event.prototype.__defineGetter__("srcElement",__event_srcElement);}function __element_style(){return this.style;}function __window_event(){return __window_event_constructor();}function __event_srcElement(){return this.target;}function __window_event_constructor(){if(document.all){return window.event;}var c=__window_event_constructor.caller;while(c!=null){var b=c.arguments[0];if(b){var a=b.constructor;if(a.toString().indexOf("Event")!=-1){return b;}}c=c.caller;}return null;}if(window.addEventListener){__firefox();}var lBrowser={};lBrowser.agt=navigator.userAgent.toLowerCase();lBrowser.isW3C=document.getElementById?true:false;lBrowser.isIE=((lBrowser.agt.indexOf("msie")!=-1)&&(lBrowser.agt.indexOf("opera")==-1)&&(lBrowser.agt.indexOf("omniweb")==-1));lBrowser.isNS6=lBrowser.isW3C&&(navigator.appName=="Netscape");lBrowser.isOpera=lBrowser.agt.indexOf("opera")!=-1;lBrowser.isGecko=lBrowser.agt.indexOf("gecko")!=-1;lBrowser.ieTrueBody=function(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;};if(lBrowser.isNS6){HTMLElement.prototype.__defineGetter__("innerText",function(){return this.textContent;});HTMLElement.prototype.__defineSetter__("innerText",function(a){this.textContent=a;});}function ie_ff_area(a){if(getOs()=="MSIE"){var b=trim(document.getElementById(a).innerHTML);}else{var b=trim(document.getElementById(a).value);}return b;}function copy_clip(g){getmodule("pubwin","bo_id=pubwin_small&pubwintitle=提示&pubwincontent=已将该链接复制到剪切板");if(window.clipboardData){window.clipboardData.setData("Text",g);}else{if(window.netscape){netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");var c=Components.classes["@mozilla.org/widget/clipboard;1"].createInstance(Components.interfaces.nsIClipboard);if(!c){return;}var b=Components.classes["@mozilla.org/widget/transferable;1"].createInstance(Components.interfaces.nsITransferable);if(!b){return;}b.addDataFlavor("text/unicode");var e=new Object();var a=new Object();var e=Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);var f=g;e.data=f;b.setTransferData("text/unicode",e,f.length*2);var d=Components.interfaces.nsIClipboard;if(!c){return false;}c.setData(b,null,d.kGlobalClipboard);}}return false;}function refreshFCK(a,b){document.getElementById(a).src=b;}function setTop(){window.location.hash="topnode";}function getmodulesAdvanceBack(divid,buid,param,initarray){closeCommonLayer();param=param+"&divid_system="+divid;var replaceobj=document.getElementById(divid);var myAjax=new Ajax.Updater(divid,contextPath+"ajax.do?method=getBU&bu_id="+buid+"&"+param,{asynchronous:false,method:"get",evalScripts:true,onComplete:function callBack(response){initjs(replaceobj);if(initarray){for(var i=0;i<initarray.length;i++){eval(initarray[i]);}}}});save_history_rsh();}function getmoduleAdvanceBack(divid,para,initarray){if(event&&event.keyCode!=0&&!(event.keyCode>=0&&event.keyCode<=90)){closeCommonLayer();}para=para+"&divid_system="+divid;var replaceobj=document.getElementById(divid);var myAjax=new Ajax.Request(contextPath+"ajax.do?method=getMod&"+para,{asynchronous:false,method:"get",evalScripts:true,onComplete:function callBack(response){replaceobj.innerHTML=response.responseText;initjs(replaceobj);if(initarray){for(var i=0;i<initarray.length;i++){eval(initarray[i]);}}}});save_history_rsh();}function save_history_rsh(){if(info_history_switch==true){var c=document.title;if(c.indexOf("#")>-1){document.title=c.substr(0,c.indexOf("#"));}var a=new Date();var b=document.getElementById(currently_url_div_value_01).innerHTML;if(b==null||"null"==b||""==b){return;}dhtmlHistory.add(a.getTime(),document.getElementById(currently_url_div_value_01).innerHTML);}}function save_init_rsh(){if(info_history_switch==true){var c=document.title;if(c.indexOf("#")>-1){document.title=c.substr(0,c.indexOf("#"));}var a=new Date();var b=document.getElementById(currently_url_div_value_01).innerHTML;if(b==null||"null"==b||""==b){return;}dhtmlHistory.addInit(a.getTime(),document.getElementById(currently_url_div_value_01).innerHTML);}}function return_div_value(){var e="/ajax.do?";var b="/initPage?";var d="info_history";var a="mid";var c=window.location.href;if(c.search(e)!=-1){return d;}else{if(c.search(b!=-1)){return a;}else{return d;}}}function getPageObjAdvanceBack(k,c,o){var a=$("totalpage").value;var h=$("currepage").value;var d=5;var q=parseInt(h)-1;var r=parseInt(h)+1;var t="";var g=parseInt(a);if(g<=1){return;}var b=(g-1)/d+1;var p=0;for(var e=0;e<b;e++){if(parseInt(h)<=(d*(e+1))&&parseInt(h)>(d*e)){p=e;}}if(g>d*(p+1)){g=d*(p+1);}var l=0;if(a!=null&&a!=""){for(var f=d*p;f<g;f++){if(h==(f+1)){t+="<span class='current'>"+(f+1)+"</span> ";}else{t+="<a href=javascript:toPageAdvanceBack("+(f+1)+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>"+(f+1)+"</a> ";}l=f+1;}}var s="";if(h==1){s="<span class='disabled' id='firstpage' onclick=javascript:toPageAdvanceBack(1,"+h+","+a+",'"+k+"','"+c+"','"+o+"');>首页</span> ";s+="<span class='disabled' id='uppage' onclick=javascript:toPageAdvanceBack("+q+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>上一页</span> "+t;}else{s="<a id='firstpage' href=javascript:toPageAdvanceBack(1,"+h+","+a+",'"+k+"','"+c+"','"+o+"');>首页</a> ";s+="<a id='uppage' href=javascript:toPageAdvanceBack("+q+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>上一页</a> "+t;}if((l+2)==a){s=s+" <a href=javascript:toPageAdvanceBack("+(a-1)+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>"+(a-1)+"</a> <a href=javascript:toPageAdvanceBack("+a+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>"+a+"</a> ";}else{if((l+2)<a){s=s+"... <a href=javascript:toPageAdvanceBack("+(a-1)+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>"+(a-1)+"</a> <a href=javascript:toPageAdvanceBack("+a+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>"+a+"</a> ";}else{if((l+1)==a){s=s+" <a href=javascript:toPageAdvanceBack("+a+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>"+a+"</a> ";}}}if(h==a){s+="<span class='disabled' id='downpage' onclick=javascript:toPageAdvanceBack("+r+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>下一页</span> ";s+="<span class='disabled' id='lastpage' onclick=javascript:toPageAdvanceBack("+a+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>末页</span>";}else{s+="<a id='downpage' href=javascript:toPageAdvanceBack("+r+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>下一页</a> ";s+="<a id='lastpage' href=javascript:toPageAdvanceBack("+a+","+h+","+a+",'"+k+"','"+c+"','"+o+"');>末页</a>";}document.getElementById("pageObj").innerHTML=s;}function toPageAdvanceBack(e,c,b,f,d,a){if(e>0&&e<=b&&e!=c){getmoduleAdvanceBack(f,d+"&currepage="+e,new Array(a));}}function doPageAdvanceBack(e,c,b,f,d,a){if(e>0&&e<=b&&e!=c){getmoduleAdvanceBack(f,d+"&currepage="+e,a);}}function block_tiaozhuanAdvanceBack(c,b,f,e,a){if(b>1){var d="<input id='tiaopage' type='text' value="+c+" style='width:30px; border: 1px solid #cccccc; height:15px; margin-bottom: -2px; margin-left:10px; padding-top:3px' onchange=javascript:tiaoPageAdvanceBack("+c+","+b+",'"+f+"','"+e+"','"+a+"'); />";document.getElementById("pageObj").innerHTML+=d;}}function tiaoPageAdvanceBack(c,b,f,e,a){var d=document.getElementById("tiaopage").value;if(IsNumber(d)==false||d<=0||d>b){alert("请输入有效数字!");document.getElementById("tiaopage").value="";document.getElementById("tiaopage").focus();return;}if(d>0&&d<=b&&d!=c){getmoduleAdvanceBack(f,e+"&currepage="+d,new Array(a));}}function getOs(){var a="";if(navigator.userAgent.indexOf("MSIE")>0){return"MSIE";}if(isFirefox=navigator.userAgent.indexOf("Firefox")>0){return"Firefox";}if(isSafari=navigator.userAgent.indexOf("Safari")>0){return"Safari";}if(isCamino=navigator.userAgent.indexOf("Camino")>0){return"Camino";}if(isMozilla=navigator.userAgent.indexOf("Gecko/")>0){return"Gecko";}}function setFF_fckimg(){getmodule("pubwin","bo_id=fckimg");toCenter(400,250);}function up_load_ff(){var a=$("pic").value;closePubWin();var b=document.getElementById("iframeid_fck").value;setFckPic(b,a);}function GetStaticHead(a){getmodule("top_info","bo_id=index_top_min");var b=document.getElementById("totalitem_Statistics");if(b){if(document.getElementById("totalitem_Statistics")){getmodule("mid_cnt_utility_tools","bo_id=mid_cnt_utility_tools");}getmodule("tail","bo_id=tail");index_selecttotalitem();}}function getmoduleOnback(divid,para,initarray){if(event&&event.keyCode!=0&&!(event.keyCode>=0&&event.keyCode<=90)){closeCommonLayer();}para=para+"&divid_system="+divid;var replaceobj=document.getElementById(divid);var myAjax=new Ajax.Request(contextPath+"ajax.do?method=getMod&"+para,{asynchronous:false,method:"get",evalScripts:true,onSuccess:function handlerFunc(response){alert("操作成功...");replaceobj.innerHTML=response.responseText;initjs(replaceobj);if(initarray){for(var i=0;i<initarray.length;i++){eval(initarray[i]);}}},onFailure:function errFunc(response){alert("操作失败.."+response.responseText);}});}function getmoduleByPostOnback(divid,boid,formid,initarray){if(event&&event.keyCode!=0&&!(event.keyCode>=0&&event.keyCode<=90)){closeCommonLayer();}var replaceobj=document.getElementById(divid);var para=getFormDataByPost(formid);para+="&bo_id="+escape(escape(boid));para+="&divid_system="+divid;if(document.getElementById("sharefavdiv")){para+="&objurl_share="+escape(escape(document.getElementById("sharefavdiv").innerHTML));}var myAjax=new Ajax.Updater(divid,contextPath+"ajax.do?method=getMod&request_type=post",{asynchronous:false,method:"post",evalScripts:true,parameters:para,onSuccess:function handlerFunc(response){alert("操作成功...");initjs(replaceobj);if(initarray){for(var i=0;i<initarray.length;i++){eval(initarray[i]);}}},onFailure:function errFunc(response){alert("操作失败.."+response.responseText);}});}