var lb_cookieDebug = true ; var lb_cookieDebug = false ; var ls_manualCookieSetupTitle = "" ; var ls_manualCookieSetupLink = "/templates/merrillstevens/modules/cookieSetup.cfm?keepThis=true&TB_iframe=true&height=235&width=306" ; // Override! ls_manualCookieSetupLink = "/templates/merrillstevens/modules/cookieSetup.cfm?keepThis=true&TB_iframe=true&height=258&width=306" ; function manualCookieSetup() { var s; var ua = navigator.userAgent; s = "MSIE"; if ((i = ua.indexOf(s)) >= 0) { addLoadEvent(manualCookieSetupFacade); } else{ TB_show(ls_manualCookieSetupTitle, ls_manualCookieSetupLink, false); } } function manualCookieSetupFacade() { TB_init(); document.getElementById('linkId').click(); } function changeLanguage(theValue) { document.cookie='LANGUAGE=' + theValue + ';expires=Sat, 13-Sep-2036 1:00:00 GMT;path=/' ; if ( lb_cookieDebug ) alert("Language: Received-" + theValue + ", Cookie is: " + readCookie("LANGUAGE")) ; } function changeUnits(theValue) { document.cookie='UNITS=' + theValue + ';expires=Sat, 13-Sep-2036 1:00:00 GMT;path=/' ; if ( lb_cookieDebug ) alert("Units: Received-" + theValue + ", Cookie is: " + readCookie("UNITS")) ; } function changeCurrency(theValue) { document.cookie='CURRENCY=' + theValue + ';expires=Sat, 13-Sep-2036 1:00:00 GMT;path=/' ; if ( lb_cookieDebug ) alert("Currency: Received-" + theValue + ", Cookie is: " + readCookie("CURRENCY")) ; } function goReload() { window.location.reload() ; } 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 addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function'){ window.onload = func; } else { window.onload = function(){ oldonload(); func(); } } }