function restoreUserNameAAII(){ // search coockie: var userNameAAII=getCookie("userNameAAII"); if (!userNameAAII) return; // the cookie doesn't exist... document.forms.logon.AAIILogon__userName.value=userNameAAII; } function saveUserNameAAII(){ // store it as a cookie that will expire in 2 years var now=new Date(); expdelay=1000*60*60*24*365*2; // persistence: 2 years var expdate=new Date(Date.parse(now)+expdelay); if (document.forms.logon.checkbox.checked){ setCookie("userNameAAII",document.forms.logon.AAIILogon__userName.value,expdate); } } // // setCookie and getCookie are from: Netscape's Javascript User Guide // function setCookie(name, value, expire) { document.cookie = name + "=" + escape(value) + ((expire == null) ? "" : ("; expires=" + expire.toGMTString())) } function getCookie(Name) { var search = Name + "=" if (document.cookie.length > 0) { // if there are any cookies offset = document.cookie.indexOf(search) if (offset != -1) { // if cookie exists offset += search.length // set index of beginning of value end = document.cookie.indexOf(";", offset) // set index of end of cookie value if (end == -1) end = document.cookie.length return unescape(document.cookie.substring(offset, end)) } } } function popupWin800x550(temp){ url = temp; var leftX = screen.availWidth; var topY = screen.availHeight; var w = 800; var h = 550; var propStr = 'width=' + w + ',height=' + h + ',left=' + ((leftX - w - 10) * .5) + ',top=' + ((topY - h - 30) * .5) + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes'; MyWindow=window.open(url,'PrivacyWindow',propStr); MyWindow.focus(); } function MM_reloadPage(init) { if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); if (document.getElementById){ document.write('\n') } function SwitchMenu(obj){ if(document.getElementById){ var el = document.getElementById(obj); var ar = document.getElementById("zonal").getElementsByTagName("span"); if(el.style.display != "block"){ for (var i=0; i 0) if ((theLyr = getLyrRef(lyr,theLyr.document)) != null) return theLyr; } return null; } } function init(id,lyr) { var lnk = getElemRefs(id); swapLayers(lnk,lyr); } function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); function popupWin(temp){ url = temp; var leftX = screen.availWidth; var topY = screen.availHeight; var w = 665; var h = 475; var propStr = 'width=' + w + ',height=' + h + ',left=' + ((leftX - w - 10) * .5) + ',top=' + ((topY - h - 30) * .5) + ',toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes'; MyWindow=window.open(url,'MyWindow',propStr); MyWindow.focus(); } function popupWinPrivacy(temp){ url = temp; var leftX = screen.availWidth; var topY = screen.availHeight; var w = 665; var h = 530; var propStr = 'width=' + w + ',height=' + h + ',left=' + ((leftX - w - 10) * .5) + ',top=' + ((topY - h - 30) * .5) + ',toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes'; MyWindow=window.open(url,'PrivacyWindow',propStr); MyWindow.focus(); } function popupWinAddress(temp){ url = temp; var leftX = screen.availWidth; var topY = screen.availHeight; var w = 665; var h = 350; var propStr = 'width=' + w + ',height=' + h + ',left=' + ((leftX - w - 10) * .5) + ',top=' + ((topY - h - 80) * .5) + ',toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes'; MyWindow=window.open(url,'MyWindow',propStr); MyWindow.focus(); } function popupExtURLAddress(temp,exttemp){ url = temp+'?exturl='+exttemp; var leftX = screen.availWidth; var topY = screen.availHeight; var w = 665; var h = 350; var propStr = 'width=' + w + ',height=' + h + ',left=' + ((leftX - w - 10) * .5) + ',top=' + ((topY - h - 80) * .5) + ',toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes'; MyWindow=window.open(url,'MyWindow',propStr); MyWindow.focus(); } function popupExtURLWebPay(temp){ url = temp; var leftX = screen.availWidth; var topY = screen.availHeight; var w = 760; var h = 350; var propStr = 'width=' + w + ',height=' + h + ',left=' + ((leftX - w - 10) * .5) + ',top=' + ((topY - h - 80) * .5) + ',toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes'; MyWindow=window.open(url,'MyWindow',propStr); MyWindow.focus(); } //Glossary PopUp function jump(url) { var leftX = screen.availWidth; var topY = screen.availHeight; var w = 438; var h = 438; var propStr = 'width=' + w + ',height=' + h + ',left=' + ((leftX - w - 10) * .5) + ',top=' + ((topY - h - 30) * .5) + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no'; TheNewWin = window.open(url, 'Glossary', propStr); TheNewWin.focus(); } /////////////////GLOSSARY////////////////////////// function changeCategory(category) { window.location="/glossary/glossary_main.jhtml?id=0&account=1&category=" + category; } /////////////////// BROWSER DETECT /////////////////////////// var BrowserDetect = { init: function () { this.browser = this.searchString(this.dataBrowser) || "An unknown browser"; }, searchString: function (data) { for (var i=0;i