function popup(mypage, myname, w, h, location, s){
	if(location == "left"){
		var loc = "0";
	}else if(location == "center"){
		var loc = (screen.width - w) / 2; 
		var wint = (screen.height - h) / 2; 
	}else if(location == "right"){
		var loc = screen.width - w;		
	}
	if(s == "scroll"){
		var scrollbar = ",scrollbars"
	}
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+loc+scrollbar;
	var win = window.open(mypage, myname, winprops) 
	if (parseInt(navigator.appVersion) >= 4){
		win.window.focus();
	}
}

function help(where){
	popup("help.php?help="+where, "Help", "450", "800", "right", "scroll")
}

function system(msg){
	window.status = msg;
	return true;
}

function restore(){
	window.status = null;
	return true;
}