var D,$;try{D=SunRise.Dom;$=D.get}catch(e){}function cur(){var b=document.body;if(!b.getAttribute("type")){return}var a=b.getAttribute("type").replace(/\s+/g,"");var c="mainNav_"+a;if($(c)){$(c).className="on"}}function left_cur(){if(!$("sidebar")){return}var b=$("sidebar");if(!b.getAttribute("type")){return}var a=b.getAttribute("type").replace(/\s+/g,"");var c="sidebar_menu_"+a;if($(c)){$(c).className="on"}}function shover(b,a){if(!b){return}b.className=a}function jumpMenu(a){if(a.selectedIndex==0){return}window.open(a.options[a.selectedIndex].value)}function FormCheck(){if(document.frm_search.qt.value=="请输入搜索关键字眼"||document.frm_search.qt.value==""){document.frm_search.qt.focus();document.frm_search.qt.value="";return false}}function Offset(f){var c=f.offsetTop;var b=f.offsetLeft;var a=f.offsetWidth;var d=f.offsetHeight-2;while(f=f.offsetParent){c+=f.offsetTop;b+=f.offsetLeft}return{top:c,left:b,width:a,height:d}}function getEvent(){if(document.all){return window.event}func=getEvent.caller;while(func!=null){var a=func.arguments[0];if(a){if((a.constructor==Event||a.constructor==MouseEvent)||(typeof(a)=="object"&&a.preventDefault&&a.stopPropagation)){return a}}func=func.caller}return null}function getEl(){var a=getEvent();var b=a.srcElement||a.target;return b}function cancleEventUp(a){if(document.all){window.event.cancelBubble=true}else{a.stopPropagation()}}function openPopWin(b,c,g,a){var b;var c;var g;if(a=="L"){window.open(b,"","height="+g+",innerHeight="+g+",width="+c+",innerWidth="+c+",top="+0+",left="+0+",toolbar=no,menubar=no,scrollbars=yes,resizeable=no,location=no,status=no")}else{var f=(window.screen.availHeight-30-g)/2;var d=(window.screen.availWidth-10-c)/2;window.open(b,"","height="+g+",,innerHeight="+g+",width="+c+",innerWidth="+c+",top="+f+",left="+d+",toolbar=no,menubar=no,scrollbars=yes,resizeable=no,location=no,status=no")}}function sug_form_sub(){return sug_myForm?true:false}function testMail(c){var a=new SunRise.Validate();if(!$(c)){return}var b=$(c).value;if(a.isEmail(b)){return true}else{if(b.replace(/\s+/g,"")==""){alert("请输入邮箱地址!")}else{alert("邮箱地址格式不对!")}$(c).focus()}return false}function sendToMe(){sug_myForm=testMail("yourEmail")?true:false;$("yourEmail").name="yourEmail"}function sendToFriend(){var a=new SunRise.Validate();sug_myForm=false;if($("yourName").value.replace(/\s+/g,"")==""){alert("请输入您的姓名！");$("yourName").focus()}else{sug_myForm=testMail("yourFriendEmail")?true:false;if(sug_myForm){if($("yourFriendMobile").value.replace(/\s+/g,"")==""){alert("请输入好友手机号码！");$("yourFriendMobile").focus();sug_myForm=false}else{if(a.isMobile($("yourFriendMobile").value.replace(/\s+/g,""))){sug_myForm=true}else{alert("手机号码格式不对！");$("yourFriendMobile").focus();sug_myForm=false}}}}$("yourEmail").name="yourEmail";$("yourEmail").value=$("yourFriendEmail").value}function _tabFunc(g,f){var d=$("tabBox_0"+g).getElementsByTagName("div");var b=$("tabMenu_0"+g).getElementsByTagName("li");for(var c=0,a=b.length;c<a;c++){b[c].className=c==f?"on":"";d[c].className=c==f?"box":"box hide"}}function pop_tip_msn(d,b){if(typeof(_pop_tip_msn)=="undefined"){_pop_tip_msn=document.createElement("div");_tipfilter=document.createElement("iframe");_pop_tip_content=document.createElement("div");_pop_tip_msn.id="pop_tip_msn";_tipfilter.className="tipfilter";_pop_tip_content.className="pop_tip_content"}_pop_tip_msn.className="pop_tip_msn";var d=$(d);var a=Offset(d);_pop_tip_msn.style.left=a.left+10+"px";_pop_tip_msn.style.top=a.top+10+"px";_pop_tip_content.style.width=a.width+"px";_pop_tip_content.innerHTML="<div class='bg_tr'><div class='bg_bl'><div class='bg_br'>"+b+"</div></div></div>";if(!$("pop_tip_msn")){try{_pop_tip_msn.appendChild(_tipfilter);_pop_tip_msn.appendChild(_pop_tip_content);document.body.appendChild(_pop_tip_msn)}catch(c){}}_tipfilter.style.height=_pop_tip_content.scrollHeight+"px";d.focus();d.onmousedown=d.onblur=function(){_pop_tip_msn.className="pop_tip_msn hide"}}var http_request=false;function send_requestSMS(a){http_request=false;if(window.XMLHttpRequest){http_request=new XMLHttpRequest();if(http_request.overrideMimeType){http_request.overrideMimeType("text/xml")}}else{if(window.ActiveXObject){try{http_request=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{http_request=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}}}if(!http_request){window.alert("不能创建XMLHttpRequest对象实例.");return false}http_request.onreadystatechange=processRequestSMS;http_request.open("post",a,true);http_request.send(null)}function sendSMSRnd(b,c){var a=c+"?bizCode="+b+"&_r="+Math.random();send_requestSMS(a)}function processRequestSMS(){if(http_request.readyState==4){if(http_request.status==200){var a=http_request.responseText.Trim();if(a=="OK"){alert("短信随机码已成功发送，请注意查收！")}else{if(a=="NOT_LOGIN"){alert("登录超时")}else{if(a=="LIMITED"){alert("您在10分种内发送的短信已经超过三次了，请稍后再试！")}else{alert("发送失败，请重试！")}}}}else{alert("发送失败，请重试！")}}}var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;function ControlVersion(){var a;var b;var c;try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");a=b.GetVariable("$version")}catch(c){}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");a="WIN 6,0,21,0";b.AllowScriptAccess="always";a=b.GetVariable("$version")}catch(c){}}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");a=b.GetVariable("$version")}catch(c){}}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");a="WIN 3,0,18,0"}catch(c){}}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");a="WIN 2,0,0,11"}catch(c){a=-1}}return a}function GetSwfVer(){var h=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var g=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var a=navigator.plugins["Shockwave Flash"+g].description;var f=a.split(" ");var c=f[2].split(".");var i=c[0];var b=c[1];var d=f[3];if(d==""){d=f[4]}if(d[0]=="d"){d=d.substring(1)}else{if(d[0]=="r"){d=d.substring(1);if(d.indexOf("d")>0){d=d.substring(0,d.indexOf("d"))}}}var h=i+"."+b+"."+d}}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1){h=4}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1){h=3}else{if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1){h=2}else{if(isIE&&isWin&&!isOpera){h=ControlVersion()}}}}}return h}function DetectFlashVer(g,d,c){versionStr=GetSwfVer();if(versionStr==-1){return false}else{if(versionStr!=0){if(isIE&&isWin&&!isOpera){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",")}else{versionArray=versionStr.split(".")}var f=versionArray[0];var a=versionArray[1];var b=versionArray[2];if(f>parseFloat(g)){return true}else{if(f==parseFloat(g)){if(a>parseFloat(d)){return true}else{if(a==parseFloat(d)){if(b>=parseFloat(c)){return true}}}}}return false}}}function AC_AddExtension(b,a){if(b.indexOf("?")!=-1){return b.replace(/\?/,a+"?")}else{return b+a}}function AC_Generateobj(f,d,a){var c="";if(isIE&&isWin&&!isOpera){c+="<object ";for(var b in f){c+=b+'="'+f[b]+'" '}c+=">";for(var b in d){c+='<param name="'+b+'" value="'+d[b]+'" /> '}c+="</object>"}else{c+="<embed ";for(var b in a){c+=b+'="'+a[b]+'" '}c+="> </embed>"}document.write(c)}function AC_FL_RunContent(){var a=AC_GetArgs(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");AC_Generateobj(a.objAttrs,a.params,a.embedAttrs)}function AC_SW_RunContent(){var a=AC_GetArgs(arguments,".dcr","src","clsid:166B1BCA-3F9C-11CF-8075-444553540000",null);AC_Generateobj(a.objAttrs,a.params,a.embedAttrs)}function AC_GetArgs(b,f,h,d,j){var a=new Object();a.embedAttrs=new Object();a.params=new Object();a.objAttrs=new Object();for(var c=0;c<b.length;c=c+2){var g=b[c].toLowerCase();switch(g){case"classid":break;case"pluginspage":a.embedAttrs[b[c]]=b[c+1];break;case"src":case"movie":b[c+1]=AC_AddExtension(b[c+1],f);a.embedAttrs.src=b[c+1];a.params[h]=b[c+1];break;case"onafterupdate":case"onbeforeupdate":case"onblur":case"oncellchange":case"onclick":case"ondblClick":case"ondrag":case"ondragend":case"ondragenter":case"ondragleave":case"ondragover":case"ondrop":case"onfinish":case"onfocus":case"onhelp":case"onmousedown":case"onmouseup":case"onmouseover":case"onmousemove":case"onmouseout":case"onkeypress":case"onkeydown":case"onkeyup":case"onload":case"onlosecapture":case"onpropertychange":case"onreadystatechange":case"onrowsdelete":case"onrowenter":case"onrowexit":case"onrowsinserted":case"onstart":case"onscroll":case"onbeforeeditfocus":case"onactivate":case"onbeforedeactivate":case"ondeactivate":case"type":case"codebase":case"id":a.objAttrs[b[c]]=b[c+1];break;case"width":case"height":case"align":case"vspace":case"hspace":case"class":case"title":case"accesskey":case"name":case"tabindex":a.embedAttrs[b[c]]=a.objAttrs[b[c]]=b[c+1];break;default:a.embedAttrs[b[c]]=a.params[b[c]]=b[c+1]}}a.objAttrs.classid=d;if(j){a.embedAttrs.type=j}return a}function login_turn(f){var a=document.getElementById("personal_login");var c=document.getElementById("group_login");var d=document.getElementById("login_turn_a");var b=d.getElementsByTagName("input");switch(f){case 1:if(a.style.display=="none"){a.style.display="";c.style.display="none";b[0].checked=true;b[1].checked=false}break;case 2:if(c.style.display=="none"){c.style.display="";a.style.display="none";b[0].checked=false;b[1].checked=true}break}}function select_login(b){var c=document.getElementById("service_pwd");var g=document.getElementById("mesage_code");var f=document.getElementById("check_code");var a=document.getElementById("personal_login");var d=a.getElementsByTagName("table")[0];var b=b.value;switch(b){case"0":d.className="padding_5px";c.style.display="none";g.style.display="none";f.style.display="none";break;case"1":d.className="";c.style.display="none";g.style.display="";f.style.display="";break;case"2":d.className="";c.style.display="";g.style.display="none";f.style.display="";break;case"3":d.className="padding_0";c.style.display="";g.style.display="";f.style.display="";break}}String.prototype.Trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"")};var http_request=false;function send_request(a){http_request=false;if(window.XMLHttpRequest){http_request=new XMLHttpRequest();if(http_request.overrideMimeType){http_request.overrideMimeType("text/xml")}}else{if(window.ActiveXObject){try{http_request=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{http_request=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}}}if(!http_request){window.alert("不能创建XMLHttpRequest对象实例.");return false}http_request.onreadystatechange=processRequest;http_request.open("post",a,true);http_request.send(null)}function sendSMSPwd(g,d){var f="_logonName";if(d){f=d}var c=document.getElementById(f).value;if(c.length<11){alert("请输入您的手机号码");document.getElementById(f).focus();return false}var b=/^1\d{10}$/;if(c.search(b)==-1){alert("手机号码错误，请输入正确的手机号码！");document.getElementById(f).focus();return false}var a=g+"?_logonName="+c+"&_r="+Math.random();send_request(a)}function processRequest(){if(http_request.readyState==4){if(http_request.status==200){var a=http_request.responseText.Trim();if(a=="OK"){alert("短信随机码已成功发送，请注意查收！")}else{if(a=="LIMITED"){alert("每10分钟最多只能发送三条短信随机码，请稍后再试！")}else{if(a=="WRONG_MOBILE"){alert("手机号码错误，请使用广东移动号码登录！")}else{alert("发送失败，请重试！")}}}}else{alert("发送失败，请重试！")}}}function changeImg(b,a){turn_login(b);setTimeout("changeImg2("+a+")",100)}function refreshimg(a){document.getElementById(a).src="/image?_r="+Math.random()}function changeImg2(a){if(a==1){imgid="img_part_gmcc"}else{imgid="img_part_mpower"}document.getElementById(imgid).src="/wrus/image?_r="+Math.random()}function resetpwd(){if(confirm("只有全球通用户才能进行密码重置，您确定吗？")){window.open("/services/ResetPwd","","scrollbars=yes,resizable=yes,location=yes,menubar=yes")}}function okbutton_onclick_group(){if(document.form1.ADCUser.value.length==0){alert("请输入用户名！");document.form1.ADCUser.focus();return false}if(document.form1.ADCPass.value.length<4){alert("请输入密码！");document.form1.ADCPass.focus();return false}if(document.form1._rndNum.value==null||document.form1._rndNum.value==""){alert("请输入验证码！");document.form1._rndNum.focus();return false}var a=document.form1._rndNum.value;var b=/^[0-9a-zA-Z]*$/;if(a.search(b)==-1){alert("请输入正确的图形校验码！");document.form1._rndNum.focus();return false}return true}function personal_check(){if(document.getElementById("_logonName").value.length<11){alert("请输入您的手机号码");document.getElementById("_logonName").focus();return false}var f=/^1\d{10}$/;if(document.getElementById("_logonName").value.search(f)==-1){alert("手机号码错误，请输入正确的手机号码！");document.getElementById("_logonName").focus();return false}if(document.getElementById("_loginType").options[document.getElementById("_loginType").selectedIndex].value==2){if(document.getElementById("_password").value.length<4){alert("请输入您的服务密码");document.getElementById("_password").focus();return false}var d=document.getElementById("_password").value;var c=/^\d{6}$|^\d{8}$/;if(d.search(c)==-1){alert("服务密码错误，请输入正确的服务密码！");document.getElementById("_password").focus();return false}}if(document.getElementById("_loginType").options[document.getElementById("_loginType").selectedIndex].value!=0){if(document.getElementById("_rndForm").value==null||document.getElementById("_rndForm").value==""){alert("请输入校验码右边的数字");document.getElementById("_rndForm").focus();return false}var a=document.getElementById("_rndForm").value;var b=/^[0-9a-zA-Z]*$/;if(a.search(b)==-1){alert("请输入正确的图形校验码！");document.getElementById("_rndForm").focus();return false}}document.getElementById("submit_button").disabled=true;return true}function send_request_common(c,a){var d=false;if(window.XMLHttpRequest){d=new XMLHttpRequest();if(d.overrideMimeType){d.overrideMimeType("text/xml")}}else{if(window.ActiveXObject){try{d=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{d=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}}}if(!d){window.alert("不能创建XMLHttpRequest对象实例.");return false}d.onreadystatechange=function(){processRequestCommon(d,c)};d.open("post",a,true);d.send("")}function ajax_Common(b,c){var a=c+"&_r="+Math.random();send_request_common(b,a)}function processRequestCommon(c,b){if(c.readyState==4){if(c.status==200){var a=c.responseText.Trim();document.getElementById(b).innerHTML=a}else{}}}function onloadLoginType(b){var a=document.getElementById("_loginType");a.value=b;select_login(a)}function hiddenVerify(a){if(!verifyCounter[0]){return}if(!a){verifyCounter[0].timeout=setTimeout(function(){verifyCounter[0].killMe()},500)}else{verifyCounter[0].killMe()}}VerifyImage.prototype.change=function(){var a=$(this.eleID);this.seed=Math.random();a.src="/image?sds="+this.seed};var verifyCounter=[];function VerifyImage(eleID,x,y){var c=verifyCounter.length;this.timeout=null;this.ipt=null;if(!eleID){this.eleID=eleID="verifyIMG_"+c}this.od=document.getElementById("_rndImageDIV");with(this.od){style.position="absolute";style.backgroundColor="#E8FBFF";style.border="solid 1px #545454";style.padding="3px";id=eleID+"_anchor";style.zIndex=3000}this.templete=('<img id="'+eleID+'" onclick="getVerify(\''+eleID+"',"+c+')" style="cursor:pointer;margin-bottom:5px" src="/image?sds={{_random_}}" alt="获取中..." title="点击更换" width="130" height="53" /><br /><span onclick="getVerify(\''+eleID+"',"+c+')" style="color:black;cursor:pointer">看不清楚?换一个</span>');this.seed=Math.random();this.appended=false;verifyCounter[c]=this}VerifyImage.prototype.killMe=function(){this.od.style.display="none"};function getVerify(a,b){clearTimeout(verifyCounter[b].timeout);verifyCounter[b].change();if(verifyCounter[b].ipt){verifyCounter[b].ipt.value="";verifyCounter[b].ipt.focus()}}function focusGetVerify(b){if(b==undefined){return}var c=getPosition(b);var a=(verifyCounter.length>0)?(verifyCounter[0]):(new VerifyImage());a.ipt=b;a.showMe(c.left,c.top);b.value=""}function getPosition(f){var d=105;var c=f.offsetWidth;var b=f.offsetWidth;var a=f.offsetHeight;while(f.offsetParent){d+=f.offsetTop;c+=f.offsetLeft;f=f.offsetParent}return{top:d,left:c,width:b,height:a}}VerifyImage.prototype.showMe=function(x,y){with(this.od){style.top=(y-85)+"px";style.left=(x+1)+"px"}if(!this.appended){this.od.innerHTML=this.templete.replace(/\{\{_random_\}\}/g,this.seed);this.appended=true}this.od.style.display=""};