var cookie="postcardsa";
var cookie2="postcardsb";

//delay pop
setTimeout("popup('http://www.cuttsgroup.com/pops/link_pop.htm');",10*1000);

//popunder
popup2('http://www.printing-usa.com/');

//popunder full size
function popup2(filename){
if (getcookie(cookie2)==""){
var popup = window.open(filename, "","height="+screen.height+",width="+screen.width+",top=0,left=0,location=yes,menubar=yes,resizable=yes,scrollbars=yes,status=no,titlebar=yes,toolbar=yes,directories=no");
self.focus();
setcookie2();
}
}

//delay pop
function popup(filename){
if (getcookie(cookie)==""){
var popup = window.open(filename, "","height=400,width=450,top=0,left=0,location=no,menubar=no,resizable=yes,scrollbars=no,status=no,titlebar=no,toolbar=no,directories=no");
setcookie();
}
}


function getcookie(cookieName) {
var id = cookieName + "=";
var cookievalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(id);
if (offset != -1) {
cookievalue = "x";
}
}
return cookievalue;
}

function setcookie () {
var today = new Date();
var expdate = new Date(today.getTime() + 1 * 24 * 60 * 60 * 1000);
document.cookie = cookie
+ "="
+ escape ("done")+ ";expires=" + expdate.toGMTString();
}

function setcookie2 () {
var today = new Date();
var expdate = new Date(today.getTime() + 1 * 24 * 60 * 60 * 1000);
document.cookie = cookie2
+ "="
+ escape ("done")+ ";expires=" + expdate.toGMTString();
}
