function popup(url,winName,W,H,X,Y) {
	if(W == undefined) W = 500;	//default width
	if(H == undefined) H = 500; //default height
	if(X == undefined) X = screen.width/2-W/2; //default Xpos (is now centered)
	if(Y == undefined) Y = screen.height/2-H/2; //default Ypos (is now centered)

	winprops = 'height='+H+',width='+W+',top='+X+',left='+Y+',scr  ollbars=no';

	win = window.open(url, winName, winprops);
	if (parseInt(navigator.appVersion) >= 4) {
		win.window.focus();
	}
}
function popitup(url) {
	newwindow=window.open(url,'name','height=500,width=700,scrollbars=yes');
	if (window.focus) {newwindow.focus()}
	return false;
}
