var expDate = new Date();
expDate.setTime(expDate.getTime()+365*24*60*60*1000); // one year


function setCookie(isName,isValue,dExpires){

document.cookie = isName+"="+isValue+";expires="+dExpires.toGMTString();
}

function getCookie(isName){

cookieStr = document.cookie;
startSlice = cookieStr.indexOf(isName+"=");
if (startSlice == -1){return false}
endSlice = cookieStr.indexOf(";",startSlice+1)
if (endSlice == -1){endSlice = cookieStr.length}
isData = cookieStr.substring(startSlice,endSlice)
isValue = isData.substring(isData.indexOf("=")+1,isData.length);
return isValue;
}

function initPopups(){

if (!getCookie('pop1'))
{popWin1 = window.open("html/pop1.html","","width=225,height=350,top=50,left=400")}
}

window.onload=initPopups;
