
function checkLogin()
	{
		var tUserid=document.mem_login.mem_id.value;
		var tPassword=document.mem_login.mem_pw.value;
		if(tUserid.length==0 || tUserid == " ")
		{
			alert("ID¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
			document.mem_login.mem_id.focus();
			return false;
		}
		else if(tPassword.length==0 || tPassword == " ")
		{
			alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
			document.mem_login.mem_pw.focus();
			return false;
		}
	           
		document.mem_login.submit();			   
	}
	
	
// JavaScript Document
function submit_check() {
	var doc = document.f;

	var category = doc.ca.selectedIndex; 
	switch(category) {
		case 0: alert("Please select Category.."); doc.ca.focus(); return;
		case 1: 
			doc.code.value = category;	doc.member_type.value = "Á¤ºÎ±â°ü";		doc.category.value = "Government";		break;
		case 2: 
			doc.code.value = category;	doc.member_type.value = "Ç× °ø »ç";		doc.category.value = "Airlines";		break;
		case 3: 
			doc.code.value = category;	doc.member_type.value = "È£     ÅÚ";			doc.category.value = "Hotels";			break;
		case 4: 
			doc.code.value = category;	doc.member_type.value = "¿© Çà »ç";		doc.category.value = "Travel Agents";	break;
		case 5: 
			doc.code.value = category;	doc.member_type.value = "¾ð ·Ð »ç";		doc.category.value = "Media";			break;
		case 6: 
			doc.code.value = category;	doc.member_type.value = "ÀÏ     ¹Ý";			doc.category.value = "General";			break;
	}
	if( doc.id.value == "" ){ alert("Please input ID.");  doc.id.focus();	return;}
	if( doc.idcheck.value == "" ){ alert("Please check ID.");	return;}
	if( doc.pwd.value == "" ){ alert("Please input Password.");  doc.pwd.focus();	return;}
	if( doc.repwd.value == "" ){ alert("Please input  Confirm Password.");  doc.repwd.focus();	return;}
	if( doc.pwd.value != doc.repwd.value ){ alert("Password and Confirm Password is not same.");	doc.repwd.focus(); 	return;}
	if( doc.ecompany.value == "" ){ alert("Please input Company Name.");  doc.ecompany.focus();	return;}
	if( doc.title.value == "" ){ alert("Please select the Title of Representative.");  doc.title.focus();	return;}
	if( doc.title.value == "other" && doc.title_other.value == "" ){ alert("Please input the Title of Representative.");  doc.title_other.focus();	return;}
	if( doc.fname.value == "" ){ alert("Please input the First Name of Representative.");  doc.fname.focus();	return;}
	if( doc.lname.value == "" ){ alert("Please input the Last Name of Representative.");  doc.lname.focus();	return;}
	if( doc.eposition.value == "" ){ alert("Please input the Position of Representative.");  doc.eposition.focus();	return;}
	if( doc.zipcode.value == "" ){ alert("Please input Zipcode.");  doc.zipcode.focus();	return;}
	if( doc.eaddress.value == "" ){ alert("Please input Address.");  doc.eaddress.focus();	return;}
	if( doc.country.value == "0"){ alert("Please input Country.");  doc.country.focus();	return;}
	if( doc.tel.value == "" ){ alert("Please input Telephone number.");  doc.tel.focus();	return;}
	if( doc.fax.value == "" ){ alert("Please input Fax number.");  doc.fax.focus();	return;}
	if( doc.email.value == "" ){ alert("Please input E-mail Address.");  doc.email.focus();	return;}
	if( doc.url.value == "" ){ alert("Please input Website URL");  doc.url.focus();	return;}
	if( doc.mtitle.value == "" ){ alert("Please select the Title of Contact Person.");  doc.mtitle.focus();	return;}
	if( doc.mtitle.value == "other" && doc.mtitle_other.value == "" ){ alert("Please input the Title of Contact Person.");  doc.mtitle_other.focus();	return;}
	if( doc.mfname.value == "" ){ alert("Please input the First Name of Contact Person.");  doc.mfname.focus();	return;}
	if( doc.mlname.value == "" ){ alert("Please input the Last Name of Contact Person.");  doc.mlname.focus();	return;}
	if( doc.medepartment.value == "" ){ alert("Please input the Department of Contact Person.");  doc.medepartment.focus();	return;}
	if( doc.meposition.value == "" ){ alert("Please input the Position of Contact Person.");  doc.meposition.focus();	return;}
	if( doc.title[3].checked && doc.title_other.value != "" ){
		doc.title.value = doc.title_other.value;
	}	
	doc.submit();
}


function doSubmit() {
	var doc = document.f;
	if( doc.name.value == "") { alert("ÀÛ¼ºÀÚ¸¦ ÀÔ·ÂÇÏ¼¼¿ä."); doc.name.focus(); return; }
	if( doc.subject.value == "") { alert("Á¦¸ñÀ» ÀÔ·ÂÇÏ¼¼¿ä."); doc.subject.focus(); return; }
	if( doc.content.value == "") { alert("³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä."); doc.content.focus(); return; }

	doc.submit();
}


function doSubmit2() {
	var doc = document.f;
	
	if( doc.subject.value == "") { alert("Á¦¸ñÀ» ÀÔ·ÂÇÏ¼¼¿ä."); doc.subject.focus(); return; }
	if( doc.name.value == "") { alert("ÀÛ¼ºÀÚ¸¦ ÀÔ·ÂÇÏ¼¼¿ä."); doc.name.focus(); return; }
	if( doc.ssn.value == "") { alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä."); doc.ssn.focus(); return; }
	if( doc.email.value == "") { alert("ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇÏ¼¼¿ä."); doc.email.focus(); return; }
	if( doc.content.value == "") { alert("³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä."); doc.content.focus(); return; }
	

	doc.submit();
}


