function pwd_del(path,id){
	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
	var wide = 310;
	var high = 150;

	if(confirm('»èÁ¦ÇÏ½Ã°Ú½À´Ï±î?')){
		if(id==""){
			var theURL="/pwd.html?flag=del";
			window.open(theURL,"pwd_D",'width='+wide+',height='+high+',scrollbars=no,resizable=yes,top=' + window_top + ',left=' + window_left + '');
		}else{
			location.href=path;
		}
	}
}


function pwd_mod(path,id){
	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
	var wide = 310;
	var high = 150;

	if(id==""){
		var theURL="/pwd.html?flag=mod";
		window.open(theURL,"pwd_D",'width='+wide+',height='+high+',scrollbars=no,resizable=yes,top=' + window_top + ',left=' + window_left + '');
	}else{
		location.href=path;
	}

}


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
 
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

//----------------------  ¸Þ´º¹Ù --------------------------
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


//------------------ ·Î±×ÀÎ CHECK FORM --------------
function LoginFrm(theForm) 
{
	if (theForm.id.value == "") {
		window.alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿ä.");
		theForm.id.focus();
		return false;
	}
	if (theForm.pwd.value == "") {
		window.alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿ä.");
		theForm.pwd.focus();
		return false;
	}
	if(typeof(theForm.boan) == 'object'){
		if(theForm.boan.checked){
			var url = "https://www.kscp.net:8145/member/login.php";
			 theForm.action = url;
		}
	}
}

//----------------------- »õÃ¢ ¶ç¿ì±â(½ºÅ©·Ñ¹Ù À¯) ----------------------------
function Win_scroll(theURL,wide,high) {
	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
	window.open(theURL,"Newwin",'width='+wide+',height='+high+',scrollbars=yes,resizable=no,top=' + window_top + ',left=' + window_left + '');
}

//----------------------- »õÃ¢ ¶ç¿ì±â(½ºÅ©·Ñ¹Ù ¹«) ----------------------------
function Win_mu(theURL,wide,high) {
	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
	window.open(theURL,"Newwin",'width='+wide+',height='+high+',scrollbars=no,resizable=no,top=' + window_top + ',left=' + window_left + '');
}

//----------------------- °Ë»ö ----------------------------
function Search_send(theForm)
{
	if(theForm.keyword.value == "")
	{
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		theForm.keyword.focus();
		return false;
	}
}

//------------------ ¶óµð¿À¹öÆ° CHECK --------------
function radioCheck(oN){
	for(i=0;i<oN.length;i++){
		if(oN[i].checked){ return true; }
	}
	return false;
}

//-----------------------E-mail ÁÖ¼ÒÈ®ÀÎ----------------------------
function isEmail(str) {
  
  var supported = 0;
  if (window.RegExp) {
    var tempStr = "a";
    var tempReg = new RegExp(tempStr);
    if (tempReg.test(tempStr)) supported = 1;
  }
  if (!supported) 
    return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
  var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
  var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");
  return (!r1.test(str) && r2.test(str));
}

//----------------------- ¼ýÀÚ È®ÀÎ ----------------------------
function Check_Num(theForm) {
	t = theForm.value ;
	for(i=0;i<t.length;i++) {
		if (t.charAt(i)<'0' || t.charAt(i)>'9') {
			alert("¼ýÀÚ¸¸ ÀÔ·ÂÇØÁÖ¼¼¿ä.") ;
			theForm.value="";
			theForm.focus();
			return false ;
		}
	}
	return true; 
}

//----------------------- ¼ýÀÚ È®ÀÎ(ÀÚ¸®¼ö Æ÷ÇÔ) ----------------------------
function Check_Tel(theForm,mm) {
	t = theForm.value;
	for(i=0;i<t.length;i++) {
		if (t.charAt(i)<'0' || t.charAt(i)>'9') {
			alert("¼ýÀÚ¸¸ ÀÔ·ÂÇØÁÖ¼¼¿ä.") ;
			theForm.value="";
			theForm.focus() ;
			return false ;
		}
	}
	if (t.length < mm)
	{
		alert("¼ýÀÚÀÇ ±æÀÌ¸¦ È®ÀÎÇÏ½Ê½Ã¿ä.");
		theForm.focus();
		return false;
	}
	return true;
}	

//------------------------ ¿ìÆí¹øÈ£°Ë»ö ----------------------------
function OpenZipcode(z,is_https){    //open zip code check win
	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
	zName = "/member/zip_check.html?zip_gubun="+z
	if( is_https ) zName += "&amp;is_https=" + is_https;
	window.open(zName,"ZipWin",'width=466,height=340,scrollbars=yes,top=' + window_top + ',left=' + window_left + '');
}

function OpenZipcode2(z){    //open zip code check win
	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
	zName = "/zip_check.html?zip_gubun="+z
	window.open(zName,"ZipWin2",'width=466,height=340,scrollbars=yes,top=' + window_top + ',left=' + window_left + '');
}

//------------------------ º´¿ø°Ë»ö ----------------------------
function OpenHosp(z){
	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
	murl = "/hosp_search.html?field="+z
	window.open(murl,"HosWin",'width=466,height=175,scrollbars=yes,top=' + window_top + ',left=' + window_left + '');
}

//------------------------ »çÁø ÀÔ·Â ----------------------------
function OpenPhoto(str){
	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
	murl = "/photo_up.html?num="+str;
	window.open(murl,"PhoWin",'width=441,height=256,top=' + window_top + ',left=' + window_left + '');
}

//------------------------ °øÁö»çÇ× PopUp ----------------------------
function OpenNotify(murl){
	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
	window.open(murl,"NoticeWin",'width=529,height=410,scrollbars=yes,top=' + window_top + ',left=' + window_left + '');
}

//------------------------ ÀÇ·á°è´º½º PopUp ----------------------------
function OpenNews(murl){
	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
	window.open(murl,"NewsWin",'width=529,height=410,scrollbars=yes,top=' + window_top + ',left=' + window_left + '');
}

//------------------------ Çà»çÀÏÁ¤ PopUp ----------------------------
function OpenEvent(murl){
	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
	window.open(murl,"NewsWin",'width=529,height=410,scrollbars=yes,top=' + window_top + ',left=' + window_left + '');
}

//------------------------ »èÁ¦ ----------------------------
function delconf(murl) 
{
	if(confirm("Á¤¸» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?"))
	window.location = murl;
}

//---------------------- ÂÊÁö popup -------------
function Memo_open(myurl){
	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
	window.open (myurl, "memo", 'width=414, height=268,scrollbars=yes,top=' + window_top + ',left=' + window_left + '')
}

//---------------------- ÂÊÁö -------------
function Memo_wasteconf(murl){
	if(confirm("Á¤¸» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?\n\nÈÞÁöÅë·Î ÀÌµ¿µË´Ï´Ù."))
	window.location = murl;
}

//---------------------- ÂÊÁö -------------
function Memo_delconf(murl){
	if(confirm("Á¤¸» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?\n\n¼±ÅÃÇÑ ÂÊÁö°¡ ¿ÏÀüÈ÷ »èÁ¦µË´Ï´Ù."))
	window.location = murl;
}

//---------------------- ÂÊÁö -------------
function Sender_delconf(murl){
	if(confirm("ÂÊÁö¸¦ »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?"))
	window.location = murl;
}

//----------------------- ¾ÆÀÌµð / ÆÐ½º¿öµå Ã£±â ----------------------------
function Find_Send(theForm) 
{
	if (!theForm.name.value) {
		window.alert("¼º¸íÀ» ÀÔ·ÂÇÏ½Ê½Ã¿ä.");
		theForm.name.focus();
		return false;
	}
	if (!theForm.jumin.value) {
		window.alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿ä.");
		theForm.jumin.focus();
		return false;
	}
}


//--------------------- ÆÄÀÏ Æ÷¸Ë CHECK -------------------------
function formatChk(theForm)
{	
    var fname = theForm.value;
    sp_arry = fname.split(".");
    sp_einx = sp_arry.length - 1;
    sp_arry[sp_einx] = sp_arry[sp_einx].toLowerCase();

	return sp_arry[sp_einx];
}
//----------------------- È¸¿ø°Ë»ö ----------------------------
function User_send(theForm) 
{
	var cnt = 0;
	for( var i=0; i< theForm.elements.length; i++)
	{
		var temp = theForm.elements[i];
		if(temp.value != "")
		cnt += 1;
	}
	if (cnt == 0)
	{
		window.alert("ÇÑ°¡Áö ÀÌ»óÀÇ °Ë»öÁ¶°Ç°ú °Ë»ö¾î¸¦ ¼±ÅÃ,ÀÔ·ÂÇÏ½Ê½Ã¿ä.");
		theForm.key.focus();
		return false;
	}else{
		if(theForm.key.value != "" && !theForm.keyword.value){
			window.alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿ä.");
			theForm.keyword.focus();
			return false;
		}
		if(theForm.keyword.value != "" && !theForm.key.value){
			window.alert("°Ë»öÁ¶°ÇÀ» ¼±ÅÃÇÏ½Ê½Ã¿ä.");
			theForm.key.focus();
			return false;
		}
	}
}

function goQuiz()
{
	document.times_form.submit();
}

//------------------ ¾à°ü¿¡ µ¿ÀÇ --------------
function Chk_poll(theForm)
{
	if(!radioCheck(theForm.item))
	{
		alert("Ç×¸ñÀ» ¼±ÅÃÇØ ÁÖ½Ê½Ã¿À.");
		theForm.item[0].focus();
		return false;
	}
}

//----------------- ÆË¾÷ -------------------------
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//----------------- ÄûÁî ÆË¾÷ -------------------------
function openWin(murl,msize){
	window.open(murl,"popup",msize)
}

//----------------- °Ë»ö Á¶°ÇÁß ¼Ò¼ÓÀÏ¶§ selectbox·Î ³ªÅ¸³»±â---------
function type_list(){


}

//ÁÖ¹Î¹øÈ£ À¯È¿¼ºÀ» Ã¼Å© -- 2003.12.23 ½ÅÈ£Á¤
function JuminCheck(no1,no2)
	{
		if (no1.length != 6)
		{
		   return false;
		}
		else if (no2.length != 7)
		{
		   return false;
		}
		else
		{
		   var str_serial1 = no1;
		   var str_serial2 = no2;
		   var digit=0
		   for (var i=0;i<str_serial1.length;i++){
		   	var str_dig=str_serial1.substring(i,i+1);
		   	if (str_dig<'0' || str_dig>'9'){
		   	digit=digit+1
		   }
		}
		 if ((str_serial1 == '') || ( digit != 0 ))
		 {
			return false;
		  }
		 var digit1=0
			for (var i=0;i<str_serial2.length;i++){
				var str_dig1=str_serial2.substring(i,i+1);
				 if (str_dig1<'0' || str_dig1>'9'){
					 digit1=digit1+1
					}
		 }
		 if ((str_serial2 == '') || ( digit1 != 0 ))
		 {
			return false;
		  }
		 if (str_serial1.substring(2,3) > 1)
		 {
			return false;
		  }
		 if (str_serial1.substring(4,5) > 3)
		 {
			return false;
		  }
		 if (str_serial2.substring(0,1) > 4 || str_serial2.substring(0,1) == 0)
		 {
			return false;
		  }
			var a1=str_serial1.substring(0,1)
			var a2=str_serial1.substring(1,2)
			var a3=str_serial1.substring(2,3)
			var a4=str_serial1.substring(3,4)
			var a5=str_serial1.substring(4,5)
			var a6=str_serial1.substring(5,6)
			var check_digit=a1*2+a2*3+a3*4+a4*5+a5*6+a6*7

			var b1=str_serial2.substring(0,1)
			var b2=str_serial2.substring(1,2)
			var b3=str_serial2.substring(2,3)
			var b4=str_serial2.substring(3,4)
			var b5=str_serial2.substring(4,5)
			var b6=str_serial2.substring(5,6)
			var b7=str_serial2.substring(6,7)
			var check_digit=check_digit+b1*8+b2*9+b3*2+b4*3+b5*4+b6*5

			check_digit = check_digit%11
			check_digit = 11 - check_digit
			check_digit = check_digit%10

		 if (check_digit != b7)
		 {
			return false;
		 }
		 else
		 {
			return true;
		 }
 		}
	}

//
function onCheck(theForm){

	if(theForm.id.value=="")
	{
		alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.id.focus();
		return false;
	}
	if(theForm.id.length<4 || theForm.id.length>8){
		alert("ID´Â 4ÀÚ¸®ÀÌ»ó 8ÀÚ¸®ÀÌÇÏ ¿µ¹®¼ýÀÚÁ¶ÇÕÀ¸·Î »ç¿ë°¡´ÉÇÕ´Ï´Ù.");
		theForm.id.focus();
		return false;
	}
	if(theForm.pwd.value=="")
	{
		alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.pwd.focus();
		return false;
	}
	if(theForm.pwd_re.value=="")
	{
		alert("ºñ¹Ð¹øÈ£ È®ÀÎÀ» ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.pwd_re.focus();
		return false;
	}
	if(theForm.pwd.value != theForm.pwd_re.value){
		alert("ºñ¹Ð¹øÈ£¿Í È®ÀÎÀÌ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù!");
		theForm.pwd_re.focus();
		return false;
	}
	if(theForm.name.value=="")
	{
		alert("ÀÌ¸§À» ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.name.focus();
		return false;
	}
	if(theForm.jumin1.value=="")
	{
		alert("ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.jumin1.focus();
		return false;
	}
	if(theForm.jumin2.value=="")
	{
		alert("ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.jumin2.focus();
		return false;
	}
	//Å×½ºÆ®¸¦ À§ÇØ ¸·¾Æ ³õÀ½
	/*if(!JuminCheck(theForm.jumin1.value,theForm.jumin2.value)){
		alert("ÁÖ¹Î¹øÈ£°¡ À¯È¿ÇÏÁö ¾Ê½À´Ï´Ù!");
		theForm.jumin1.focus();
		return false;
	}
	
	//040707 ¿äÃ»¿¡ ÀÇÇØ ¸·¾Æ ³õÀ½
	if (theForm.email.value=="") 
	{
		alert("E-mailÀ» ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.email.focus();
		return false;
	}
	if (!isEmail(theForm.email.value)) 
	{
		alert("E-mailÀÌ Çü½Ä¿¡ ¸ÂÁö ¾Ê½À´Ï´Ù.");
		theForm.email.value="";
		theForm.email.focus();
		return false;
	}
	*/

	if(theForm.zip1.value=="")
	{
		alert("ÀÚÅÃ ¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		return false;
	}
	if(theForm.addr.value=="")
	{
		alert("ÀÚÅÃÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.addr.focus();
		return false;
	}
	/*if(theForm.of_zip1.value=="")
	{
		alert("Á÷Àå ¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		return false;
	}
	if(theForm.of_addr.value=="")
	{ 
		alert("Á÷ÀåÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.of_addr.focus();
		return false;
	}*/
	if(theForm.tel1.value=="" || theForm.tel2.value=="" || theForm.tel3.value=="" )
	{
		alert("ÀÚÅÃÀüÈ­¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.tel1.focus();
		return false;
	}
	
	/*
	// 040707 ¿äÃ»(º¹Áö°ü) ¿¡ ÀÇÇØ ¸·¾Æ ³õÀ½
	if(theForm.pcs1.value=="" || theForm.pcs2.value=="" || theForm.pcs3.value=="" )
	{
		alert("ÈÞ´ëÆù ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.pcs1.focus();
		return false;
	}
	*/

	if(theForm.serve_check.checked==true){ 
		if(theForm.hope_serve.value=="")
		{
			alert("Èñ¸ÁºÀ»ç ºÐ·ù¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");  
			theForm.hope_serve.focus();
			return false; 
		} 
		if(theForm.serve_time.value=="")
		{
			alert("ºÀ»ç°¡´É±â°£À» ÀÔ·ÂÇÏ¼¼¿ä!");  
			theForm.serve_time.focus();
			return false; 
		} 
		if(!radioCheck(theForm.before_serve))
		{
			alert("ÀÌÀü ºÀ»ç¿©ºÎ À¯¹«¸¦ Ã¼Å©ÇÏ¼¼¿ä!");
			theForm.before_serve[0].focus();
			return false;
		}
		if(!radioCheck(theForm.marry))
		{
			alert("°áÈ¥À¯¹«¸¦ Ã¼Å©ÇÏ¼¼¿ä!");
			theForm.marry[0].focus();
			return false;
		}
		if(theForm.religion.value=="")
		{
			alert("Á¾±³¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
			theForm.religion.focus();
			return false;
		}
		if(theForm.of_tel1.value=="" || theForm.of_tel2.value=="" || theForm.of_tel3.value=="" )
		{
			alert("Á÷ÀåÀüÈ­¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
			theForm.of_tel1.focus();
			return false;
		}


	}

	//theForm.action="register_detail_ok.html";
	return true;
}

//°¡ÀÔÁß ºÀ»ç°ü·Ã ÀÔ·ÂºÎºÐ »ç¶óÁö°í ³ªÅ¸³ª´Â function
function bongsa(rform){
	if(rform.serve_check.checked==true){
		document.all.hs.style.display = "block";
		document.all.st.style.display = "block";
		document.all.ar.style.display = "block";
		document.all.bs.style.display = "block";
		document.all.etc1.style.display = "block";
		document.all.etc2.style.display = "block";
		document.all.etc3.style.display = "block";
		document.all.etc4.style.display = "block";
		document.all.etc5.style.display = "block";
		document.all.etc6.style.display = "block";
		rform.serve_check.value="Y";
	}else{
		document.all.hs.style.display = "none";
		document.all.st.style.display = "none";
		document.all.ar.style.display = "none";
		document.all.bs.style.display = "none";
		document.all.etc1.style.display = "none";
		document.all.etc2.style.display = "none";
		document.all.etc3.style.display = "none";
		document.all.etc4.style.display = "none";
		document.all.etc5.style.display = "none";
		document.all.etc6.style.display = "none";
		rform.serve_check.value="N";
	}
}

//
function idCheck(rform){
	if(rform.id.value==""){
		alert("ID¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		rform.id.focus();
		return ;
	}else{
		if(rform.id.value.length<4 || rform.id.value.length>8){
			alert("ID´Â 4ÀÚ¸®ÀÌ»ó 8ÀÚ¸®ÀÌÇÏ ¿µ¹®¼ýÀÚÁ¶ÇÕÀ¸·Î »ç¿ë°¡´ÉÇÕ´Ï´Ù.");
			rform.id.focus();
			return;
		}else{
			Win_scroll('/id_check.php?id='+rform.id.value,380,300);
		}
	}
}

function mas_Frm(theForm){

	if(theForm.donot_enter.value=="N"){
		alert("¾÷·Îµå ÁßÀÔ´Ï´Ù.ÇÑ¹ø¸¸ ´©¸£¼¼¿ä!");
		return false;
	}

	if(theForm.name.value=="")
	{
		alert("ÈÄ¿øÀÚÀÇ ¼ºÇÔÀ» ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.name.focus();
		return false;
	}
	if(theForm.zip1.value=="")
	{
		alert("¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		return false;
	}
	if(theForm.addr.value=="")
	{
		alert("ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.addr.focus();
		return false;
	}
	if(theForm.tel1.value=="")
	{
		alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.tel1.focus();
		return false;
	}
	if(theForm.tel2.value=="")
	{
		alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.tel2.focus();
		return false;
	}
	if(theForm.tel3.value=="")
	{
		alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.tel3.focus();
		return false;
	}
	if(theForm.hp1.value=="")
	{
		alert("ÇÚµåÆù ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.hp1.focus();
		return false;
	}
	if(theForm.hp2.value=="")
	{
		alert("ÇÚµåÆù ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.hp2.focus();
		return false;
	}
	if(theForm.hp3.value=="")
	{
		alert("ÇÚµåÆù ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.hp3.focus();
		return false;
	}
	if (theForm.email.value=="") 
	{
		alert("E-mailÀ» ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.email.focus();
		return false;
	}
	if (!isEmail(theForm.email.value)) 
	{
		alert("E-mailÀÌ Çü½Ä¿¡ ¸ÂÁö ¾Ê½À´Ï´Ù.");
		theForm.email.value="";
		theForm.email.focus();
		return false;
	}
	if(theForm.gift.value=="")
	{
		alert("ÈÄ¿ø¹°Ç°À» ±âÀÔÇØ ÁÖ¼¼¿ä.!");
		theForm.gift.focus();
		return false;
	}
	if(theForm.body.value=="")
	{
		alert("ÇÏ°í½ÍÀº ¸»¾¸À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä!");
		theForm.body.focus();
		return false;
	}
	theForm.donot_enter.value="N";
	return true;	
}


function aid_Frm(theForm){
	if(theForm.donot_enter.value=="N"){
		alert("¾÷·Îµå ÁßÀÔ´Ï´Ù.ÇÑ¹ø¸¸ ´©¸£¼¼¿ä!");
		return false;
	}

	if(theForm.name.value=="")
	{
		alert("ÈÄ¿øÀÚÀÇ ¼ºÇÔÀ» ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.name.focus();
		return false;
	}
	if(theForm.zip1.value=="")
	{
		alert("¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		return false;
	}
	if(theForm.addr.value=="")
	{
		alert("ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.addr.focus();
		return false;
	}
	if(theForm.tel1.value=="")
	{
		alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.tel1.focus();
		return false;
	}
	if(theForm.tel2.value=="")
	{
		alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.tel2.focus();
		return false;
	}
	if(theForm.tel3.value=="")
	{
		alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.tel3.focus();
		return false;
	}
	if(theForm.hp1.value=="")
	{
		alert("ÇÚµåÆù ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.hp1.focus();
		return false;
	}
	if(theForm.hp2.value=="")
	{
		alert("ÇÚµåÆù ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.hp2.focus();
		return false;
	}
	if(theForm.hp3.value=="")
	{
		alert("ÇÚµåÆù ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.hp3.focus();
		return false;
	}
	if (theForm.email.value=="") 
	{
		alert("E-mailÀ» ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.email.focus();
		return false;
	}
	if (!isEmail(theForm.email.value)) 
	{
		alert("E-mailÀÌ Çü½Ä¿¡ ¸ÂÁö ¾Ê½À´Ï´Ù.");
		theForm.email.value="";
		theForm.email.focus();
		return false;
	}

	if(theForm.supp_pay.value=="")
	{
		alert("ÈÄ¿ø±Ý¾×À» ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.supp_pay.focus();
		return false;
	}

//	if(!(theForm.giro.checked==true || theForm.auto_e.checked==true || theForm.tong_e.checked==true) )
	if(!(theForm.giro.checked==true || theForm.auto_e.checked==true ) )
	{
		alert("³³ÀÔ¹æ¹ýÀ» ¼±ÅÃÇØ ÁÖ½Ê½Ã¿ä!");
		theForm.giro.focus();
		return false;
	}

	if(theForm.auto_e.checked==true){
		if(theForm.bank.value=="")
		{
			alert("ÀºÇà¸íÀ» ÀÔ·ÂÇÏ¼¼¿ä!");
			theForm.bank.focus(); 
			return false;
		}
		if(theForm.tong_num.value=="")
		{
			alert("°ÔÁÂ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
			theForm.tong_num.focus();
			return false;
		}
		if(theForm.tong_name.value=="")
		{
			alert("¿¹±ÝÁÖ¸íÀ» ÀÔ·ÂÇÏ¼¼¿ä!");
			theForm.tong_name.focus();
			return false;
		}
		if(theForm.jumin1.value=="")
		{
			alert("ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
			theForm.jumin1.focus();
			return false;
		}
		if(theForm.jumin2.value=="")
		{
			alert("ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
			theForm.jumin2.focus();
			return false;
		}
		if(!radioCheck(theForm.trans_data))
		{
			alert("ÀÌÃ¼ÀÏÀ» Ã¼Å©ÇÏ¼¼¿ä!");
			theForm.trans_data[0].focus();
			return false;
		}
	}

	if(theForm.body.value=="")
	{
		alert("ÇÏ°í½ÍÀº ¸»¾¸À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä!");
		theForm.body.focus();
		return false;
	}
	theForm.donot_enter.value="N";
	return true;	
}


function regist_Frm(theForm){
	theForm.action = "register.php";
	return true;
}

function back_Frm(theForm){
	theForm.action = "register_detail.html";
	theForm.submit();
}

function toggleMenu(currMenu) { 
                if (document.all) { 
                                thisMenu = eval("document.all." + currMenu + ".style") 
                                if (thisMenu.display == "block") { 
                                                thisMenu.display = "none" 
                                } 
                                else { 
                                                thisMenu.display = "block" 
                                } 
                                return false 
                } 
                else { 
                                return true 
                } 
}

function alreadyB(){
	alert('ÀÌ¹Ì ºÀ»ç½ÅÃ»ÇÏ¼Ì½À´Ï´Ù');
	location.href="/help/cat.html?left_flag=help&code=family_hope";
}

//textbox¸¦ ÀÏÁ¤±æÀÌ¸¸Å­ Ã¤¿ì¸é ´ÙÀ½ Ä­À¸·Î focus°¡ ÀÌµ¿ÇÏ´Â ÇÔ¼ö ---½ÅÈ£Á¤   2004.1.27  ½ÃÀÛ
	var isNN = (navigator.appName.indexOf("Netscape")!=-1);

function autoTab(input,len, e) {
var keyCode = (isNN) ? e.which : e.keyCode; 
var filter = (isNN) ? [0,8,9] : [0,8,9,16,17,18,37,38,39,40,46]; 
if(input.value.length >= len && !containsElement(filter,keyCode)) {
input.value = input.value.slice(0, len);
input.form[(getIndex(input)+1) % input.form.length].focus();
}
}

function containsElement(arr, ele) {
var found = false, index = 0;
while(!found && index < arr.length)
if(arr[index] == ele)
found = true;
else
index++;
return found;
}

function getIndex(input) {
var index = -1, i = 0, found = false;
while (i < input.form.length && index == -1)
if (input.form[i] == input)index = i;
else i++;
return index;
return true;
}
//textbox¸¦ ÀÏÁ¤±æÀÌ¸¸Å­ Ã¤¿ì¸é ´ÙÀ½ Ä­À¸·Î focus°¡ ÀÌµ¿ÇÏ´Â ÇÔ¼ö ---½ÅÈ£Á¤   2004.1.27  ½ÃÀÛ


function onCheckAdm(theForm){

	if(theForm.pwd.value ==""){
			alert("ºñ¹Ð¹øÈ£¸¦  ¹Ýµå½Ã ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.");
			theForm.pwd.focus();
			return false;
	}                                                     
	if(theForm.new_pwd.value !=""){
		if(theForm.new_repwd.value ==""){
			alert("»õ ºñ¹Ð¹øÈ£È®ÀÎ¸¦  ¹Ýµå½Ã ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.");
			theForm.new_repwd.focus();
			return false;
		}
		if(theForm.new_pwd.value != theForm.new_repwd.value){
			alert("»õ ºñ¹Ð¹øÈ£°¡ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù.");
			theForm.new_pwd.value="";
			theForm.new_repwd.value="";
			theForm.new_pwd.focus();
			return false;
		}
	}

	
	if(theForm.name.value=="")
	{
		alert("ÀÌ¸§À» ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.name.focus();
		return false;
	}
	if(theForm.jumin1.value=="")
	{
		alert("ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.jumin1.focus();
		return false;
	}
	if(theForm.jumin2.value=="")
	{
		alert("ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.jumin2.focus();
		return false;
	}
	//Å×½ºÆ®¸¦ À§ÇØ ¸·¾Æ ³õÀ½
	/*if(!JuminCheck(theForm.jumin1.value,theForm.jumin2.value)){
		alert("ÁÖ¹Î¹øÈ£°¡ À¯È¿ÇÏÁö ¾Ê½À´Ï´Ù!");
		theForm.jumin1.focus();
		return false;
	}
	*/
	if (theForm.email.value=="") 
	{
		alert("E-mailÀ» ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.email.focus();
		return false;
	}
	if (!isEmail(theForm.email.value)) 
	{
		alert("E-mailÀÌ Çü½Ä¿¡ ¸ÂÁö ¾Ê½À´Ï´Ù.");
		theForm.email.value="";
		theForm.email.focus();
		return false;
	}

	if(theForm.zip1.value=="")
	{
		alert("ÀÚÅÃ ¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		return false;
	}
	if(theForm.addr.value=="")
	{
		alert("ÀÚÅÃÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.addr.focus();
		return false;
	}
	/*if(theForm.of_zip1.value=="")
	{
		alert("Á÷Àå ¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		return false;
	}
	if(theForm.of_addr.value=="")
	{ 
		alert("Á÷ÀåÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.of_addr.focus();
		return false;
	}*/
	if(theForm.tel1.value=="" || theForm.tel2.value=="" || theForm.tel3.value=="" )
	{
		alert("ÀÚÅÃÀüÈ­¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.tel1.focus();
		return false;
	}
	
	if(theForm.pcs1.value=="" || theForm.pcs2.value=="" || theForm.pcs3.value=="" )
	{
		alert("ÈÞ´ëÆù ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.pcs1.focus();
		return false;
	}
	if(theForm.serve_check.checked==true){ 
		if(theForm.hope_serve.value=="")
		{
			alert("Èñ¸ÁºÀ»ç ºÐ·ù¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");  
			theForm.hope_serve.focus();
			return false; 
		} 
		if(theForm.serve_time.value=="")
		{
			alert("ºÀ»ç°¡´É±â°£À» ÀÔ·ÂÇÏ¼¼¿ä!");  
			theForm.serve_time.focus();
			return false; 
		} 
		if(!radioCheck(theForm.before_serve))
		{
			alert("ÀÌÀü ºÀ»ç¿©ºÎ À¯¹«¸¦ Ã¼Å©ÇÏ¼¼¿ä!");
			theForm.before_serve[0].focus();
			return false;
		}
		if(!radioCheck(theForm.marry))
		{
			alert("°áÈ¥À¯¹«¸¦ Ã¼Å©ÇÏ¼¼¿ä!");
			theForm.marry[0].focus();
			return false;
		}
		if(theForm.religion.value=="")
		{
			alert("Á¾±³¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
			theForm.religion.focus();
			return false;
		}
		if(theForm.of_tel1.value=="" || theForm.of_tel2.value=="" || theForm.of_tel3.value=="" )
		{
			alert("Á÷ÀåÀüÈ­¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
			theForm.of_tel1.focus();
			return false;
		}


	}

	//theForm.action="register_detail_ok.html";
	return true;
}


// ºó°ª °Ë»ç (¸Þ¼¼Áö Ãâ·Â / °ø¹éÀ» Á¦¿ÜÇÏ°í ºó°ªÀÌ¸é true ¾Æ´Ï¸é false)
function chkBlank_msg(box, msg) {
	var valid = box.value.replace(/\s/gi,"");
	if (valid=="") {
		if (!msg) msg = "ºó °ªÀÔ´Ï´Ù. °ªÀ» ÀÔ·ÂÇÏ¼¼¿ä.";
		alert(msg); box.focus();
		return true;
	}
	return false;	
}