// Open a URL in just a window, with given width/height and top/left
function URLBoxAt(url, w, h, t, l) {
	var WinName = new String("Window"+parseInt(Math.random()*1000));
	window.open(url,WinName,"toolbar=no,directories=no,status=no,scrollbars=no,resizeable=no,resize=no,menubar=no,height="+h+",width="+w+",top="+t+",left="+l);
}

// Open a URL in a centered window, with the given width/height
function OpenURLCentered(url,w,h) {
	var newTop = (screen.height - h)/2;
	var newLeft = (screen.width - w)/2;
	var WinName = new String("Window"+parseInt(Math.random()*1000));
	window.open(url,WinName,"toolbar=no,directories=no,status=no,scrollbars=yes,resizeable=no,resize=no,menubar=no,height="+h+",width="+w+",top="+newTop+",left="+newLeft);
}


// Open a URL in a window with the specified options, with given width/height and top/left
function OpenURLWindowAt(url,OptionStr,w,h,t,l) {
	if (OptionStr=='') {OptionStr='toolbar=yes,directories=no,status=yes,scrollbars=yes,resizeable=yes,resize=yes,menubar=no';}
	var WinName = new String("Window"+parseInt(Math.random()*1000));
	window.open(url,WinName,OptionStr+",height="+h+",width="+w+",top="+t+",left="+l);
}


 // Open a URL window with the specified options, with given width/height
function OpenURLWindowCentered(url,OptionStr,w,h) {
	if (OptionStr=='') {OptionStr='toolbar=yes,status=yes,scrollbars=yes,resizeable=no,resize=no,menubar=no';}
	var newTop = (screen.height - h)/2;
	var newLeft = (screen.width - w)/2;
	var WinName = new String("Window"+parseInt(Math.random()*1000));

	window.open(url,WinName,OptionStr+",height="+h+",width="+w+",top="+newTop+",left="+newLeft);
}

// Put text in the Browser's Status Bar
function StatusBar(stuff) {
	window.status = stuff;
}

function popUp(url) {
sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0, status=1,menubar=1,scrollbars=1,resizable=0,WIDTH=675,height=450');
self.name = "mainWin"; }
