
	/* 7. ÀÚµ¿ Tab */
	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;
	}
	/* ÇÔ¼ö ³¡ */


function sermon_view(ref, db, Num, width, height, toolbar, menubar, statusbar, scrollbar, resizable) {

  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
	window.open(ref+'?DB='+db+'&Num='+Num , 'view','left=0,top=0, width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}


function mediaWindow(ref, db, Num, width, height, toolbar, menubar, statusbar, scrollbar, resizable) {

  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
	window.open(ref+'?DB='+db+'&Num='+Num , 'view','left=0,top=0, width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}


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];}
}


///////////////////////////////////////////////
//                                           //
//  Created by   wooraemi                    //
//  Annotated by wooraemi                    //
//  E-Mail       wooraemi@hanmail.net        //
//  Web Site     http://www.happyscript.net  //
//                                           //
///////////////////////////////////////////////

var old='';

function menu(name)
{
submenu=eval("submenu_"+name+".style");
		if(old!=submenu)
	{
		if(old!='')
		{
			old.display='none';
		}
		submenu.display='block';
		old=submenu;
	}
	else
	{
		submenu.display='none';
		old='';
	}
}


// ¿ìÆí¹øÈ£ °Ë»ö
	function Zip_Search(ref, zip_mode) {
		var window_left = (screen.width-640)/2;
		var window_top = (screen.height-480)/2;
		window.open(ref+"?zip_mode="+zip_mode,"checkIDWin",'width=450,height=400,status=no,scrollbars=yes,top=' + window_top + ',left=' + window_left + '');
}

function photoWindow(ref, width, height, toolbar, menubar, statusbar, scrollbar, resizable) {
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';

	window.open(ref, 'View','left=0,top=0, width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

function Error(Message) {
//ÀÔ·ÂÇÑ Á¤º¸°¡ Æ²¸®¸é ÀÌÀü ÆäÀÌÁö·Î µ¹¾Æº¸³»´Â ±â´É
	window.alert(Message)
	history.go(-1)
	exit;
}

function Pay_Check(form)
{
	if(!form.user_id.value)
	{
		alert('¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		form.user_id.focus();
		return false;
	}
	if (hangul_chk(form.user_id.value) != true ){
		alert("°ø¹é ¶Ç´Â ÇÑ±ÛÀº ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.");
		form.user_id.focus();
		form.user_id.value='';
	 	return false;
	}
	if(!form.OrderName.value)
	{
		alert('ÀÌ¸§ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		form.OrderName.focus();
		return false;
	}
	if (emptyForm(form.OrderName)){
		alert("°ø¹éÀº ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.");
		form.OrderName.focus();
	 	return false;
	}
	if(!form.email.value)
	{
		alert('ÀÌ¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		form.email.focus();
		return false;
	}
	if (email_chk(form.email.value) != true ){
		alert("°ø¹é ¶Ç´Â ÇÑ±ÛÀº ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.");
		form.email.focus();
		form.email.value='';
	 	return false;
	}
	if(!form.phone1.value)
	{
		alert('ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		form.phone1.focus();
		return false;
	}
	if (hangul_chk(form.phone1.value) != true ){
		alert("°ø¹é ¶Ç´Â ÇÑ±ÛÀº ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.");
		form.phone1.focus();
	 	return false;
	}
	if(!form.phone2.value)
	{
		alert('ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		form.phone2.focus();
		return false;
	}
	if (hangul_chk(form.phone2.value) != true ){
		alert("°ø¹é ¶Ç´Â ÇÑ±ÛÀº ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.");
		form.phone2.focus();
		form.phone2.value='';
	 	return false;
	}
	if(!form.phone3.value)
	{
		alert('ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		form.phone3.focus();
		return false;
	}
	if (hangul_chk(form.phone3.value) != true ){
		alert("°ø¹é ¶Ç´Â ÇÑ±ÛÀº ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.");
		form.phone3.focus();
		form.phone3.value='';
	 	return false;
	}
	if(!form.mobile1.value)
	{
		alert('ÇÚµåÆù ¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		form.mobile1.focus();
		return false;
	}
	if (hangul_chk(form.mobile1.value) != true ){
		alert("°ø¹é ¶Ç´Â ÇÑ±ÛÀº ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.");
		form.mobile1.focus();
	 	return false;
	}
	if(!form.mobile2.value)
	{
		alert('ÇÚµåÆù ¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		form.mobile2.focus();
		return false;
	}
	if (hangul_chk(form.mobile2.value) != true ){
		alert("°ø¹é ¶Ç´Â ÇÑ±ÛÀº ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.");
		form.mobile2.focus();
		form.mobile2.value='';
	 	return false;
	}
	if(!form.mobile3.value)
	{
		alert('ÇÚµåÆù ¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		form.mobile3.focus();
		return false;
	}
	if (hangul_chk(form.mobile3.value) != true ){
		alert("°ø¹é ¶Ç´Â ÇÑ±ÛÀº ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.");
		form.mobile3.focus();
		form.mobile3.value='';
	 	return false;
	}
	if(!form.addr.value)
	{
		alert('ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		form.addr.focus();
		return false;
	}
	if (emptyForm(form.addr)){
		alert("°ø¹éÀº ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.");
		form.addr.focus();
	 	return false;
	}
}
function Login_Check(Login)
{
	if(!Login.user_id.value)
	{
		alert('¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		Login.user_id.focus();
		return false;
	}
	if (hangul_chk(Login.user_id.value) != true ){
		alert("°ø¹é ¶Ç´Â ÇÑ±ÛÀº ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.");
		Login.user_id.focus();
		Login.user_id.value='';
	 	return false;
	}
	if (emptyForm(Login.user_id)) {
		alert('°ø¹éÀº ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù. ');
		Login.user_id.focus();
		return false;
	}
	if(!Login.user_pass.value)
	{
		alert('ÆÐ½º¿öµå¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		Login.user_pass.focus();
		return false;
	}
	if (emptyForm(Login.user_pass)) {
		alert('°ø¹éÀº ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù. ');
		Login.user_pass.focus();
		return false;
	}

}

function han_chk(word) {
	var str = "1234567890";
	
	for (i=0; i< word.length; i++)
	{
		idcheck = word.charAt(i);
		
		for ( j = 0 ;  j < str.length ; j++){
		
			if (idcheck == str.charAt(j)) break;
				
     			if (j+1 == str.length){
   				return false;
     			}
     		}
     	}
     	return true;
}

function emptyForm(text) {
	if (text.value.length==0)
	return true;
	for (var i=0; i<text.value.length; i++) {
		var ch=text.value.charAt(i);
		if (ch!=' ' && ch!='\t')
		return false;
	}
return true;
}

function Join_Check1(Join1)
{
	if(!Join1.user_name.value)
	{
		alert('ÀÌ¸§À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		Join1.user_name.focus();
		return false;
	}
	if (emptyForm(Join1.user_name)) {
		alert('°ø¹éÀº ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù. ');
		Join1.user_name.focus();
		return false;
	}
	if(!Join1.reg_no1.value)
	{
		alert('ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		Join1.reg_no1.focus();
		return false;
	}
	if (han_chk(Join1.reg_no1.value) != true ) {
		alert('ÁÖ¹Î¹øÈ£´Â ¼ýÀÚ·Î¸¸ ÀÔ·ÂÇØÁÖ¼¼¿ä.');
		Join1.reg_no1.value='';
		Join1.reg_no1.focus();
		return false;
	}
	if (emptyForm(Join1.reg_no1)) {
		alert('°ø¹éÀº ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù. ');
		Join1.reg_no1.focus();
		return false;
	}
	if(!Join1.reg_no2.value)
	{
		alert('ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		Join1.reg_no2.focus();
		return false;
	}
	if (han_chk(Join1.reg_no2.value) != true ) {
		alert('ÁÖ¹Î¹øÈ£´Â ¼ýÀÚ·Î¸¸ ÀÔ·ÂÇØÁÖ¼¼¿ä.');
		Join1.reg_no2.value='';
		Join1.reg_no2.focus();
		return false;
	}
	if (emptyForm(Join1.reg_no2)) {
		alert('°ø¹éÀº ÀÔ·ÂÇÏ½Ç ¼ö ¾ø½À´Ï´Ù. ');
		Join1.reg_no2.focus();
		return false;
	}

	// ÁÖ¹Îµî·Ï¹øÈ£ Ã¼Å© 	
	var chk =0
	var yy = Join1.reg_no1.value.substring(0,2)
	var mm = Join1.reg_no1.value.substring(2,4)
	var dd = Join1.reg_no1.value.substring(4,6)
	var Sex = Join1.reg_no2.value.substring(0,1)

 	if ((Join1.reg_no1.value.length!=6)||(yy <25||mm <1||mm>12||dd<1)){
    		alert ("Àß¸øµÈ ÁÖ¹Îµî·Ï¹øÈ£ÀÔ´Ï´Ù. ÀçÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿À.");
		Join1.reg_no1.value='';
    		Join1.reg_no1.focus();
    		return false;
  	}

  	if ((Sex != 1 && Sex !=2 )||(Join1.reg_no2.value.length != 7 )){
    		alert ("Àß¸øµÈ ÁÖ¹Îµî·Ï¹øÈ£ÀÔ´Ï´Ù. ÀçÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿À.");
		Join1.reg_no2.value='';
    		Join1.reg_no2.focus();
    		return false;
  	}  
	
  	for (var i = 0; i <=5 ; i++){ 
		chk = chk + ((i%8+2) * parseInt(Join1.reg_no1.value.substring(i,i+1)))
 	}

  	for (var i = 6; i <=11 ; i++){ 
        	chk = chk + ((i%8+2) * parseInt(Join1.reg_no2.value.substring(i-6,i-5)))
 	}

  	chk = 11 - (chk %11)
  	chk = chk % 10

  	if (chk != Join1.reg_no2.value.substring(6,7)){
    		alert ("À¯È¿ÇÏÁö ¾ÊÀº ÁÖ¹Îµî·Ï¹øÈ£ÀÔ´Ï´Ù.");
		Join1.reg_no1.value='';
		Join1.reg_no2.value='';
    		Join1.reg_no1.focus();
    		return false;
  	}
	// ÁÖ¹Îµî·Ï¹øÈ£ Ã¼Å© ³¡
	Join1.submit();

}


// Áßº¹ ¾ÆÀÌµð Ã¼Å©
function ID_chk(ref) {
	var ID = eval(Join.user_id);


		ref = ref + "?user_id=" + Join.user_id.value;
		var window_left = (screen.width-640)/2;
		var window_top = (screen.height-480)/2;
		window.open(ref,"IDcheck",'width=350,height=230,status=no,top=' + window_top + ',left=' + window_left + '');
}

// ÇÑ±Û ÀÔ·Â °Ë»ö
function hangul_chk(word) {
	var str = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890_";
	
	for (i=0; i< word.length; i++)
	{
		idcheck = word.charAt(i);
		
		for ( j = 0 ;  j < str.length ; j++){
		
			if (idcheck == str.charAt(j)) break;
				
     			if (j+1 == str.length){
   				return false;
     			}
     		}
     	}
     	return true;
}

// ÇÑ±Û ÀÔ·Â °Ë»ö
function email_chk(word) {
	var str = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890-._@";
	
	for (i=0; i< word.length; i++)
	{
		idcheck = word.charAt(i);
		
		for ( j = 0 ;  j < str.length ; j++){
		
			if (idcheck == str.charAt(j)) break;
				
     			if (j+1 == str.length){
   				return false;
     			}
     		}
     	}
     	return true;
}

////////////////////////////////// »ýÀÏ ÀÚµ¿¼³Á¤/////////////////////////////////////////
function setbirth() {
  no = document.Join.reg_no1.value;
  y = '19' + no.substr(0,2);
  m = parseInt(no.substr(2,2), 10) ;
  d = parseInt(no.substr(4,2), 10) ;
 
 for(i = 0; i < document.Join.birth_year.length; i++) {
    if(document.Join.birth_year.options[i].value == y) {
      document.Join.birth_year.options[i].selected = true;
    }
  }

  for(i = 0; i < document.Join.birth_month.length; i++) {
    if(document.Join.birth_month.options[i].value == m) {
      document.Join.birth_month.options[i].selected = true;
    }
  }

  for(i = 0; i < document.Join.birth_day.length; i++) {
    if(document.Join.birth_day.options[i].value == d) {
      document.Join.birth_day.options[i].selected = true;
    }
  }
}

function setbirth2(reg_no1) {
  no = reg_no1;
  y = '19' + no.substr(0,2);
  m = parseInt(no.substr(2,2), 10) ;
  d = parseInt(no.substr(4,2), 10) ;
 
 for(i = 0; i < document.Join.birth_year.length; i++) {
    if(document.Join.birth_year.options[i].value == y) {
      document.Join.birth_year.options[i].selected = true;
    }
  }

  for(i = 0; i < document.Join.birth_month.length; i++) {
    if(document.Join.birth_month.options[i].value == m) {
      document.Join.birth_month.options[i].selected = true;
    }
  }

  for(i = 0; i < document.Join.birth_day.length; i++) {
    if(document.Join.birth_day.options[i].value == d) {
      document.Join.birth_day.options[i].selected = true;
    }
  }
}

//////////////////¾ÆÀÌµð ÆÐ½º¿öµå Ã£±â///////////////////
function CheckText(url){
	//document.Login.action = url;
	//document.Login.submit();
	ref = url;
	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
	window.open(ref,"passwd",'width=450,height=250,status=no,top=' + window_top + ',left=' + window_left + '');
	return;
}

// ÀÔ·ÂÇÑ ÀÌ¸ÞÀÏÀÌ Çü½Ä¿¡ ¸Â´Â Á¤È®ÇÑ ÀÌ¸ÞÀÏÀÎÁö ÆÇ´Ü
function Email_Check(word) {
	return (ereg("(^[_0-9a-zA-Z-]+(\.[_0-9a-zA-Z-]+)*@[0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*$", word));
}

///////////////////////////////////////////////////////
function CheckJoin(Join){ 

	if (Join.user_id.value==""){
		alert("ID ¸¦ ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿ä.");
		Join.user_id.focus();
		return false;
	}
	if (!Join.user_id_check.value){
		alert("¾ÆÀÌµð Ã¼Å©¸¦ ÇØÁÖ¼¼¿ä.");
		Join.user_id.focus();
		return false;
	}
	if (hangul_chk(Join.user_id.value) != true ){
		alert("ID¿¡ ÇÑ±ÛÀÌ³ª ¿©¹éÀº »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.");
		Join.user_id.focus();
	 	return false;
	}
	if (Join.user_id.value.length < 4 || Join.user_id.value.length > 10) {
		alert("ID´Â 4~10ÀÚ¸®ÀÔ´Ï´Ù.");
		Join.user_id.focus();
		return false;
	}

	if (!Join.user_pass.value){
		alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿ä.");
		Join.user_pass.focus();
		return false;
	}
	if (hangul_chk(Join.user_pass.value) != true ){
		alert("ºñ¹Ð¹øÈ£¿¡ ÇÑ±ÛÀÌ³ª ¿©¹éÀº »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.");
		Join.user_pass.focus();
	 	return false;
	}
	if (Join.user_pass.value.length < 4 || Join.user_pass.value.length > 10) {
		alert("ºñ¹Ð¹øÈ£´Â 4~10ÀÚ¸®ÀÔ´Ï´Ù.");
		Join.user_pass.focus();
		return false;
	}
	if (Join.user_pass2.value==""){
		alert("ºñ¹Ð¹øÈ£ È®ÀÎÀ» ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿ä.");
		Join.user_pass2.focus();
		return false;
	}
	if (Join.user_pass.value!==Join.user_pass2.value){
		alert("ºñ¹Ð¹øÈ£°¡ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿ä.");
		Join.user_pass.focus();
		return false;
	}
	if (Join.user_name.value==""){
		alert("ÀÌ¸§À» ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿ä.");
		Join.user_name.focus();
		return false;
	}
   	for (var k = 0; k <= (Join.user_name.value.length - 1); k++)
         	if (Join.user_name.value.indexOf(" ") >= 0 ){
             		alert ("¼º¸íÀ» ºóÄ­¾øÀÌ ºÙ¿©¼­ ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿À");
             		Join.user_name.focus();
             		return false;
           	} 


	// ÁÖ¹Îµî·Ï¹øÈ£ Ã¼Å© 	
	var chk =0
	var yy = Join.reg_no1.value.substring(0,2)
	var mm = Join.reg_no1.value.substring(2,4)
	var dd = Join.reg_no1.value.substring(4,6)
	var Sex = Join.reg_no2.value.substring(0,1)

 	if ((Join.reg_no1.value.length!=6)||(yy <25||mm <1||mm>12||dd<1)){
    		alert ("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ¹Ù·Î ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿À.");
    		Join.reg_no1.focus();
    		return false;
  	}

  	if ((Sex != 1 && Sex !=2 )||(Join.reg_no2.value.length != 7 )){
    		alert ("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ¹Ù·Î ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿À.");
    		Join.reg_no2.focus();
    		return false;
  	}   
	
  	for (var i = 0; i <=5 ; i++){ 
		chk = chk + ((i%8+2) * parseInt(Join.reg_no1.value.substring(i,i+1)))
 	}

  	for (var i = 6; i <=11 ; i++){ 
        	chk = chk + ((i%8+2) * parseInt(Join.reg_no2.value.substring(i-6,i-5)))
 	}

  	chk = 11 - (chk %11)
  	chk = chk % 10

  	if (chk != Join.reg_no2.value.substring(6,7)){
    		alert ("À¯È¿ÇÏÁö ¾ÊÀº ÁÖ¹Îµî·Ï¹øÈ£ÀÔ´Ï´Ù.");
    		Join.reg_no1.focus();
    		return false;
  	}
	// ÁÖ¹Îµî·Ï¹øÈ£ Ã¼Å© ³¡

	if (Join.email.value == ""){
		alert("ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		Join.email.focus();
	 	return false;
	}
	if (email_chk(Join.email.value) != true ){
		alert("ÀÌ¸ÞÀÏ ÁÖ¼Ò¿¡ ÇÑ±ÛÀÌ³ª ¿©¹éÀº »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.");
		Join.email.focus();
	 	return false;
	}
	// ÀÌ¸ÞÀÏ Ã¼Å©
	if (Email_Check(Join.email.value) != true) {
		alert('Àß¸øµÈ Çü½ÄÀÇ ÀÌ¸ÞÀÏ ÁÖ¼ÒÀÔ´Ï´Ù. \n\nÁ¤È®ÇÑ ÀÌ¸ÞÀÏ ÁÖ¼Ò¸¦ Àû¾îÁÖ¼¼¿ä.');
		Join.email.focus();
		return false;
	}

	if (Join.phone1.value==""){
		alert("¿¬¶ôÃ³¸¦ ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù.");
		Join.phone1.focus();
		return false;
	}
	if (Join.phone2.value==""){
		alert("¿¬¶ôÃ³¸¦ ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù.");
		Join.phone2.focus();
		return false;
	}
	if (Join.phone3.value==""){
		alert("¿¬¶ôÃ³¸¦ ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù.");
		Join.phone3.focus();
		return false;
	}

}


function CheckMyInfo(MyInfo){ 


	if (MyInfo.user_pass.value!==MyInfo.user_pass2.value){
		alert("ºñ¹Ð¹øÈ£°¡ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿ä.");
		MyInfo.user_pass.focus();
		return false;
	}

	if (MyInfo.user_name.value==""){
		alert("ÀÌ¸§À» ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿ä.");
		MyInfo.user_name.focus();
		return false;
	}
   	for (var k = 0; k <= (MyInfo.user_name.value.length - 1); k++){
         	if (MyInfo.user_name.value.indexOf(" ") >= 0 ){
             		alert ("¼º¸íÀ» ºóÄ­¾øÀÌ ºÙ¿©¼­ ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿À");
             		MyInfo.user_name.focus();
             		return (false);
           	} 
	}
	if (MyInfo.email.value == ""){
		alert("ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		MyInfo.email.focus();
	 	return false;
	}
	if (email_chk(MyInfo.email.value) != true ){
		alert("ÀÌ¸ÞÀÏ ÁÖ¼Ò¿¡ ÇÑ±ÛÀÌ³ª ¿©¹éÀº »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.");
		MyInfo.email.value='';
		MyInfo.email.focus();
	 	return false;
	}
	if (email_chk(MyInfo.email.value) != true ){
		alert("ÀÌ¸ÞÀÏ ÁÖ¼Ò¿¡ ÇÑ±ÛÀÌ³ª ¿©¹éÀº »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù.");
		MyInfo.email.focus();
	 	return false;
	}
	if (MyInfo.phone1.value==""){
		alert("¿¬¶ôÃ³¸¦ ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù.");
		MyInfo.phone1.focus();
		return false;
	}
	if (MyInfo.phone2.value==""){
		alert("¿¬¶ôÃ³¸¦ ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù.");
		MyInfo.phone2.focus();
		return false;
	}
	if (MyInfo.phone3.value==""){
		alert("¿¬¶ôÃ³¸¦ ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù.");
		MyInfo.phone3.focus();
		return false;
	}

}


