function printWindow() { if (window.print) { window.print(); } else { alert("Your browser may not be able to call the print option from a link. Please print this page as you normally would."); } } function toggleTheme() { var title = "Theme"; var i, a, main; for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { if (a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) { if (a.getAttribute("title") == title) { if (a.disabled == false) { a.disabled = true; } else { a.disabled = false; } } } } } function resetImageIcons() { iconSmallImg = document.getElementById("icon_resize_small"); if (iconSmallImg) { iconSmallImg.setAttribute("src","uib/images/icon_resize_small_on.gif") } iconMediumImg = document.getElementById("icon_resize_medium"); if (iconMediumImg) { iconMediumImg.setAttribute("src","uib/images/icon_resize_medium_on.gif") } iconLargeImg = document.getElementById("icon_resize_large"); if (iconLargeImg) { iconLargeImg.setAttribute("src","uib/images/icon_resize_large_on.gif") } } function setActiveIcon(title) { if (title == "Medium Text") { iconMediumImg = document.getElementById("icon_resize_medium"); if (iconMediumImg) { iconMediumImg.setAttribute("src","uib/images/icon_resize_medium.gif") } } else if (title == "Large Text") { iconLargeImg = document.getElementById("icon_resize_large"); if (iconLargeImg) { iconLargeImg.setAttribute("src","uib/images/icon_resize_large.gif") } } else { iconSmallImg = document.getElementById("icon_resize_small"); if (iconSmallImg) { iconSmallImg.setAttribute("src","uib/images/icon_resize_small.gif") } } } function resetActiveStyleSheet() { var i, a, main; for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { if (a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("rel").indexOf("alt") != -1) { a.disabled = true; } } resetImageIcons(); setActiveIcon("Normal Text"); } function setActiveStyleSheet(title) { var i, a, main; for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { if (a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) { a.disabled = true; if (a.getAttribute("title") == title) a.disabled = false; } } resetImageIcons(); setActiveIcon(title); } function getActiveStyleSheet() { var i, a; for (i=0; (a = document.getElementsByTagName("link")[i]); i++) { if (a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title"); } return null; } function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else { expires = ""; } document.cookie = name+"="+value+expires+"; path=/"; } function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for (var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } function getPreferredStyleSheet() { var i, a; for (i=0; (a = document.getElementsByTagName("link")[i]); i++) { if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("rel").indexOf("alt") == -1 && a.getAttribute("title")) return a.getAttribute("title"); } return null; } function initActiveStyleSheet() { var cookie = readCookie("style"); var title = cookie ? cookie : getPreferredStyleSheet(); setActiveStyleSheet(title); } window.onunload = function(e) { var title = getActiveStyleSheet(); createCookie("style", title, 365); } var windowpop = ''; function closePop() { if (windowpop && windowpop.open && !windowpop.closed) windowpop.close(); } function openPop(winURL) { closePop(); var winOptions = 'menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,width=800,height=500'; windowpop = window.open(winURL, 'windowpop', winOptions); resetEquifax(); } function openPopPrint(winURL) { closePop(); var winOptions = 'menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,width=585,height=500'; windowpop = window.open(winURL, 'windowpop', winOptions); resetEquifax(); } function openPopWide(winURL) { closePop(); var winOptions = 'menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,width=779,height=500'; windowpop = window.open(winURL, 'windowpop', winOptions); resetEquifax(); } function highlightAreaReset() { // reset the backgrounds to white document.getElementById("improve_block").style.background="none"; document.getElementById("protect_block").style.background="none"; document.getElementById("control_block").style.background="none"; } function highlightArea(section) { // reset the backgrounds to white document.getElementById("improve_block").style.borderTop="none"; document.getElementById("improve_block").style.borderBottom="none"; document.getElementById("protect_block").style.borderTop="none"; document.getElementById("protect_block").style.borderBottom="none"; document.getElementById("control_block").style.borderTop="none"; document.getElementById("control_block").style.borderBottom="none"; // set variable for color if (section == "improve_block") { var highlightColor = "#dca529"; } else if (section == "protect_block") { var highlightColor = "#4481c4"; } else { var highlightColor = "#8b090c"; } // set the background to selected state // document.getElementById(section).style.background="url('images/home_"+section+"_bg.gif') no-repeat"; document.getElementById(section).style.borderTop = "2px solid "+highlightColor; document.getElementById(section).style.borderBottom = "2px solid "+highlightColor; } function chooseProduct() { box = document.product_select.product; destination = box.options[box.selectedIndex].value; if (destination) window.location.href = destination; } if (document.images) { image1 = new Image(); image1.src = "uib/images/icon_resize_small.gif"; image2 = new Image(); image2.src = "uib/images/icon_resize_medium.gif"; image3 = new Image(); image3.src = "uib/images/icon_resize_large.gif"; image4 = new Image(); image4.src = "uib/images/icon_resize_small_on.gif"; image5 = new Image(); image5.src = "uib/images/icon_resize_medium_on.gif"; image6 = new Image(); image6.src = "uib/images/icon_resize_large_on.gif"; image7 = new Image(); image7.src = "uib/images/topnavitem_bg.gif"; image8 = new Image(); image8.src = "uib/images/topnavitem_bg_over.gif"; image9 = new Image(); image9.src = "uib/images/topnavsubitem_bg_over.gif"; } function HelpWindow(mypage, myname, w, h, scroll) { var winl = (screen.width - w) / 2; var wint = (screen.height - h) / 2; winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable' win = window.open(mypage, myname, winprops) if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); } } function GetHelp() { HelpWindow('http://www.iamhr.com/Help/iamCareerHelp.htm', 'HelpWindow', '750', '550', 'no') } function setDefaultPage(page) { createCookie("defaultpage", page, 365); document.getElementById("defaultpage_toggle").style.display="none"; } function readDefaultPage() { var pagecookie = readCookie("defaultpage"); if (pagecookie == "personal" || pagecookie == null) { document.getElementById("defaultpage_toggle").style.display="none"; } } function changeStyle() { var subMenu = document.getElementById("ListItem5002"); if(subMenu!= null && navigator.appName != 'Microsoft Internet Explorer') subMenu.style.margin="4px 0px 4px 30px"; subMenu = document.getElementById("ListItem5003"); if(subMenu!= null && navigator.appName != 'Microsoft Internet Explorer') subMenu.style.margin="4px 0px 4px 0px"; } // Added for Score Watch Sample Page. // Populates rate types based on selected rate category function changeRateType() { var catSel = document.getElementById("smtLoanCat"); var typeSel = document.getElementById("smtLoanType"); // Begin loan type arrays by category (cat[0] = Mortgage), (cat[1] = Auto), (cat[2] = home equity) var cat = new Array(); cat[0] = ['30 yr Fixed Conforming','30 yr Fixed Non-Conforming','15 yr Fixed Conforming','15 yr Fixed Non-Conforming','1 yr ARM Conforming','1 yr ARM Non-Conforming','3 yr ARM Conforming','3 yr ARM Non-Conforming','5 yr ARM Conforming','5 yr ARM Non-Conforming','7 yr ARM Conforming','7 yr ARM Non-Conforming','10 yr ARM Conforming','10 yr ARM Non-Conforming']; cat[1] = ['36 month New Auto','48 month New Auto','60 month New Auto','48 month Used Auto']; cat[2] = ['10 yr Fixed HE Loan','15 yr Fixed HE Loan','HELOC $50,000 80% LTV','HELOC $50,000+ 80% LTV']; // End loan type arrays by category // Option values var optVal = ['mort','auto','heloan']; // Clear out previous options typeSel.options.length = 0; // Begin filling in new options var catVal = catSel.options[catSel.selectedIndex].value; for(var i=0;i