function is_agree(obj)
{
	if(obj.radio_agreement[1].checked === true) {
		alert("약관에 동의하지 않으시면 가입하실 수 없습니다.");
		return false;
	} else {
		return true;
	}
}

function find_zipcode(hpath) {
    window.open(hpath + "/common/zipcode/?step=1", "find_zipcode", "top=200, left=200, width=418, height=250, scrollbars=yes");
}

function checkid(hpath){
	theForm = document.joinForm;
	pattern = /^[a-zA-Z]{1}[a-zA-Z0-9\-]{3,15}$/;

	if(theForm.userid.value == "" || !theForm.userid.value){
		alert("회원ID를 입력하세요.");
		theForm.userid.focus();
		return;
	} else {
		if(!pattern.test(theForm.userid.value)) { 
			alert('4자이상 15자 미만이어야 하고,\n영문,숫자, - 문자만 사용할 수 있습니다.'); 
			theForm.userid.select();
			return;
		}
		sUrl = hpath + "/member/register/?do=checkid&userid=" + theForm.userid.value;
		frm_checkid.document.location = sUrl;
	}	
}
