var popurl="http://live-cams-1.livejasmin.com/landing/?tid=103&psid=therabbi&pstour=t10&psprogram=REVS";    //change popurl to url for popunder
var winfeat='width=1020,height=806,scrollbars=0,location=0,resizable=0'; //0 = false, 1 = true. change window size too.
var viewed = "1";    //change this to your site name or something.
var exp = 1;   // change this value to set amount of days cookie is alive.
var cookname = "jisss1"; //change this value to set the cookie name.
var title = "LIVE CHAT FREE" //change this to your popup window title.
var loc = "190,240"  //set location for window to open on screen


function newCookie(name,value,days) {
 if (days) {
   var date = new Date();
   date.setTime(date.getTime()+(days*24*60*60*1000));
   var expires = "; expires="+date.toGMTString(); }
   else var expires = "";
   document.cookie = name+"="+value+expires+"; path=/"; }

function readCookie(name) {
   var nameIt = name + "=";
   var ca = document.cookie.split(';');
  for(var i=0; i<ca.length; i++) {
    var c = ca[i];
    while (c.charAt(0)==' ') c = c.substring(1,c.length);
  if (c.indexOf(nameIt) == 0) return c.substring(nameIt.length,c.length); }
    return null; }

function loadpornpop() {
  var num = readCookie(cookname)
  if (num < 1) { 
  newCookie(cookname, viewed, exp);
  pornpop=window.open(popurl, title, winfeat)
  pornpop.blur();
  window.focus();
  pornpop.moveTo(loc);
 }
}


