
var w=window.open("","_top")

	function webOpenMsgUrl( url ) {

		var	left	= ((screen.width-500)/2);
		var	top	= ((screen.height-300)/2);
		var	opt	= "scrollbars=yes,resizable=yes,width=500,height=300" + ",top=" + top + ",left=" + left;

		var	_apprWin= window.open( url , "msg", opt );
	}

	function webOpenMsg( gui, m_num ) {

		var	left	= ((screen.width-500)/2);
		var	top	= ((screen.height-300)/2);
		var	opt	= "scrollbars=yes,resizable=yes,width=500,height=300" + ",top=" + top + ",left=" + left;
		var	url	= "./gui994_progress.phtml?gui=" + gui + "&m_num=" + m_num;
		var	_apprWin= window.open( url , "msg", opt );
		_apprWin.focus();
	}

	function webOpenMsgOrg( msg ) {

		var	left	= ((screen.width-500)/2);
		var	top	= ((screen.height-300)/2);
		var	opt	= "scrollbars=yes,resizable=yes,width=500,height=300" + ",top=" + top + ",left=" + left;
		var	url	= "./gui994_progress.phtml?msg_text=" + msg;
		var	_apprWin= window.open( url , "msg", opt );
		_apprWin.focus();
	}


	function webQuit(){
		w.opener=window;
		w.close();
	}


	function webChangeWindowSize(x, y)
	{
		focus();
		window.resizeTo(x, y);
	}

	function webChangeWindowPosSize(x, y, left, top )
	{
		focus();
		window.moveTo( left, top )
		window.resizeTo(x, y);
	}

	function webSetWindowMax()
	{
		moveTo(0,0);
		resizeTo(screen.width,screen.height);
		focus();
	}

	function webOpenUrl( url, target ){

		var	result	= window.open( url, target, "" );
	}

	function webOpenUrl2( url, target ){

		//var	result	= parent.open( url, target, "" );
		parent.target	= target;
		parent.location	= url;
	}

	function webOpenSizeUrl( url, target, width, height ){

		var	left	= ((screen.width-width)/2);
		var	top	= ((screen.height-height)/2);
		var	opt	= "scrollbars=yes,resizable=yes,width=" + width + ",height=" + height +",top=" + top + ",left=" + left;
		var	result	= window.open( url, target, opt );
	}

	function webBack() {
		history.back();
	}

	function webReload() {
		history.reload();
	}

	function webForward() {
		history.forward();
	}
