var g_hipS;var g_hipR;var g_hipI;var g_hipF;var g_hipC;var g_hipH;function HIPInit(r,i,f,h){g_hipS=i.src;g_hipR=r;g_hipI=i;g_hipF=f;g_hipH=h;g_hipC=0;}function HIPSetAudSoln(s){if(s!=""){g_hipF.value=s;g_hipI.src=g_hipR;}else{var node=GEId("iHIPHelp");if(node!=null)node.style.display="block";}g_hipF.focus();}function HIPNew(){var h=g_hipI.height;var w=g_hipI.width;g_hipF.value="";g_hipI.src=g_hipS+"&c="+g_hipC;g_hipI.height=h;g_hipI.width=w;g_hipC++;g_hipF.focus();var node=GEId("iHIPHelp");if(node!=null)node.style.display="block";}function HIPHelp(u){g_hipI.src=g_hipR;g_hipF.value="";OpenWindow(u,"PPHIPHelp","width=520,height=505,resizable");window.setTimeout("HIPHelpCheck()",1000);}function HIPHelpCheck(){if((!WinObj||WinObj.closed)&&g_hipF.value=="")HIPNew();else window.setTimeout("HIPHelpCheck()",50);}function HIPCopyCookie(){if(g_hipH!=null)g_hipH.value=GetCookieData("HIPChallenge");}function SetFocus(b,c){try{if(g_bFS==false&&typeof b=="object"){var bF=false;var bL=true;if(c=="")bF=true;for(i=0;i<b.length;i++){try{var oI=b.elements[i];}catch(e){continue;}if(oI.name==c)bF=true;if(oI.type!="hidden"&&oI.disabled!=true&&oI.style.visibility!="hidden"&&bF){oI.focus();if(oI.type=="text"||oI.type=="password")oI.select();break;}if(i==b.length-1&&bL){i=-1;bF=true;bL=false;}}}}catch(e){}}function SetF(){g_bFS=true;}function SetCursorAfterValue(){event.srcElement.value=event.srcElement.value;}function CleanPhoneNum(e){var szFV=e.value;szFV=szFV.replace(/\)/,"");szFV=szFV.replace(/\(/,"");szFV=szFV.replace(/\ /,"");szFV=szFV.replace(/\./,"");szFV=szFV.replace(/\-/,"");szFV=szFV.replace(/\,/,"");e.value=szFV;}function IsParent(){if(top.location!=location)top.location.href=document.location.href;}function DoCSH(g){if(typeof CSH=="function")CSH(g);}var g_fAS=false;function OnSubmit(h){DoCSH(h);}function SubmitForm(j){if(g_fAS)return false;OnSubmit(j);g_fAS=true;j.submit();return false;}function DoSubmit(k,l){if(k[l]!="undefined")k[l].value="TRUE";SubmitForm(k);}function OnSubmitEventHandler(m){m["Dirty"].value="TRUE";DoCSH(m);}function OnBackEventHandler(n,o){n.action=o;DoSubmit(n,"Back");}function OnSubmitWithAction(p,q){p.action=q;p.submit();return false;}var WinObj;function CloseWindow(){if(WinObj&&!WinObj.closed)WinObj.close();return true;}function OpenWindow(r,s,t){if(typeof CustomOpenWindow=="function")CustomOpenWindow(r,s,t);else{var bO=false;if(!WinObj||WinObj.closed)bO=true;else{if(r==WinObj.href)WinObj.focus();else{CloseWindow();bO=true;}}if(bO){WinObj=window.open(r,s,t);if(!WinObj.opener)WinObj.opener=window;}}}function OpenWindowEx(u,v,w){if(typeof CustomOpenWindow=="function")CustomOpenWindow(u,v,w);else window.open(u,"_blank",w);}function GoA(x){var strTemphref=document.location.href;var strTemp=strTemphref;if(strTemphref.indexOf("#")>-1)strTemp=strTemphref.substring(0,strTemphref.indexOf("#"));document.location.href=strTemp+x;}function ClearAllFields(y){var szT;for(i=0;i<y.length;i++){szT=""+y.elements[i].type;if(szT=="text"||szT=="password"||szT=="textarea")y.elements[i].value="";if(szT=="select-one")y.elements[i].selectedIndex=0;if(szT=="radio"){if(y.elements[i].value=="")y.elements[i].checked=true;else y.elements[i].checked=false;}if(szT=="checkbox")y.elements[i].checked=false;}}function PostRegion(z,A,B){if(z[A]!="undefined"){if(z[A].selectedIndex==0){z[B].value="TRUE";SubmitForm(z);}}}function DoCookieTest(C,D,E){if(GetCookieData(C)!=D)document.location=E;return;}function GetCookieData(F){var arg=F+"=";var iL=document.cookie.length;var i=0;while(i<iL){var j=i+arg.length;if(document.cookie.substring(i,j)==arg){var sE=document.cookie.indexOf(";",j);if(sE==-1)sE=iL;return unescape(document.cookie.substring(j,sE));}i=document.cookie.indexOf(" ",i)+1;if(i==0)break;}}function DrDw(F){var aCL=F.split("~");var iC=aCL.length;if(aCL[iC-1]=="")iC--;var i=0;var sS="";while(i<iC){if(aCL[i]=="SELECTED"){sS=aCL[i+1];i++;}document.write("<option id=\""+aCL[i]+"\" value=\""+aCL[i]+"\""+(sS==aCL[i]?" selected":"")+">"+aCL[i+1]);i=i+2;}}function DrDw2(F,G){var aCL=F.split("~");var iC=aCL.length;if(aCL[iC-1]=="")iC--;var i=0;while(i<iC){document.write("<option value=\""+aCL[i]+"\""+(G==aCL[i]?" selected":"")+">"+aCL[i+1]);i=i+2;}}function AHidden(H,J,K){if(document.getElementById){var I=document.createElement("INPUT");if(document.all){I.type="HIDDEN";I.name=J;I.value=K;}else{if(document.getElementById){I.setAttribute("type","HIDDEN");I.setAttribute("name",J);I.setAttribute("value",K);}}H.appendChild(I);}}function GEId(L){return document.getElementById(L);}function GetEl(M){try{return document.getElementsByName(M)[0];}catch(e){}}function GetElCol(N){try{return document.getElementsByName(N);}catch(e){}}var h_win;function DoHelp(O,T,P,Q,U,R,S){var W;var H;var sWD="toolbar=0,status=0,menubar=0,resizable=1,top=0,width=";var sc=screen.width;var sh=screen.height;var ag=navigator.userAgent.toLowerCase();var ap=navigator.appName.toLowerCase();var av=navigator.appVersion;var fMAC=ag.indexOf("mac")>-1;var fIE=ag.indexOf("msie")>-1&&parseInt(av.substring(0,1))>=4;var sQP=null==S?"":S;var sUB=U==""?"http://login.live.com/hp.srf?lc="+P+"&vv="+R:U+"?lc="+P+"&vv="+R;var oDL=document.location;var fWinLive=null!=S;var fMSN=false;var vi=ag.indexOf("msn ");var fMACMSN=false;if(vi>-1){fMSN=ag.substring(vi+4);fMSN=parseFloat(fMSN.substring(0,fMSN.indexOf(";")));fMSN=fMSN!=NaN&&fMSN>=6;}fMACMSN=ag.indexOf("ppc mac os x")>-1&&ag.indexOf("msn explorer")>-1;sQP+=(T==""?"&SEARCHTERM="+escape(O):"&TOPIC="+T);sQP+="&v2="+escape(oDL.search)+"&tmt="+escape(window.name);sQP+="&v4="+escape(Q);if(sc<=800){sQP+="&sp=1";W=180;}else W=230;if(fMAC&&fIE)W=224;H=ag.indexOf("windows")>0&&ag.indexOf("aol")>0?screen.availHeight-window.screenTop-22:screen.availHeight;if(fWinLive){W=sc>550?550:sc;H=sh>575?575:sh;}sWD+=W;if(fWinLive)sWD+=",height="+H+",left="+(sc-W)/2+",top="+(sh-H)/2;if(fMSN)window.external.showHelpPane(oDL.protocol+"//"+oDL.hostname+sUB+sQP,W);else{if(ag.indexOf("webtv")>0||ag.indexOf("msn companion")>0||ag.indexOf("stb")>0)oDL=sUB+sQP;else{if(ap.indexOf("netscape")>-1&&av.indexOf("4.")>-1){if(!fWinLive){if(fMAC)sWD+=",height="+(H-38)+",left="+(sc-W-16);else sWD+=",height="+(H-30)+",left="+(sc-W-12);}h_win=window.open(sUB+sQP,"_help",sWD);}else{if(ag.indexOf("opera")>-1){if(!fWinLive)sWD+=",height="+H+",left="+(sc-W-(fMAC?5:0));h_win=window.open(sUB+sQP,"_help",sWD);}else{if(ag.indexOf("aol")>-1){if(!fWinLive)sWD+=",height="+(H-115);window.open(sUB+sQP,"_help",sWD);}else{if(fIE||ag.indexOf("netscape6")>-1){if(!fWinLive)sWD+=",height="+H+",left="+(sc-W);if(ag.indexOf("msie 4")>0)window.open(sUB+sQP,"_help",sWD);else h_win=window.open(sUB+sQP,"_help",sWD);if(h_win&&!fMAC&&ap.indexOf("netscape")<0)h_win.opener=self;}else window.open(sUB+sQP,"_help");}}}}}}function EvalPwdStrength(T,U){PadPasswd(T,U.length*2);if(ClientSideStrongPassword(U,gSimilarityMap,gDictionary))DispPwdStrength(3,"css0165");else{if(ClientSideMediumPassword(U,gSimilarityMap,gDictionary))DispPwdStrength(2,"css0164");else{if(ClientSideWeakPassword(U,gSimilarityMap,gDictionary))DispPwdStrength(1,"css0163");else DispPwdStrength(0,"css0162");}}}function SetPwdStrengthEx(V,W){EvalPwdStrength(V,W);if(ClientSideStrongPassword(W,gSimilarityMap,gDictionary))document.cookie="pwdstrength=3";else{if(ClientSideMediumPassword(W,gSimilarityMap,gDictionary))document.cookie="pwdstrength=2";else{if(ClientSideWeakPassword(W,gSimilarityMap,gDictionary))document.cookie="pwdstrength=1";else document.cookie="pwdstrength=0";}}}function SetPwdStrength(X,Y){if(ClientSideStrongPassword(X,gSimilarityMap,gDictionary))Y.value=3;else{if(ClientSideMediumPassword(X,gSimilarityMap,gDictionary))Y.value=2;else{if(ClientSideWeakPassword(X,gSimilarityMap,gDictionary))Y.value=1;else Y.value=0;}}}function XPWCont(){if(typeof parent.opener.RegistrationFinishedCallback!="undefined")parent.opener.RegistrationFinishedCallback();parent.close();}function OnSigninSubmit(Z){if(g_fAS)return false;if(typeof Z!="object")return false;var bL=true;var bP=true;var bI=true;var bH=true;bL=Val(Z.login);var sEM=Z.login.value;bL=ValEM(sEM);if(typeof Z.passwd=="object")bP=Val(Z.passwd);if(typeof Z.pin=="object")bI=Val(Z.pin);if(typeof Z.HIPSolution=="object")bH=Val(Z.HIPSolution);if(!bL||!bP||!bI||!bH){var fSF=true;var aE=["i0518","i0519","i0512","i0527","i0545","i0562","i0517"];HDivs(aE);if(!bL)fSF=SwErr("i0519",Z.login,fSF);if(!bI)fSF=SwErr("i0527",Z.pin,fSF);if(!bP)fSF=SwErr("i0512",Z.passwd,fSF);if(!bH)fSF=SwErr("i0517",Z.HIPSolution,fSF);return false;}if(typeof Z.passwd=="object")PadPasswd(Z,Z.passwd.value.length);if(typeof g_DO!="undefined"){var dom=sEM.substr(sEM.indexOf("@")+1);var sU=g_DO[dom.toLowerCase()];if(sU)Z.action=sU;}if(typeof g_QS!="undefined"){if(g_QS){var sS="&";if(Z.action.indexOf("?")==-1)sS="?";if(Z.action.indexOf(g_QS)==-1)Z.action+=sS+g_QS;}}g_fAS=true;Z.login.value=Z.login.value.toLowerCase();Z.submit();return false;}function OnPadSubmit(ab){if(typeof ab.CurrPW=="object")PadPasswd(ab,ab.CurrPW.value.length);ab.submit();return false;}function OnPadSubmitWithAction(bb,cb){if(typeof bb.CurrPW=="object")PadPasswd(bb,bb.CurrPW.value.length);return OnSubmitWithAction(bb,cb);}function PadPasswd(eb,gb){if(typeof eb.PwdPad=="object"){var sPad="IfYouAreReadingThisYouHaveTooMuchFreeTime";var lPad=sPad.length-gb;eb.PwdPad.value=sPad.substr(0,lPad<0?0:lPad);}}function HDivs(hb){for(var i=0;i<hb.length;++i){var o=GEId(hb[i]);if(o)o.style.display="none";}}function SwErr(jb,kb,lb){GEId(jb).style.display="block";if(lb){kb.focus();kb.select();}return false;}function Val(mb){if(mb.type!="hidden"&&!mb.value)return false;else return true;}function ValEM(nb){var tsEM=Trim(nb);var iA=tsEM.indexOf("@");var aE=tsEM.split("@");if(iA==-1||tsEM.charAt(0)>"~"||tsEM.indexOf(".",iA)==-1||tsEM.indexOf(" ",0)!=-1||aE.length>2)return false;else{if(aE[0].length>0&&aE[1].length>0)return true;else return false;}}function ValHex(ob){var hex="0123456789ABCDEF";var sFV=ob.value;if(!Val(ob))return false;for(i=0;i<sFV.length;i++){if(hex.indexOf(sFV.charAt(i).toUpperCase())==-1)return false;}return true;}function ShowWDiv(pb,qb,rb,sb){var cN=GEId(pb);var oD=GEId(qb).style;while(cN.tagName!="BODY"){rb+=cN.offsetTop;sb+=cN.offsetLeft;cN=cN.offsetParent;}oD.top=rb+"px";oD.left=sb+"px";oD.display="block";}function AUp(tb,ub,vb){if(typeof tb=="object"){var sFNV=tb.value;if(sFNV.length>0&&sFNV.indexOf(vb)==-1)tb.value=sFNV+ub;}}var g_bClearCache=false;function ClearSSLCache(){g_bClearCache=false;try{g_bClearCache=document.execCommand("ClearAuthenticationCache");}catch(e){}}function EndPPCRL(wb,u){if(window.external)try{if(wb){if(wb&-2147483648){window.external.RequestStatus=wb;window.external.WebFlowUrl=u;window.external.NotifyIdentityChanged();window.external.ReturnToApp();}else{window.external.RequestStatus=wb;window.external.WebFlowUrl=u;window.external.NotifyIdentityChanged(true);window.external.BrowseToAuthUI();}}else{window.external.Submit();window.external.BrowseToAuthUI();}}catch(e){}}function WebHancer(xb,yb,zb){if(typeof xb.sWH!="undefined"&&yb.length!=0)xb.sWH.value+="["+yb+","+zb+"]";}function ParseQS(Ab){var sQ=Ab.substr(Ab.indexOf("?")+1);var oA=new Object();if(sQ){var aF=sQ.split("&");for(var f=0;f<aF.length;f++){var sFD=aF[f].split("=");oA[sFD[0]]=sFD[1];}}return oA;}function GetQSVal(Bb,Cb){var oAs=ParseQS(Bb);var sR=null;for(var oA in oAs){if(Cb==oA)sR=oAs[oA];}return sR;}function SetFF(Db,Eb){var oF=GetEl(Db);if(oF==null||oF.value!="")return;oF.value=Eb;}function LTrim(Fb){for(var k=0;k<Fb.length&&Fb.charAt(k)<=" ";k++){}return Fb.substring(k,Fb.length);}function RTrim(Gb){for(var j=Gb.length-1;j>=0&&Gb.charAt(j)<=" ";j--){}return Gb.substring(0,j+1);}function Trim(Hb){return LTrim(RTrim(Hb));}function IsPPCRLEnv(){if(window.external)try{if(window.external.GUID=="bd3c0d89-e162-4de2-a1bf-942b86200f99")return true;}catch(e){return false;}else return false;}var g_d=":";function PushError(Ib){var sErrs=g_d+s_prop38+g_d;var sE=g_d+Ib+g_d;if(!Ib||typeof s_prop38=="undefined"||typeof s_prop48=="undefined"||sErrs.indexOf(sE)!=-1)return;s_prop38+=(s_prop38.length>0?g_d+Ib:Ib);s_prop48=s_prop38;}function SendReport(){if(typeof s_account!="undefined")s_gs(s_account.toLowerCase());}function ClearError(){if(typeof s_prop38!="undefined")s_prop38="";if(typeof s_prop48!="undefined")s_prop48="";}function AppPN(s){return s&&s.length>0?s+g_d+s_pageName:"";}
