function loadInOpener(myURL) {
	uTopWindow=window.open(myURL,'mainwindow');
}

function openWindow(whereto, whoami) {
	top.name = "mainwindow"
	popup = window.open(whereto, whoami,'toolbar=no,location=no,directories=no,status=no, scrollbars=0, resizable=no,copyhistory=no,width=450,height=570');
	window.popup.focus();
}

function open_popup(src, name, width, height,location,menubar,resizeable,scrollbars,status,titlebar,toolbar,hotkeys)
{
	var xposition = ((screen.availWidth - width)/2);
	var yposition = ((screen.availHeight - height)/2);
	var win;
	var args =	"width=" + width + "," 
					+ "height=" + height + "," 
					+ "location=" + location + "," 
					+ "menubar=" + menubar + ","
					+ "resizable=" + resizeable + ","  
					+ "scrollbars=" + scrollbars + "," 
					+ "status=" + status + ","
					+ "titlebar=" + titlebar + ","
					+ "toolbar=" + toolbar + ","
					+ "hotkeys=" + hotkeys + "," 
					+ "screenx=" + xposition + ","
					+ "screeny=" + yposition + ","
					+ "left=" + xposition + ","
					+ "top=" + yposition;     

	win = window.open(src, name, args);
	win.focus();
}
