// ======================================================================
//
//     This code should be saved as pop1019.js 
//
//     Javascript generated by Instant Popup Maker. 
//     Please check us out at http://uuba.com/
// ======================================================================

  // ======================================================================
  // If you are launching a page not in the same place as the launch page, 
  // you will have to change the value of urlPOP to be a properly qualified 
  // URL such as 'http://www.mysite.com/ads/popad.html'.

  var urlPop = 'pop-under.htm'; 

  // ======================================================================
  // If you are reusing this code for several popup pages that may all be 
  // open at one time, change the value of windowName to a unique name for
  // each popup page.

  var windowName = 'poppage';

  // =======================================================================
  // Set expDays to number of days the cookie should expire

  var expDays = 1; 

  // ======================================================================
  // If you are reusing this code for several popup pages then change the
  // cookie key code so each one is unique

  var myCookieCode = 'count01';

  // ======================================================================

function LaunchPop() {
  var myHeight = 330; var myWidth = 540; var myTop = 100; var myLeft = 100;
  var myCenter = 0; var myFullScreen = 0;
  var winSizes = 'width='+myWidth+',height='+myHeight;
  var winLoc = ',screenX='+myLeft+',screenY='+myTop+',top='+myTop+',left='+myLeft;
  var winParms = ',directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=yes';
  wF=window.open(urlPop, windowName, winSizes+winLoc+winParms);
  wF.blur();
  window.focus() ;
}

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;
}

function getCookieVal(offset) {
  var endstr = document.cookie.indexOf (";", offset);
  if (endstr == -1) endstr = document.cookie.length;
  return unescape(document.cookie.substring(offset, endstr));
}

function SetCookie (name, value) {  
  var argv = SetCookie.arguments; var argc = SetCookie.arguments.length;  
  var expires = (argc > 2) ? argv[2] : null;  
  var path = (argc > 3) ? argv[3] : null;  
  var domain = (argc > 4) ? argv[4] : null;  
  var secure = (argc > 5) ? argv[5] : false;  
  // Javascript generated by Instant Popup Maker. 
  // Please check us out at http://uuba.com/
  document.cookie = name + "=" + escape (value) + 
    ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
    ((path == null) ? "" : ("; path=" + path)) +  
    ((domain == null) ? "" : ("; domain=" + domain)) +    
    ((secure == true) ? "; secure" : "");
}

var exp = new Date(); 
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));

function openMyPopup() { 
  var count = GetCookie(myCookieCode);
  if (count == null) { count=1; SetCookie(myCookieCode, count, exp); LaunchPop(); }
}

function closeMyPopup() { 
  window.close();
}



// Javascript generated by Instant Popup Maker. 
// Please check us out at http://uuba.com/


