<script language="JavaScript"> <!-- var popupURL = "/sys/popup_source.shtml?Category="; var adname = "Ad"; var cookie_name = "Popup"; var expire = 5; var factor = 1; var popup = null; var view_count = 0; var expdate = new Date();
ShowPopup();
function ShowPopup() { openWin(); }
function openWin () { // browser detect loads differently sized window for netscape 3.x if (navigator.appName=="Netscape" && parseInt(navigator.appVersion)<=3) { popup = window.open(popupURL,adname,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=619,height=125'); } else { popup = window.open(popupURL,adname,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=602,height=105'); }
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; 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; }