function popUp() {
if (document.cookie.indexOf('thecookie=true') == -1) {
today = new Date();
today.setMonth(today.getDay()+7);
document.cookie = 'thecookie=true;expires=' + today.toGMTString();
if (document.cookie.indexOf('cookie=true') != -1)
window.open("/list.php", "MyWindow", "width=500,height=300");
}
}
onload = popUp;