
	//-------------------------------------------------------
	// 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, toolbar, 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";
		if( toolbar ) properties += ", toolbar=yes";

		properties = properties.substring(2);

		var win = window.open( url, tar, properties );
		if( win ) win.focus();
	}
	
	function popupWindow1( url, width, height, target, toolbar, 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";
		if( toolbar ) properties += ", toolbar=no";

		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();
			opener.focus();
		}
	}
	
	
	
	// Register Event Handler
	if( opener ) document.onkeydown = closeESC;
	
	
	/**
	 * select box ¿¡¼­ ¼±ÅÃµÈ ÁÖ¼Ò·Î ÆäÀÌÁö ÀÌµ¿
	 
	 * Usage : 
	 *	<select name='aaa' onchange='golink( this.value )'>
	 *		<option>::¼±ÅÃÇÏ¼¼¿ä::</option>
	 *		<option value='http://www.naver.com'>³×ÀÌ¹ö</option>			// ÆË¾÷À¸·Î ³×ÀÌ¹ö ¿ÀÇÂ
	 *		<option value='/aaa/bbb.aspx|_self'>bbb</option>				// º»Ã¢À» bbb ÆäÀÌÁö·Î ÀÌµ¿
	 *	</select>
	 */
	function golink( url ) {
		if( url.length > 0 ) {
			var urltmp = url.split("|");
			
			if( urltmp[1]=="_self" ) {
				location.href = urltmp[0];
			}else{
				window.open(urltmp[0]);
			}
		}
	}
	
	
