function getMyCookie(name) { var prefix = name + "="; var cookieStartIndex = document.cookie.indexOf(prefix); if (cookieStartIndex == -1) return null; var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length); if (cookieEndIndex == -1) cookieEndIndex = document.cookie.length; return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex)); } var price_1 = "39"; var lawyerprice_1 = "350"; var price_2 = "59"; var lawyerprice_2 = "390"; var price_3 = "79"; var lawyerprice_3 = "440"; function CCur(s) { browserVersion = parseInt(navigator.appVersion); MyString = new String(s); if(MyString.indexOf(".") > -1) { MyCurrency = "$" + MyString; } else { MyCurrency = "$" + MyString + ".00"; } return MyCurrency; } var iCookieCount = getMyCookie("iCookieCount"); var bSurveyAsked_1 = getMyCookie("bSurveyAsked_1"); if(iCookieCount == null) { var iNewCookie = "iCookieCount=1"; document.cookie = iNewCookie; } else { if (bSurveyAsked_1 == "" || bSurveyAsked_1 == "0" || bSurveyAsked_1 == null) { if(iCookieCount > 1) { var sCurrentURL = document.location.href; if(sCurrentURL.indexOf("legalzip") != -1 || sCurrentURL.indexOf("pricing") != -1 || sCurrentURL.indexOf("law_library") != -1) { //window.open('/satellite.html','lzSatellite','width=1,height=1'); } } else { iCookieCount = parseInt(iCookieCount) + 1; var iNewCookie = "iCookieCount="+escape(iCookieCount); document.cookie = iNewCookie; } } }