function validateCareer(){
	
	var root = document.cv;
	var first_name = root.first_name;
	var last_name = root.last_name;
	var gender = root.gender;
	
	var day = root.day;
	var month = root.month;
	var year = root.year;
	
	var marital_status = root.marital_status;
	var work = root.work_experience;
	var phone = root.phone;
	var mobile = root.mobile;
	var nationality = root.nationality;
	var email = root.email;
	var education = root.education;
	
	var cv = root.cv;
	
	if(first_name.value==''){
		alert("Please enter your first name");
		first_name.focus();
		return false;
	}
	if(last_name.value==''){
		alert("Please enter your last name");
		last_name.focus();
		return false;
	}
	if(gender.value==''){
		alert("Please enter your gender");
		gender.focus();
		return false;
	}
	if(day.value==''){
		alert("Please select the day on which you were born");
		day.focus();
		return false;
	}
	if(month.value==''){
		alert("Please select the month in which you were born");
		month.focus();
		return false;
	}
	if(year.value==''){
		alert("Please select the year in which you were born");
		year.focus();
		return false;
	}
	if(marital_status.value==''){
		alert("Please enter your marital status");
		marital_status.focus();
		return false;
	}
	if(work.value==''){
		alert("Please enter your work experince");
		work.focus();
		return false;
	}
	if(phone.value==''){
		alert("Please enter your phone number");
		phone.focus();
		return false;
	}
	var pattern =/^[0-9]{3}-[0-9]+$/;
	if(!phone.value.match(pattern)){
		alert("Please insert a number of the format 999-111111");
		phone.select();
		return false;
	}
	if(mobile.value==''){
		alert("Please enter your mobile");
		mobile.focus();
		return false;
	}
	var pattern =/^[0-9]{3}-[0-9]+$/;
	if(!mobile.value.match(pattern)){
		alert("Please insert a number of the format 999-111111");
		mobile.select();
		return false;
	}
	if(nationality.value==''){
		alert("Please enter your nationality");
		nationality.focus();
		return false;
	}
	if(email.value==''){
		alert("Please enter your email");
		email.focus();
		return false;
	}
	var pattern = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/;
	flag=email.value.match(pattern);
	if(!flag){
		alert('Please insert a valid email address.');
		email.select();
		return false;
	}
	if(education.value==''){
		alert("Please enter your Education");
		education.focus();
		return false;
	}
	if(cv.value==''){
		alert("Please select your CV to upload it");
		cv.focus();
		return false;
	}
	return true;
}