function LoadPopup(getFileName,getWindowName,getHeight,getWidth) {

	var _file = getFileName;

	var _window = getWindowName;

	var _toolbar = 0;

	var _menubar = 0;

	var _status = 1;

	var _resizable = 1;

	var _width = getWidth;

	var _height = getHeight;

	var _top = (screen.height - _height) / 2;

	var _left = (screen.width - _width) / 2;

	var _scrollbars = 1;

	

	var _condition = "toolbar=" + _toolbar + ",menubar=" + _menubar + ",status=" + _status + ",resizable=" + _resizable;

	_condition+=",width=" + _width + ",height=" + _height + ",left=" + _left + ",top=" + _top + ",scrollbars=" + _scrollbars + "";

	

	window.open(_file,_window,_condition);



	/*var screenwidth = _width;

	var screenheight = _height;

	var myparams = "left=" + _left;

	myparams += ",top=" + _top;

	myparams += ",width=10,height=10";

	myparams += ",toolbar=no,menubar=no,location=no";

	myparams += ",status=yes,scrollbars=yes,resizable=yes"

	var mywindow=open(_file,_window, myparams);



	var resizesteps = 50;

	var myx = 10

	var myy = 10;

	var widthspeed = (screenwidth-100)/resizesteps;

	var heightspeed = (screenheight-100)/resizesteps;

	for (size=0; size<resizesteps; size++){

	mywindow.resizeTo(myx, myy);

	myx += widthspeed;

	myy += heightspeed;}

	mywindow.resizeTo(screenwidth, screenheight);*/

}
