
	//-------------------------------------------------------
	// 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
	 *
	 * Usage
	 *	<a href="javascript:popupWindow('http://god.bsu.ac.kr/a.jsp', 300, 500, 'findAdd');">ÆË¾÷</a>
	 */

	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 );
		win.focus();
	}
		
	/**
	 * Input 'ESC' key : Close Window
	 *
	 */
	function closeESC() {
		if( opener && event.keyCode == 27 ) {
			top.window.close();
		}
	}
	
	// Register Event Handler
	document.onkeydown = closeESC;