
	//-------------------------------------------------------
	// Popup Window Control Functions
	//-------------------------------------------------------
	
	/**
	 * Popup Window
	 *
	 * @param : url - Popup URL
	 * @param : width - Popup Window Width
	 * @param : height - Popup Window Height
	 * @param : target - Target Name
	 * @param : scrollbars - Scrollbar State (true / false)
	 * @param : resizable - Window Resizable State (true / false)
	 * @return : Popup Window Object
	 */
	function popupWindow( url, width, height, target, scrollbars, resizable) {
		var tar = "";
		var properties = "";
		
		if( target ) tar = target;
		if( width ) properties += ", width=" + width;
		if( height ) properties += ", height=" + height;
		if( scrollbars ) properties += ", scrollbars=yes";
		if( resizable ) properties += ", resizable=yes";

		properties = properties.substring(2);

		var win = window.open( url, tar, properties );
		if( win ) win.focus();
	}
	
	
	/**
	 * Close Window
	 */
	function closeWindow() {
		top.window.close();
		opener.focus();
	}
	
	
	/**
	 * Input 'ESC' key : Close Window
	 */
	function closeESC() {
		if( event.keyCode == 27 ) {
			top.window.close();
			if( opener )
				opener.focus();
		}
	}
	
	
	
	// Register Event Handler
	if( opener ) document.onkeydown = closeESC;
	
	