function sck(name,value,offSet) {
  // set cookie
  // millisecond seconds minutes hours days years
  // 1000 * 60 * 60 * 24 * 31 * 365
  // hence, 10 minutes = 1000*60*10 = 600000
  // and 1 day = 1000*60*60*24 =

  // name = cookie name
  // value = time in milliseconds
  // offSet = 1 ?
 var name;
 var value;
 var offSet;
 var expires;
 var path;
 var domain;
//alert(offSet);
 var expdate = new Date();
//alert('now: '+ expdate);
 expires = expdate.getTime();
//alert('exp preset: '+ expires);
 expdate.setTime(expdate.getTime() + (offSet*1));
//alert('exp1 post set :'+ expdate);
 expdate.toGMTString();
// endDate = expdate.toGMTString();
//alert('end2 post gmt: '+ expdate);
 domain = 'www.2bone.com';
 path = '/';
    document.cookie = name + "=" +escape(value) + ( (domain) ? ";domain=" + domain : "")+((path) ? "; path=" + path : "")+( (expdate) ? ";expires=" + expdate : "");
 }

function doh(){
var exit=true;
var filename='http://www.dirty-tshirts.com/pindex.shtml';
var popup;
var left=0;
var top=0;

var gckTest = 0;

gckTest = gck('gotshirt');

if (gckTest) {
  exit = false;
//alert(gckTest);
  return;
  }
//alert('pre sck');
//alert('exit:'+ exit);

//alert('exit:'+ exit);
if(exit!=false){
//alert('we arrived');
  sck('gotshirt',1,43200000);
  win2=window.open(filename, "");
  win2.blur()
  window.focus()
  }
return;
}



function gck(name) {
 var name;
    var start = document.cookie.indexOf(name+"=");
    var len = start+name.length+1;
    if ((!start) && (name != document.cookie.substring(0,name.length))) return null;
    if (start == -1) return null;
    var end = document.cookie.indexOf(";",len);
    if (end == -1) end = document.cookie.length;
    return unescape(document.cookie.substring(len,end));
}





// end -->




