function ContactValid(){
	var doc_form 	= document.contact_us_form;
	var error			= 0;
	
	if(doc_form.contact_type.value == 0){
		var error	= 1;
		document.getElementById('contact_type_note').innerHTML = '<font color="red">* กรุณาเลือกประเภทการติดต่อ</font>';
	}
	else{
		document.getElementById('contact_type_note').innerHTML = '<font>* ข้อมูลสำคัญ</font>';
	}
	if(doc_form.contact_subject.value == ""){
		var error	= 1;
		document.getElementById('contact_subject_note').innerHTML = '<font color="red">* กรุณากรอกหัวข้อในการติดต่อ</font>';
	}
	else{
		document.getElementById('contact_subject_note').innerHTML = '<font>* ข้อมูลสำคัญ</font>';
	}
	if(doc_form.contact_message.value == ""){
		var error	= 1;
		document.getElementById('contact_message_note').innerHTML = '<font color="red">* กรุณากรอกรายละเอียดในการติดต่อ</font>';
	}
	else{
		document.getElementById('contact_message_note').innerHTML = '<font>* ข้อมูลสำคัญ</font>';
	}
	if(doc_form.contact_name.value == 0){
		var error	= 1;
		document.getElementById('contact_name_note').innerHTML = '<font color="red">* กรุณากรอกชื่อผู้ติดต่อ</font>';
	}
	else{
		document.getElementById('contact_name_note').innerHTML = '<font>* ข้อมูลสำคัญ</font>';
	}
	if(checkemail(doc_form.contact_email.value) == false){
		var error	= 1;
		document.getElementById('contact_email_note').innerHTML = '<font color="red">* กรุณากรอกอีเมลผู้ติดต่อให้ถูกต้อง</font>';
	}
	else{
		document.getElementById('contact_email_note').innerHTML = '<font>* ข้อมูลสำคัญ</font>';
	}
	if(doc_form.contact_email.value == ""){
		var error	= 1;
		document.getElementById('contact_email_note').innerHTML = '<font color="red">* กรุณากรอกอีเมลผู้ติดต่อ</font>';
	}
	else{
		document.getElementById('contact_email_note').innerHTML = '<font>* ข้อมูลสำคัญ</font>';
	}

	
	if(error == 1){
		return false;
	}
	else{
		return true;
	}
}
