function showUnder(scale) { var expdate = new Date (); var surveyCookieName = "TRIPODPOPUNDER"; var percentOfferedSurvey = 100; var surveyLocation = "/adm/popunder/tripod_popunder.html?"+"member_name=lardinois&path=index.html&client_ip=24.151.32.9&ts=1038721763&ad_type=POPUP&category=shop&search_string=sanssouci&id=c9fbe03dbc4f03c8b5461c0bf793260c"; var popupNewWindow = true; expdate.setTime (expdate.getTime() + (24 * 60 * 60 * 1000)); var stored_value = GetCookie(surveyCookieName); if (stored_value == null){ SetCookie(surveyCookieName, "under", expdate, "/", ".tripod.com"); trUnder = window.open(surveyLocation,'under','height=300,width=720,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no'); trUnder.blur(); } } function showInsite(){ var expdate = new Date (); var surveyCookieName = "TRIPODINSITE"; var percentOfferedSurvey = 100; var showSurvey = "sanssouci"; var surveyLocation = "/adm/redirect/cgi/adm/popunder/insite.html?"+"member_name=lardinois&path=index.html&client_ip=24.151.32.9&ts=1038721763&ad_type=POPUP&category=shop&search_string=sanssouci&id=c9fbe03dbc4f03c8b5461c0bf793260c"+"&member_url="+document.location; var popupNewWindow = true; expdate.setTime (expdate.getTime() + (24 * 60 * 60 * 1000)); var stored_value = GetCookie(surveyCookieName); if (stored_value == null && showSurvey != "(none)"){ SetCookie(surveyCookieName, "insite", expdate, "/", ".tripod.com"); trInsite = window.open(surveyLocation,'insite','height=300,width=450,toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no'); trInsite.blur(); } } function SetCookie (name,value,expires,path,domain,secure){ document.cookie = name + "=" + escape (value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); } function getCookieVal (offset){ var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function GetCookie (name){ var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; if( (document.cookie == null) || (document.cookie.length == null)){ return null; } var i = 0; while (i < clen){ var j = i + alen; if (document.cookie.substring(i, j) == arg) return getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } showUnder(); showInsite();