function getBRid () { var page = window.location; if ( parent.frames.length > 0 ) page = parent.location var brId_form = /\bbrId=(\d+)\b/; if ( brId_form.test(page.href) ) { var brId_result = brId_form.exec(page.href); return brId_result[1]; } else return false; } function goLogin (host, brId) { if ( getBRid() ) brId = getBRid(); window.location.href = host + "/csp/CSPServlet/Login?brId=" + brId; } function goSignup (host, brId) { if ( getBRid() ) brId = getBRid(); window.location.href = host + "/csp/CSPServlet/MemFASignup?eventName=MemFASignupRSEvent&brId=" + brId; } function coBrandLogo (logo, link) { if ( logo == '' ) return; if ( link != '' ) document.write(''); document.write(''); if ( link != '' ) document.write(''); } function GetCookieData(label) { var labelLen = label.length var cLen = document.cookie.length var i = 0 var cEnd while (i < cLen) { var j = i + labelLen if(document.cookie.substring(i,j) == label) { cEnd = document.cookie.indexOf(";",j) if(cEnd == -1) { cEnd = document.cookie.length } return unescape(document.cookie.substring(j+1,cEnd)) } i++ } return "" } function SetCookieData(label, data) { var today = new Date() var CookieDate = today.getTime() + (365 * 24 * 60 * 60 * 1000) today.setTime(CookieDate) cookietext = label+"=" + data + ";" + "expires=" + today.toGMTString() document.cookie = cookietext } function SetCBLCookieData(label, data) { var today = new Date() var CookieDate = today.getTime() + (24 * 60 * 60 * 1000) today.setTime(CookieDate) cookietext = label+"=" + data + ";" + "expires=" + today.toGMTString()+";domain=.paytrust.com"+";path=/" document.cookie = cookietext }