//----------------------- ¼Ò½ÄÁö ÀÔ·Â ----------------------------
function Hosp_send(theForm)
{
	if(!theForm.hosp_name.value){
		alert("º´¿ø¸íÀ» ÀÔ·ÂÇØ¾ßÇÕ´Ï´Ù!");
		theForm.hosp_name.focus();
		return(false);
	}
	if(!theForm.chief_name.value){
		alert("¿øÀå¼±»ý´ÔÀ» ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù!");
		theForm.chief_name.focus();
		return false;
	}
	if(theForm.chief_mail.value != ""){
		if (!isEmail(theForm.chief_mail.value)){
			alert("Á¤È®ÇÑ e-mailÇü½ÄÀÌ ÇÊ¿äÇÕ´Ï´Ù, È®ÀÎÈÄ ´Ù½Ã ÀÔ·Â ¹Ù¶ø´Ï´Ù!");
			theForm.chief_mail.value="";
			theForm.chief_mail.focus();
			return false;
		}
	}
	if(!theForm.zip1.value){
		alert("º´¿ø¿ìÆí¹øÈ£¸¦ ¹Ýµå½Ã ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù!");
		theForm.zip1.focus();
		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 || theForm.tel2.value == 0){
		alert("º´¿øÀüÈ­¹øÈ£¸¦ ¹Ýµå½Ã ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.");
		theForm.tel2.focus();
		return false;
	}else{
		if(!Check_Tel(theForm.tel2,"3")) return false;
	}
	if(!theForm.tel3.value || theForm.tel3.value == 0){
		alert("º´¿øÀüÈ­¹øÈ£¸¦ ¹Ýµå½Ã ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.");
		theForm.tel3.focus();
		return false;
	}else{
		if(!Check_Tel(theForm.tel3,"4")) return false;
	}
	if(theForm.fax2.value != ""){
		if(!Check_Tel(theForm.fax2,"3")) return false;
	}
	if(theForm.fax3.value != ""){
		if(!Check_Tel(theForm.fax3,"4")) return false;
	}
/*
	if(!radioCheck(theForm.gubun)){
		alert("º´¿ø±¸ºÐÀ» ¹Ýµå½Ã ¼±ÅÃÇØ¾ß ÇÕ´Ï´Ù!");
		theForm.gubun[0].focus();
		return false;
	}
*/
	if(!theForm.body.value){
		alert("º´¿ø¼Ò°³¸¦ ¹Ýµå½Ã ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù!");
		theForm.body.focus();
		return false;
	}
	if(theForm.data_file.value){
		if(formatChk(theForm.data_file) != "jpg" && formatChk(theForm.data_file) != "gif"){
			alert("Áö¿øµÇÁö ¾Ê´Â Æ÷¹îÀÔ´Ï´Ù.\n\n±ÇÀåµÇ´Â ÆÄÀÏ Æ÷¸äÀº jpg ¶Ç´Â gif ÀÔ´Ï´Ù.");
			theForm.data_file.focus();
			return false;
		}
	}
	if(!theForm.name.value){
		alert("µî·ÏÀÚ ¼º¸íÀ» ¹Ýµå½Ã ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù!");
		theForm.name.focus();
		return false;
	}
	if(!theForm.email.value){
		alert("µî·ÏÀÚ ÀÌ¸ÞÀÏÀ» ¹Ýµå½Ã ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù!");
		theForm.email.focus();
		return false;
	}else{
		if (!isEmail(theForm.email.value)){
			alert("Á¤È®ÇÑ e-mailÇü½ÄÀÌ ÇÊ¿äÇÕ´Ï´Ù, È®ÀÎÈÄ ´Ù½Ã ÀÔ·Â ¹Ù¶ø´Ï´Ù!");
			theForm.email.value="";
			theForm.email.focus();
			return false;
		}
	}
	if(typeof(theForm.pwd) == 'object')
	{
		if(!theForm.pwd.value){
			alert("ºñ¹Ð¹øÈ£¸¦ ¹Ýµå½Ã ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù!");
			theForm.pwd.focus();
			return false;
		}
	}
}

//----------------------- ÀÚÅÃ ¿ìÆí¹øÈ£/ÁÖ¼Ò ÀÔ·Â ----------------------------
function put_post2(zip1,zip2,kjuso,ejuso)
{
	theForm = document.Hosp_frm;
	theForm.zip1.value = zip1 ;
	theForm.zip2.value = zip2 ;
	theForm.addr.focus();
	theForm.addr.value = kjuso ;
	//theForm.eaddr.value = ejuso ;
	return;
}
//----------------------- º´¿ø¸í ÀÔ·Â ----------------------------
function put_of(ha,hb,hc,hd,he)
{
	theForm = document.Hosp_frm;
	theForm.hosp_name.value = hb ;
	//theForm.of_zip1.value = hc ;
	//theForm.of_zip2.value = hd ;
	//theForm.of_kaddr.value = he ;
	//theForm.of_ename.focus() ;
	return;
}

//----------------------- º´¿ø¸í ÀÔ·Â ----------------------------
function put_hospital(ha,hb)
{
	theForm = document.Hosp_frm;
	switch (ha)
	{
		case "intern" :
			document.all.intern.value = hb ;
//			theForm.intern.value = hb ;
		break;
		case "resident" :
			document.all.resident.value = hb ;
		break;
		case "training" :
			theForm.training.value = hb ;
		break;
		case "of" :
			theForm.hosp_name.value = hb ;
			//theForm.of_epost.focus() ;
		break;
		case "univ" :
			document.all.univ.value = hb ;
			//theForm.of_epost.focus() ;
		break;
		case "office" :
			document.all.office.value = hb ;
		break;
	}
}
