function plop(){alert("plop")}function $(a){return document.getElementById(a)}function gs(b){var a=$(b);if(a){return a.style}else{return null}}function gs2(c,b){if(c.currentStyle){return c.currentStyle[b]}else{return document.defaultView.getComputedStyle(c,null)[b]}}function ChatHidden1(){gs("ChatBody1").display="none"}function ChatShow1(){gs("ChatBody1").display=""}function ChatClose1(){gs("main1").display="none"}if(document.getElementById){(function(){if(window.opera){document.write("<input type='hidden' id='Q' value=' '>")}var b=500;var a=false;var g,h,f,j,k;function c(d){if(!d){d=window.event}if(a){f.style.left=k+d.clientX-h+"px";f.style.top=j+d.clientY-g+"px";return false}}function i(l){if(!l){l=window.event}var d=(typeof l.target!="undefined")?l.target:l.srcElement;if(d.tagName!="HTML"|"BODY"&&d.className!="dragclass"){d=(typeof d.parentNode!="undefined")?d.parentNode:d.parentElement}if("TR"==d.tagName){d=(typeof d.parentNode!="undefined")?d.parentNode:d.parentElement;d=(typeof d.parentNode!="undefined")?d.parentNode:d.parentElement;d=(typeof d.parentNode!="undefined")?d.parentNode:d.parentElement}if(d.className=="dragclass"){if(window.opera){document.getElementById("Q").focus()}a=true;d.style.zIndex=b++;f=d;k=parseInt(gs2(d,"left"),10)|0;j=parseInt(gs2(d,"top"),10)|0;h=l.clientX;g=l.clientY;document.onmousemove=c;return false}}function e(){a=false;document.onmousemove=null}document.onmousedown=i;document.onmouseup=e})()}function checkInput(a){if(queryForm.txtContent.value===""){alert("Please input words that you want to search");document.getElementById("txtContent").focus();return false}if(queryForm.txtContent.value=="*"){alert("Input error,please input your query text again");document.getElementById("txtContent").focus();return false}document.queryForm.action="http://search.schneider-electric.com.cn";if("CN"=="CN"){document.queryForm.action="http://search.schneider-electric.com.cn/web1/index.jsp"}if(a!="true"){document.queryForm.submit()}}function buttonSubmit(a){document.queryForm.originalSearchContent.value=document.queryForm.txtContent.value;checkInput(a)}function quicksubmit(){if(window.event.keyCode==13){buttonSubmit()}}function hiddenselect(a){var b=document.getElementById(a);if(b!==null){b.style.display="none"}}function showselect(a){var b=document.getElementById(a);if(b!==null){b.style.display=""}}function doPassSubmit(){var a=document.login1;a.action="/schneider/modifyPWIndex.jsp";a.submit()}function doLogin(){var a=document.login1;if(a.username.value===""){alert("??ID????!");return}if(a.password.value===""){alert("??????!");return}a.action="/schneider/include/loginSave.jsp";a.flag.value="in";login1.submit()}function keyEnter(a){var b=event.keyCode;if(b==13){doLogin()}}function doLogout(){var a=document.login1;a.action="/schneider/include/loginSave.jsp";a.flag.value="out";login1.submit()}function doNameFilter(){var d=document.register;var b=new Array("distributor","di","si","pb","oem","psc","eu","re","dec","ret");var a=/^([\.]*[0-9]*)*$/;if(a.test(d.nickname.value)){alert("Registered userID can not be all digital !");document.all("checkfalse").style.display="none";document.all("checksuccess").style.display="none";return false}for(var c=0;c<b.length;c++){if(d.nickname.value.toLowerCase().indexOf(b[c].toLowerCase(),0)===0){alert("Registered user ID can not started with such DISTRIBUTOR?DI? SI? PB? OEM? PSC? EU?RE?DEC and RET letter or words!");document.all("checkfalse").style.display="none";document.all("checksuccess").style.display="none";return false}}}function doRegistrationSubmit(){var a=document.register;if(a.nickname.value===""){alert("UserID is not null!");return false}if(a.nickname.value.length<3){alert("The UserID couldn't less than three characters!");return false}if(a.nickname.length>12){alert("Registered user ID couldn't more than twelve characters!");return false}if(a.lastname.value===""){alert("Lastname is not null!");return false}if(a.firstname.value===""){alert("Firstname is not null!");return false}if(a.email.value===""){alert("Email is not null!");return false}if((a.email.value).indexOf("@")===-1){alert("The email's format is wrong !");return false}if(a.password.value===""){alert("Password is not null!");return false}if(a.country.value===""){alert("Country(Area) is not null!");return false}if(doNameFilter()===false){return false}a.submit()}function doCheck(){var a=document.register.nickname.value;if(a.length<3){alert("The UserID couldn't less than three characters!");return false}if(a.length>12){alert("Registered user ID couldn't more than twelve characters!");return false}if(doNameFilter()===false){return false}document.checkname.cnickname.value=a;document.checkname.target="checknamec";document.checkname.submit()}function doSelfCareSubmit(){var a=document.modifyinfo;if(a.email.value==""){alert("Email is not null!");return false}if((a.email.value).indexOf("@")==-1){alert("The email's format is wrong !");return false}if(a.lastname.value==""){alert("Lastname is not null!");return false}if(a.firstname.value==""){alert("Firstname is not null!");return false}if(a.country.value==""){alert("Country(Area) is not null;");return false}a.submit()}var count=0;var count1=0;function doForgotPassword(c,a){var d=document.forgetPW;var b=document.hforgetPW;if(c==="1"){if(d.nickname.value===""){alert("Enter your UserID!");return false}}if(c==="2"){if(d.email.value===""){alert("Enter emaill address you provided at registration!");return false}else{if((d.email.value).indexOf("@")===-1){alert("The format of E-mail is wrong!!");return false}}}b.hnickname.value=d.nickname.value;b.hemail.value=d.email.value;b.hflag.value=a;b.target="iforgetPW";b.submit()}function getNicknameNull(){if(count===0){document.forgetPW.nickname.value=""}count++}function getEmailNull(){if(count1===0){document.forgetPW.email.value=""}count1++}function doRevisionPassword(a){var b=document.modifyPW;if(b.password.value==""){alert("Original Password is not null!");return false}if(a){if(b.newpassword1.value==""){alert("New VIP Password is not null!");return false}if(b.newpassword2.value==""){alert("Confirm VIP Password is not null!");return false}if(b.newpassword1.value!=b.newpassword2.value){alert("Confirm VIP Password is inconsistent with the new VIP password!");return false}}if(document.getElementById("pb").style.display!="none"){if(b.newpassword1.value==""){alert("New Password is not null!");return false}if(b.newpassword2.value==""){alert("Confirm Password is not null!");return false}if(b.newpassword1.value!=b.newpassword2.value){alert("Confirmed the password is inconsistent with the new password");return false}}b.submit()};