function popupWindow(fl,x1,y1,x2,y2) {
	var w = screen.width, h = screen.height;
	var popW = (x2-x1), popH = (y2-y1);
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;
	
	var args = 'status=0,toolbar=0,location=0,menubar=0,directories=0,resizable=1,scrollbars=0,';
	args = args+'width='+popW+',height='+popH+',top='+topPos+',left='+leftPos;
	window.open('swfpopup.php?props='+fl+","+x1+","+y1+","+x2+","+y2,'popup',args);
}

function popupGetUrl(fl,popW,popH) {
	var w = screen.width, h = screen.height;
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;

	var args = 'status=0,toolbar=0,location=0,menubar=1,directories=0,resizable=1,scrollbars=0,';
	args = args+'width='+popW+',height='+popH+',top='+topPos+',left='+leftPos;
	window.open(fl,'popup',args);
}

