function fWinPopup(url,windowName,width,height,toolbar,location,directories,status,menubar,scrollbars,resizable,top,left) {
	if (!handler) var handler=null;
	if (!windowName) title='no_windowName';
	if (!width) width=200;
	if (!height) height=200;

  var x=(typeof(left)=='undefined')?(screen.availWidth - width)/2   : left;
  var y=(typeof(top) =='undefined')?(screen.availHeight - height)/2 : top;

	var windowFeatures = "width=" +width+ ",height=" +height+ ",screenX=" +x+ ",screenY=" +y+ ",top=" +y+ ",left=" +x+ ",toolbar="+toolbar+",location="+location+",directories="+directories+",status="+status+",menubar="+menubar+",scrollbars="+scrollbars+",resizable="+resizable;
	//alert(windowFeatures);
	handler=window.open(url,windowName,windowFeatures);
	if (handler) {
		handler.focus();
		if (handler.opener == null) handler.opener = window;
	}
	
	return handler;
}

function open_popup(src, width, height){
	fWinPopup(src,'',width,height,0,0,0,0,0,1,1,0,0);
}