function newWindow(mypage, myname, w, h, scroll, reload) {

	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',toolbar=yes,status=yes,scrollbars='+scroll+',resizable=yes';
	win = window.open(mypage, myname, winprops);
	
	if (win) {win.window.focus();}
	if (reload) {parent.window.history.go(-1);}
}

// *****************************************************
function GetObject(n) {
	var x,t; 
	
	if ((n.indexOf("?")) > 0 && parent.frames.length) {
		t = n.split("?");
		x=eval("parent.frames['"+t[1]+"'].document.getElementById('"+t[0]+"')");
	} else {
		x=document.getElementById(n)
	}
	return x;
}



