var cookiea="gh1";
var popupa;
var heighta=600;
var widtha=800;
var lefta=(screen.width/2)-(widtha/2);
var topa=(screen.height/2)-(heighta/2);

function entrypop(filename){
if (getcookie(cookiea)==""){
popup = window.open(filename, "","height="+heighta+",width="+widtha+",top="+topa+",left="+lefta+",location=no,menubar=no,resizable=yes,scrollbars=auto,status=no,titlebar=no,toolbar=no,directories=no");
setcookie();
popup.blur();
window.focus();
}
}
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 () {
document.cookie = cookiea
+ "="
+ escape ("done");
}
