// JavaScript Document

function saveCandidat() {
	
	if(IsEmpty(document.F_CONTACT.nom.value) == true){
		alert("Veuillez préciser votre nom");
		document.F_CONTACT.nom.focus();
		return false; 
	}

	if(IsEmpty(document.F_CONTACT.prenom.value) == true){
		alert("Veuillez préciser votre prénom");
		document.F_CONTACT.prenom.focus();
		return false; 
	}

	if(IsEmpty(document.F_CONTACT.email.value) == true) {
		window.alert("Veuillez préciser votre email");
		document.F_CONTACT.email.focus();
		return false;
	}

	if(EmailCheck(document.F_CONTACT.email.value) == true) {
		window.alert("Veuillez vérifier votre email");
		document.F_CONTACT.email.focus();
		return false;
	}
	
	if(IsEmpty(document.F_CONTACT.message.value) == true) {
		window.alert("Veuillez préciser votre message");
		document.F_CONTACT.message.focus();
		return false;
	}
	
	document.F_CONTACT.job.value = "send_message";

}

function saveRecruteur() {
	
	if(IsEmpty(document.F_CONTACT.nom.value) == true){
		alert("Veuillez préciser votre nom");
		document.F_CONTACT.nom.focus();
		return false; 
	}

	if(IsEmpty(document.F_CONTACT.prenom.value) == true){
		alert("Veuillez préciser votre prénom");
		document.F_CONTACT.prenom.focus();
		return false; 
	}

	if(IsEmpty(document.F_CONTACT.email.value) == true) {
		window.alert("Veuillez préciser votre email");
		document.F_CONTACT.email.focus();
		return false;
	}

	if(EmailCheck(document.F_CONTACT.email.value) == true) {
		window.alert("Veuillez vérifier votre email");
		document.F_CONTACT.email.focus();
		return false;
	}
	
	if(IsEmpty(document.F_CONTACT.message.value) == true) {
		window.alert("Veuillez préciser votre message");
		document.F_CONTACT.message.focus();
		return false;
	}
	
	document.F_CONTACT.job.value = "send_message";

}

function saveProfil() {
	
	if(IsEmpty(document.F_CONTACT.nom.value) == true){
		alert("Veuillez préciser votre nom");
		document.F_CONTACT.nom.focus();
		return false; 
	}

	if(IsEmpty(document.F_CONTACT.prenom.value) == true){
		alert("Veuillez préciser votre prénom");
		document.F_CONTACT.prenom.focus();
		return false; 
	}
	
	if(IsEmpty(document.F_CONTACT.societe.value) == true) {
		window.alert("Veuillez préciser votre société");
		document.F_CONTACT.societe.focus();
		return false;
	}
	
	if(IsEmpty(document.F_CONTACT.email.value) == true) {
		window.alert("Veuillez préciser votre email");
		document.F_CONTACT.email.focus();
		return false;
	}

	if(EmailCheck(document.F_CONTACT.email.value) == true) {
		window.alert("Veuillez vérifier votre email");
		document.F_CONTACT.email.focus();
		return false;
	}
	
	if(IsEmpty(document.F_CONTACT.message.value) == true) {
		window.alert("Veuillez préciser votre message");
		document.F_CONTACT.message.focus();
		return false;
	}
	
	document.F_CONTACT.job.value = "send_message";

}

function save_offre_entreprise() {
	
	if(IsEmpty(document.F_CONTACT.societe.value) == true){
		alert("Veuillez préciser le nom de votre société");
		document.F_CONTACT.societe.focus();
		return false; 
	}
	
	if(IsEmpty(document.F_CONTACT.nom.value) == true){
		alert("Veuillez préciser votre nom");
		document.F_CONTACT.nom.focus();
		return false; 
	}

	if(IsEmpty(document.F_CONTACT.prenom.value) == true){
		alert("Veuillez préciser votre prénom");
		document.F_CONTACT.prenom.focus();
		return false; 
	}
	
	if(IsEmpty(document.F_CONTACT.presentation.value) == true){
		alert("Veuillez présenter votre société");
		document.F_CONTACT.presentation.focus();
		return false; 
	}

	if(IsEmpty(document.F_CONTACT.profil.value) == true){
		alert("Veuillez préciser le(s) profil(s) recherché(s)");
		document.F_CONTACT.profil.focus();
		return false; 
	}

	if(IsEmpty(document.F_CONTACT.email.value) == true) {
		window.alert("Veuillez préciser votre email");
		document.F_CONTACT.email.focus();
		return false;
	}

	if(EmailCheck(document.F_CONTACT.email.value) == true) {
		window.alert("Veuillez vérifier votre email");
		document.F_CONTACT.email.focus();
		return false;
	}
	
	document.F_CONTACT.job.value = "send_message";
	
}



