
<!-- Hide this script from incompatible Web browsers!


function openWin(url) {
	reWin = window.open(url,'popup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=380,height=200');
}

function win(p) {
        page = p;
        slidewin = window.open(page,"win","left=100,top=50,width=350,height=400,scrollbars=1 ,menubar=0");
}

function closeMe() {
	setTimeout('self.close()',1000);
}

function closeWin() {
  window.close();
}


function popWin(url, w, h, scroll){
    URL = url + ''; 
    var ran = 'win' + Math.round(Math.random()*4);
    popWindow = window.open(url,ran,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=' + scroll + ',resizeable=0,copyhistory=0,height=' + h + ',width=' + w);
    // return(false);  
}



function closeMe() {
	setTimeout('self.close()',1000);
}

function setCookie(name, value, expires, path, domain, secure) {
  var curCookie = name + "=" + escape(value) +
      ((expires) ? "; expires=" + expires.toGMTString() : "") +
      ((path) ? "; path=" + path : "") +
      ((domain) ? "; domain=" + domain : "") +
      ((secure) ? "; secure" : "");
  document.cookie = curCookie;
}

function getCookie(name) {
  var dc = document.cookie;
  var prefix = name + "=";
  var begin = dc.indexOf("; " + prefix);
  if (begin == -1) {
    begin = dc.indexOf(prefix);
    if (begin != 0) return null;
  } else
    begin += 2;
  var end = document.cookie.indexOf(";", begin);
  if (end == -1)
    end = dc.length;
  return unescape(dc.substring(begin + prefix.length, end));
}

function checkWin(url, w, h, scroll){
   var id = getCookie(url);
   if (id) {
      // alert("Cookie for " + url + " is " + id);
   } else {
      var now = new Date();
      // cookie expires in one year (actually, 365 days)
      // 365 days in a year
      // 24 hours in a day
      // 60 minutes in an hour
      // 60 seconds in a minute
      // 1000 milliseconds in a second
      now.setTime(now.getTime() + 24 * 60 * 60 * 1000);
      setCookie(url, "1", now);
      // alert("Set cookie for " + url);
      popWin(url, w, h, scroll);
   }
}
//   Hide this script from incompatible Web browsers! -->

