function openWin(name, url, wval, hval)
{
	var win ;
	var left = (screen.availWidth/2) - 410;
	var top = (screen.availHeight/2) - 300;
	width = wval;
	height = hval;
	toolbar_str = "no";
	menubar_str = "no";
	statusbar_str = "yes";
	scrollbar_str = "yes";
	resizable_str = "no";
	win = window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
	if (win.focus) win.focus();
}


/** =============================================
Comment: 모달 팝업
Return : String
Usage  : fn_showModal
--------------------------------------------- **/
function fn_showModal(sAction, sFormName, sResult, sParam, sOption) {
    /*----------
		다이얼로그창의 크기를 직접 세팅하는 이유:
		기존에 작성된 소스(팝업사용 페이지)의 변화를 최소화 하고
		다이얼로그 창의 크기 변화 없이 뜨도록 함으로서 시각적
		속도 개선을 위함이다.
		다이얼로그 창이 뜬후에 창의 크기를 조절 하는 경우는
		시각적으로 수행성능이 떨어 지는것처럼 보인다.
	----------*/

	var sWidth;
	var sHeight;
	var iWindowWidth  = 300;
	var iWindowHeight = 300;

	// 새로운 크기의 창 팝이 필요 할시 아래 if문에 else if 로 추가 하세요
	if (sAction.indexOf("popup.kto?func_name=zipcodelist3") >= 0) {  // 우편번호 조회
	/*
		iWindowWidth  = 540 + (5 * 2) + 50;
		iWindowHeight = 540 + (5 * 2) + 30;
	*/
		iWindowWidth  = 600;
		iWindowHeight = 549;
	} else {
		// 기본적인 팝업
		//iWindowWidth  = 540 + (5 * 2)+ 50;
		//iWindowHeight = 540 + (5 * 2 + 19) +10;
		iWindowWidth  = 600;
		iWindowHeight = 549;
	}

	sWidth  = iWindowWidth  + "px";
	sHeight = iWindowHeight + "px";

	if (sAction.indexOf("?") >= 0){
		sAction = sAction 	+ "&"
							+ "form_name=" + sFormName + "&"
							+ "param="     + sParam    + "&"
							+ "result="    + sResult ;
	} else {
		sAction = sAction	+ "?"
							+ "form_name=" + sFormName + "&"
							+ "param="     + sParam    + "&"
							+ "result="    + sResult ;
	}

	sFeature =  "dialogWidth:" + sWidth
				+ ";dialogHeight:" + sHeight
				+ ";resizable:no;status:no"
				+ ";scroll:no;help:no";

	window.showModalDialog(sAction,window,sFeature);
}



