//팝업창을 여는 JS 함수들(관리자페이지에서도 쓰임)
function openPopupWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function openPopup(theUrl, winName, bResizable, bScrollbar, winWidth, winHeight, topPos, leftPos)
{
	//팝업창 여는 함수
	//URL, 창이름, 스크롤바 유무(yes or no), width, height, top 좌표, left 좌표를 입력받는다.
	//나머지 속성은 모두 no
	return window.open(theUrl, winName, "toolbar=no,location=no,status=no,manubar=no,resizable=" + bResizable + ",scrollbars=" + bScrollbar + ",width="+ winWidth +",height=" + winHeight + ",top=" + topPos +",left=" + leftPos);
}

function openPopupFull(theUrl,winName,features) 
{
	//팝업창 여는 함수
	//openPopup 함수와 비슷하지만, features를 원하는대로 적을 수 있다.
	return window.open(theUrl,winName,features);
}

function findZipCode(zipCode1, zipCode2, address1, address2)
{
	//우편번호 검색 창을 띄우는 함수. 우편번호 앞뒤 자리, 주소 앞자리에는 값이 들어가고, 주소 뒷자리에는 focus가 간다.
	window.open("/common/findZipCode.asp?zipCode1="+zipCode1+"&zipCode2="+zipCode2+"&address1="+address1+"&address2="+address2, "wFindZipCode", "top=100,left=100,width=501,height=330");
}

// 팝업창을 띄울때 정 중앙에 가운데 팝업을 띄울때 사용 (이 창이 뜨면 배경의 opener 윈도우는 클릭이 되지 않습니다.)
function openModalDialog( p_url, p_width, p_height, p_hide )
{
	if (p_hide == null) p_hide = 0;

	rv = window.showModalDialog( p_url , window, "dialogWidth:" + parseInt(p_width) + "px;"
												+"dialogHeight:" + parseInt(p_height) + "px;"
												+"status:0;center:1;help:0;"
												+"dialogHide:" + parseInt(p_hide));
}