var popUpsBlocked = false; function checkPopUp(page, forceRefresh, fromPage) { var rv = openWindow(page, forceRefresh, fromPage); if (rv) { popUpsBlocked = false } else { alert('We have detected that you are using popup blocking software.\nPlease disable your popup blocker to use the full functionality of our site.  Thank you.'); popUpsBlocked = true } } function openWindow(page, forceRefresh, fromPage) { var rv = false; if (typeof fromPage != "undefined" && typeof fromPage != null && fromPage != "") { fromPageInd = fromPage } else { fromPageInd = "Home" } var guid = GenerateGuid(); page = page + '?FromPage=' + fromPageInd + '&GUID=' + guid; if (window.name != "WebEx") { rv = window.open(page, 'WebEx', 'directories=no, menubar=no, resizable=yes, scrollbars=yes, status=yes, toolbar=no'); rv.focus() } else { rv = window.open(page, '', 'directories=no, menubar=no, resizable=yes, scrollbars=yes, status=yes, toolbar=no'); rv.focus() } return rv } function LaunchQuoteProc(ctrl, redirectUrl, forceRefresh) { forceRefresh = "false"; var guid = GenerateGuid(); ctrl.href = redirectUrl + '&FromPage=Home&GUID=' + guid } function GenerateGuid() { var result, i, j; result = ''; for (j = 0; j < 32; j++) { if (j == 8 || j == 12 || j == 16 || j == 20) result = result + '-'; i = Math.floor(Math.random() * 16).toString(16).toUpperCase(); result = result + i } return result } function getCookie(c_name) { if (document.cookie.length > 0) { c_start = document.cookie.indexOf(c_name + "="); if (c_start != -1) { c_start = c_start + c_name.length + 1; c_end = document.cookie.indexOf(";", c_start); if (c_end == -1) c_end = document.cookie.length; return document.cookie.substring(c_start, c_end) } } return "" } function setCookie(c_name, value, expiredays) { var exdate = new Date(); exdate.setDate(exdate.getDate() + expiredays); document.cookie = c_name + "=" + value + ((expiredays == null) ? "" : ";expires=" + exdate.toUTCString()) + "; path=/" }
