function popup(apri) {
        window.open(apri, "popup", 
		"top=10, left=10, width=300, height=300, status=no, menubar=no, toolbar=no, scrollbars='yes'");
}

function popUPFree(mypage, myname, w, h, x, y, scroll, titlebar)
{

	//var winl = (screen.width - w) / 2;
	//var wint = (screen.height - h) / 2;
	winl = x;
	wint = y;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=yes, status=no';
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) {
		win.window.focus();
	}
}

function popUP(mypage, myname, w, h, scroll, titlebar)
{

	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) {
		win.window.focus();
	}
}
