function popup(filename,x,y,type,current_color_set) { 
	windowops = eval("'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=no,,width=" + x + ",height=" + y + "'"); 
	window.open('popup.php?file='+filename+'&type='+type+'&width='+x+'&height='+y+'&current_color_set='+current_color_set, 'popup', windowops); 
	return; 
}
function accessMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
  
	SetCookie("access_select",selObj.options[selObj.selectedIndex].value,1);
	document.access_update.submit();
}
function load(filename) {
	window.location.href(filename);
	return; 
}
function refreshParent() {
  window.opener.location.href = window.opener.location.href;
}
function center() {
	window.moveTo((screen.width/2)-(550/2), (screen.height /2)-(400/2));
}
function selectPage(id)
{
	SetCookie("page_number",id,1);
	document.select_page.submit();
}
function SetCookie(cookieName,cookieValue,nDays) {
 var today = new Date();
 var expire = new Date();
 if (nDays==null || nDays==0) nDays=1;
 expire.setTime(today.getTime() + 3600000*24*nDays);
 document.cookie = cookieName+"="+escape(cookieValue)
                 + ";expires="+expire.toGMTString();
}

