		function check_job()
            {	
		var emailFilter=/^.+@.+\..{2,3}$/;
		var iChars = "!@#$%^&*()+=-[]\\\';,./{}|\":<>?~_"; 
	
		var position  = document.job.position.value;
		var salary  = document.job.salary.value;
		var nameth  = document.job.nameth.value;
		var surnameth  = document.job.surnameth.value;
		var email  = document.job.email.value;
		var mobile  = document.job.mobile.value;
		var contactperson  = document.job.contactperson.value;
		var contactphone  = document.job.contactphone.value;
		
		var edulevel_1  = document.job.edulevel_1.value;
		var eduinstitute_1  = document.job.eduinstitute_1.value;
		var edufaculty_1  = document.job.edufaculty_1.value;
		var edumajor_1  = document.job.edumajor_1.value;
		var eduyearfrom_1  = document.job.eduyearfrom_1.value;
		var eduyearto_1  = document.job.eduyearto_1.value;
		var edulevel_2  = document.job.edulevel_2.value;
		var eduinstitute_2  = document.job.eduinstitute_2.value;
		var edufaculty_2  = document.job.edufaculty_2.value;
		var edumajor_2  = document.job.edumajor_2.value;
		var eduyearfrom_2  = document.job.eduyearfrom_2.value;
		var eduyearto_2  = document.job.eduyearto_2.value;
		
		var historycompany_1  = document.job.historycompany_1.value;
		var historysalary_1  = document.job.historysalary_1.value;
		var historylocation_1  = document.job.historylocation_1.value;
		var historybusinesstype_1  = document.job.historybusinesstype_1.value;
		var historyyearfrom_1  = document.job.historyyearfrom_1.value;
		var historyyearto_1  = document.job.historyyearto_1.value;
		var historyposition_1  = document.job.historyposition_1.value;
		var historydepartment_1  = document.job.historydepartment_1.value;
		var historydescription_1  = document.job.historydescription_1.value;
		var historyreason_1  = document.job.historyreason_1.value;
		var image  = document.job.image.value;
		
		var officephone  = document.job.officephone.value;
		var age  = document.job.age.value;
		var eedugrade_1  = document.job.eedugrade_1.value;
		var eedugrade_2  = document.job.eedugrade_2.value;
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		///////////////
		if(image == ""){
			alert("You have to browse your picture.");
			return false;
			}
		///////////////
		if(position == ""){
			alert("You have to select in 'Position'.");
			return false;
			}
		///////////////
		if(salary == ""){
			alert("You have to fill in 'Expect Salary'.");
			return false;
			}
		///////////////
		if(nameth == ""){
			alert("You have to fill in your name.");
			return false;
			}
		///////////////
		if(surnameth == ""){
			alert("You have to fill in your surename.");
			return false;
			}
		///////////////
		if(email == ""){
			alert("You have to fill in 'email'");
				return false;
			}else if(!(emailFilter.test(email)))
			{
			alert("คุณกรอกอีเมล์ผิดรูปแบบ");
					return false;
			}
		///////////////
		if(mobile == ""){
			alert("You have to fill in 'mobile'.");
			return false;
			}else if(!check_number(mobile))
			{
			alert("You have to fill only Number in 'mobile'.");
			return false;
			}else if(mobile.length < 10){
			alert("You have to fill  'mobile' is error.");
			return false;		
				}
		
		///////////////
		if(officephone == ""){
			alert("You have to fill in 'Telephone(Office)'.");
			return false;
			}else if(!check_number(officephone))
			{
			alert("You have to fill only Number in 'Telephone(Office)'.");
			return false;
			}
		///////////////
		if(age == ""){
			alert("You have to fill in 'Age'.");
			return false;
			}
			///////////////
				if(contactperson == ""){
			alert("You have to fill in 'Contact Person'.");
			return false;
			}
		///////////////
		if(contactphone == ""){
			alert("You have to fill in 'Contact Person Telephone'.");
			return false;
			}else if(!check_number(contactphone))
			{
			alert("You have to fill only Number in 'Contact Person Telephone'.");
			return false;
			}else if(contactphone.length < 9){
			alert("You have to fill  'Contact Person Telephone' is error.");
			return false;		
				}
		
		///////////////
		if(eduinstitute_1 == ""){
			alert("You have to fill in Education History :'Institute'.");
			return false;
			}
		///////////////
		if(edufaculty_1 == ""){
			alert("You have to fill in Education History :'Faculty'.");
			return false;
			}
		///////////////
		if(edumajor_1 == ""){
			alert("You have to fill in Education History :'Major'.");
			return false;
			}
		///////////////
		if(eduyearfrom_1 == ""){
			alert("You have to fill in Education History :'From'.");
			return false;
			}
		///////////////
		if(eduyearto_1 == ""){
			alert("You have to fill in Education History :'To'.");
			return false;
			}
		///////////////
		if(eedugrade_1 == ""){
			alert("You have to fill in Education History :'Grade point average'.");
			return false;
			}
		
		///////////////
		if(eduinstitute_2 == ""){
			alert("You have to fill in Education History :'Institute'.");
			return false;
			}
		///////////////
		if(edufaculty_2 == ""){
			alert("You have to fill in Education History :'Faculty'.");
			return false;
			}
		///////////////
		if(edumajor_2 == ""){
			alert("You have to fill in Education History :'Major'.");
			return false;
			}
		///////////////
		if(eduyearfrom_2 == ""){
			alert("You have to fill in Education History :'From'.");
			return false;
			}
		///////////////
		if(eduyearto_2 == ""){
			alert("You have to fill in Education History :'To'.");
			return false;
			}	
		if(eedugrade_2 == ""){
			alert("You have to fill in Education History :'Grade point average'.");
			return false;
			}
		
		///////////////
		if(historycompany_1 == ""){
			alert("You have to fill in 'Company Name'.");
			return false;
			}
		///////////////
		if(historysalary_1 == ""){
			alert("You have to fill in 'Salary(old company)'.");
			return false;
			}
		///////////////
		if(historylocation_1 == ""){
			alert("You have to fill in 'Location'.");
			return false;
			}
		///////////////
		if(historybusinesstype_1 == ""){
			alert("You have to fill in 'Type of business'.");
			return false;
			}
		///////////////
		if(historyyearfrom_1 == ""){
			alert("You have to fill in 'From'.");
			return false;
			}
		///////////////
		if(historyyearto_1 == ""){
			alert("You have to fill in 'To'.");
			return false;
			}
		///////////////
		if(historyposition_1 == ""){
			alert("You have to fill in 'Position'.");
			return false;
			}
		///////////////
		if(historydepartment_1 == ""){
			alert("You have to fill in 'Department'.");
			return false;
			}
		///////////////
		if(historydescription_1 == ""){
			alert("You have to fill in 'Job Description'.");
			return false;
			}
		///////////////
		if(historyreason_1 == ""){
			alert("You have to fill in 'Reason for Leaving'.");
			return false;
			}
			
			
		
		
			
		}
		
	
