function check_keyword(theform){
	if (!theform.key_word.value ){
		alert("Please input Key Word!!");
		theform.key_word.focus();
		return false;
	}
return true;
}

function check_userdata(theform){

	if (!theform.total_items.value ){
		alert("Please select inquiry items!!");
		return false;
	}

	if (!theform.real_name.value ){
		alert("Please input Contact Name!!");
		theform.real_name.focus();
		return false;
	}
	if (!theform.address.value ){
		alert("Please input Address!!");
		theform.address.focus();
		return false;
	}
	if (!theform.phone.value ){
		alert("Please input Phone!!");
		theform.phone.focus();
		return false;
	}

return true;
}

function check_login_value(theform){
	if (!theform.login_id.value ){
		alert("Please input User ID!!");
		theform.login_id.focus();
		return false;
	}
	if (!theform.login_pw.value ){
		theform.login_pw.focus();
		alert("Please input Password!!");
		return false;
	}
return true;
}

function check_email_value(theform){
	if (!theform.email.value ){
		alert("Please input E-Mail!!");
		theform.email.focus();
		return false;
	}
}

function check_member_value(theform){
	if (!theform.name.value ){
		alert("Please input User ID!!");
		theform.name.focus();
		return false;
	}
	if (!theform.password.value ){
		theform.password.focus();
		alert("Please input password!!");
		return false;
	}
	if(!theform.password1.value){
		theform.password1.focus();
		alert("Please input Confirm password!!");
		return false;
	}
	if(theform.password.value != theform.password1.value){
		theform.password1.focus();
		alert("password and comfirm password is different!!");
		return false;
	}
	if(!theform.real_name.value){
		theform.real_name.focus();
		alert("Please input Contact name!!");
		return false;
	}
	if(!theform.phone.value){
		theform.phone.focus();
		alert("Please input phone!!");
		return false;
	}

	if(theform.email.value.indexOf('@') < 0 || theform.email.value.indexOf('.') < 0 || theform.email.value.length  < 10) {
	    alert('Please input EMAIL');
		theform.email.focus();
		return false;
	}
return true;
}
