
function openWin(page, name, w, h, scroll,resizable, status) {
	var winl = (screen.width - w) / 2;
   	var wint = (screen.height - h) / 2;
   	winprops = "height=" + h + ",width=" + w + ",top="+ wint + ",left="+ winl +
   	           ",scrollbars=" + scroll + ",resizable=" + resizable +
   	           ",status=" + status;
   	win = window.open(page, name, winprops);
   	if (parseInt(navigator.appVersion) >= 4) {
		win.window.focus();
	}
}

function openWinXY(page, name, w, h, x,y,scroll,resizable, status) {	
   	winprops = "height=" + h + ",width=" + w + ",top="+ x + ",left="+ y +
   	           ",scrollbars=" + scroll + ",resizable=" + resizable +
   	           ",status=" + status;
   	win = window.open(page, name, winprops);
   	if (parseInt(navigator.appVersion) >= 4) {
		win.window.focus();
	}
}