
// ÀÔ·Âº° Ãâ·Â

function show_form(gubun) {

   if (gubun == 'a') {
       gubun_a.style.display = 'block';
       gubun_b.style.display = 'none';
   }
   else {
       gubun_a.style.display = 'none';
       gubun_b.style.display = 'block';
   }

}


// È¸¿ø ÀÔ·ÂÆû Ã¼Å©

function jsend(gubun) {

  if (gubun == 'a') {

      if (IsEmpty(bform1.cname_a.value) == true) {
          alert("¼º¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
          bform1.cname_a.focus();
          return false;  
      }

      if (IsEmpty(bform1.cid_a.value) == true) {
          alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
          bform1.cid_a.focus();
          return false;  
      }

      if (IsEmpty(bform1.pwd_a.value) == true) {
          alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·Â ÇÏ¼¼¿ä.");
          bform1.pwd_a.focus();
          return false;  
      }
  } 
  else  {

      if (IsEmpty(bform1.cname_b.value) == true) {
          alert("¼º¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
          bform1.cname_b.focus();
          return false;  
      }

      if (IsEmpty(bform1.cid_b.value) == true) {
          alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
          bform1.cid_b.focus();
          return false;  
      }

      if (IsEmpty(bform1.pwd_b.value) == true) {
          alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·Â ÇÏ¼¼¿ä.");
          bform1.pwd_b.focus();
          return false;  
      }
  } 


  if (gubun == 'a') {
      bform1.action = "join_prev_auth_a.asp";
      bform1.submit();
  } 
  else {
      bform1.action = "join_prev_auth_b.asp";
      bform1.submit();
  } 

}