var secSet = null; var activeTimer = null; var bHover = ''; var img = ''; var agt=navigator.userAgent.toLowerCase(); var is_safari = agt.indexOf("safari")!=-1; var is_ie = agt.indexOf("msie")!=-1; var is_ie6under = false; if (is_ie) is_ie6under = (agt.indexOf("msie 6")!=-1 || agt.indexOf("msie 5")!=-1 || agt.indexOf("msie 4")!=-1); var pchj_idpredirect = ''; function pchj_setIdpRedirect(idpredirect) { pchj_idpredirect = idpredirect; } function pcsb_pl_showhide(id){ if (document.getElementById) { var elem = document.getElementById(id); if (elem) { if (elem.style.display == "" || elem.style.display == "block") elem.style.display = "none"; else elem.style.display = ""; } } } function pchj_hov(idval){ if(document.getElementById(idval+'a')){document.getElementById(idval+'a').style.visibility = 'hidden';} else if(idval=='pch_pwx'){document.getElementById('pch_pw_dd').className = 'pchb pch_ov_ugo';} else if(idval=='pch_shx'){document.getElementById('pch_sh_dd').className = 'pchb pch_ov_ugo';} } function pchj_off(idval){ if(document.getElementById(idval+'a')){document.getElementById(idval+'a').style.visibility = '';} else if(idval=='pch_pwx'){document.getElementById('pch_pw_dd').className = 'pchb pch_ov_dgo';} else if(idval=='pch_shx'){document.getElementById('pch_sh_dd').className = 'pchb pch_ov_dgo';} } function pch_blurlogin(state) { if (state=='load'){ if (document.getElementById('loginname').value!=''){ document.getElementById('pch_undiv').style.display='none';} } else if (state=='over'){ if(document.getElementById('pch_undiv').style.display==''){ document.getElementById('pch_undiv').style.display='none';} } else { if (document.getElementById('loginname').value==''){ if (document.getElementById('login_focus').value!='true'){ document.getElementById('pch_undiv').style.display=''; if (!pch_loginnameDone){document.onmousemove = '';} } } } } function pch_blurpass(state) { if (state=='load'){ if (document.getElementById('password').value!=''){ document.getElementById('pch_pwdiv').style.display='none'; return true;} } else if (state=='over'){ if(document.getElementById('pch_pwdiv').style.display==''){ document.getElementById('pch_pwdiv').style.display='none';} } else{ if (document.getElementById('password').value==''){ if (document.getElementById('pass_focus').value!='true'){ document.getElementById('pch_pwdiv').style.display=''; pch_loginnameDone = false; } } } } function pch_checkpass() { if (!pch_loginnameDone){ if (pch_blurpass('load')) {pch_loginnameDone = true; document.onmousemove = '';} } } function pchj_passwatch(){if ((pch_loginnameField.onfocus)&&(!pch_loginnameDone)) {document.onmousemove = pch_checkpass;}} function pchj_loginex(login, password, target, ci, ev) { var loginBox = document.getElementById('loginname'); var passwordBox = document.getElementById('password'); loginBox.value = login; passwordBox.value = password; var idp = 'https://idp.securepaynet.net/login.aspx?ci=' + ci + '&prog_id=438903&spkey=SPSWNET-CORPWEB121&target='+target; var frm; if (document.pchFL){frm = document.pchFL;} else {frm = document.forms[0];} if (frm.__VIEWSTATE){frm.__VIEWSTATE.name = 'NOVIEWSTATE';} if (frm.__EVENTTARGET){frm.__EVENTTARGET.name = 'NOEVENTTARGET';} frm.action = idp; frm.method = 'POST'; pchj_mout('pch_pw'); frm.submit(); return pchj_cancelEvent(ev); } function pchj_login_action(frm) { var idp = ('https://idp.securepaynet.net/login.aspx?ci=9106&prog_id=438903&spkey=SPSWNET-CORPWEB121'); var mya = ('https://mya.securepaynet.net/login_redirect.aspx'); idp += '&signalnonorig=' + encodeURIComponent(mya); if (pchj_idpredirect != '') {idp += '&target=' + pchj_idpredirect;} frm.action = idp; return true; } function pchj_key_name(frm,e){ var keycode; if (window.event) keycode = window.event.keyCode; else if (e) keycode = e.which; if (keycode == 13){pch_blurpass('load');} } function pchj_cancelEvent(ev) { if (!ev) return false; ev.returnValue = false; ev.cancelBubble = true; if (ev.stopPropagation) ev.stopPropagation(); if (ev.preventDefault) ev.preventDefault(); return false; } function pchj_inApp_hideDDs(sect){ pchjNav('pch_dn',sect,'hide','ov');pchjNav('pch_ho',sect,'hide','ov');pchjNav('pch_ws',sect,'hide','ov');pchjNav('pch_em',sect,'hide','ov');pchjNav('pch_sc',sect,'hide','ov');pchjNav('pch_bs',sect,'hide','ov'); } function pchj_notaDD(idval){return false;} function pchj_lnk(link) {if(link.match('http://help.securepaynet.net/')){ window.open(link,'_pch', 'left=20,top=20,resizable=yes,scrollbars=yes,width=800,height=620'); }else{window.open(link,'_self');} function pchj_myalnk(link) {if(window.MYAFilterLinks){MYAFilterLinks(link);} window.open(link,'_self');} } function pchj_blurBox(){ if(document.RegisterDomainForm) { if(document.RegisterDomainForm.domainToCheck){document.RegisterDomainForm.domainToCheck.blur();} if(document.RegisterDomainForm.fblur){document.RegisterDomainForm.fblur.value=1;} } if(document.LookupForm) { if(document.LookupForm.domainToCheck){document.LookupForm.domainToCheck.blur();} if(document.LookupForm.fblur){document.LookupForm.fblur.value=1;} } } function pchj_mout(div){bHover='';window.status='';pchj_setDDTimeout(div);} function pchj_movr(div,status){ if(div=='pch_dn'){ pchj_blurBox();} if(is_safari){ bHover=status;window.status=status;pchj_setDD(div,status,false);} else{ bHover=status;window.status=status;setTimeout('pchj_setDD(\'' + div + '\', \'' + status + '\', false)',400);} } function pchj_uout(div){pchj_setDDTimeout(div);} function pchj_uovr(div){pchj_setDD(div,'',true);} function pchj_pout(div, item){window.status='';pchj_setDDTimeout(div);} function pchj_povr(div, link, item){window.status=link;document.getElementById(div).style.display='';pchj_setDD(div,'',true);} function pchj_sout(sline, div, bkgem){ var bkg = document.getElementById(sline).style.backgroundColor.toString(); if((bkg!='#bbb')&&(bkg!='rgb(187, 187, 187)')){document.getElementById(sline).style.backgroundColor='#fff';} window.status='';pchj_setDDTimeout(div); } function pchj_sovr(sline, div, link, item){ var bkg = document.getElementById(sline).style.backgroundColor.toString(); if((bkg!='#bbb')&&(bkg!='rgb(187, 187, 187)')){document.getElementById(sline).style.backgroundColor='#eee';} window.status=link;pchj_setDD(div,'',true); } function pchj_findDiv(n, d) { var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i= eval(objTop + objHeight)); else if(overDiv.offsetLeft >= eval(objLeft + objWidth)); else { obj.style.visibility = 'hidden'; } } } function pchj_showElement(elmID) { for(i = 0; i < document.getElementsByTagName( elmID ).length; i++) { obj = document.getElementsByTagName(elmID)[i]; if(!obj || !obj.offsetParent) continue; if (is_ie&&(obj.readyState==4)&&(obj.tagName.toUpperCase()=='OBJECT')) continue; obj.style.visibility = ''; } } function pcSetLogIn(val, sn) { if((val.toLowerCase()=='true')||(val.toString()=='1')){ document.getElementById('pch_login').style.display='none'; document.getElementById('pch_logout').style.display=''; } else{ document.getElementById('pch_login').style.display=''; document.getElementById('pch_logout').style.display='none'; } if(sn.length!=0){ if(sn.length<30){document.getElementById('pch_sn').innerHTML = (' ' + sn);} else{sn=sn.substring(0,30);document.getElementById('pch_sn').innerHTML = (' ' + sn.concat('...'));} } } function pcSetLogInEx(val, sn, taname, taphone, taemail) { pcSetLogIn(val, sn); } function pch_checkfields() {setTimeout('pch_blurpass(\'load\')',250); setTimeout('pch_blurlogin(\'load\')',250);} function pchj_setup(){ if(document.getElementById('searchField').value!='Search'){document.getElementById('searchField').className='pch_i_ss';} document.getElementById(document.getElementById('pch_active_search').value).style.backgroundColor='#bbb'; document.getElementById('searchField').value=document.getElementById('pch_active_text').value; if (res_getCookie(pchj_tempCookie)!=null){ document.getElementById('res_id_table').className='pch_res_table'; document.getElementById('res_id_td1').className='pch_t1 pch_res_td1'; document.getElementById('res_id_td2').className='pch_t1 pch_res_td2'; if (document.getElementById('res_id_icn')){document.images['res_id_icn'].src = 'https://imagesak.securepaynet.net/fos/icn/icn_viewnarrow.png';} document.getElementById('res_option').style.display=''; document.getElementById('res_option_sb').style.display=''; } } function atlSliRedirectToAccountUrl(targetUrl) { window.location = targetUrl; }