
<!--Auto center window script- Eric King (http://redrival.com/eak/index.shtml)-->
<!--Permission granted to Dynamic Drive to feature script in archive -->
<!--For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com -->

var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;

var resizable=0;
if(myname=='admin') resizable=1;

settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable='+resizable;
win = window.open(mypage,myname,settings)
if(win.window.focus){win.window.focus();}
}

function admin(url){
	NewWindow(url, 'admin', 600, 450, 1);
}

function wallpaper(src){
	var url;
	url = '/wallpaper.asp?src='+src;
	NewWindow(url, 'wallpaper', 760, 550, 1);
}

function checkbrowser(url){
	NewWindow(url, 'browser', 600, 450, 1);
}