
//-------------- Start - open_new_resized_page ----------------------------//
//----------- 在開啟的視窗中操作原來的視窗 ----------------//
//-------------------------------------------------------------------------//

w = null;
nw= null;

function OpenW( FileName ) {
	w = window.open( FileName, "", "menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,width=700,height=500");

	if ( navigator.appName == "Netscape" ) {
		x = window.screenX + 0;
		y = window.screenY + 0;

		w.moveTo( x, y );
	}
  else {
		w.moveTo(100,20);
		window.moveTo(0,0);
		window.resizeTo(1024,768);
  }
}

function NewW( FileName ) {

	if ( w==null ) {
		OpenW( FileName );
  }
  else {
		if ( navigator.appVersion.substring( 0, 1 )>2 ) {
			if ( w.closed==true ) {
				  OpenW( FileName );
			}
			else {
				w.location.replace("./" +  FileName );
				w.focus();
			}
		}
		else {
			w.close();
			OpenW( FileName );
		 }
	}
}

function CloseW() {
	if ( w != null ) {
		if ( navigator.appVersion.substring( 0, 1 )>2 ) {
			if ( w.closed==false ) {
				w.close();
			}
		}
		else {
			win.close();
		}
	}
}

//-------------- End - open_new_resize -----------------------------//
//--------------------------------------------------------------------------//
