<!--
function VerifFormulaire_nouvelle(which) {
	var ok=true;
	var fck =false;
	if (document.images) {
		for (i=0;i<which.length;i++) {
			var verif1=which.elements[i];
			if (verif1.name.substring(0,8)=="required") {
				if (((verif1.type=="text"||verif1.type=="textarea"||verif1.type=="password")&&
				verif1.value=='')||(verif1.type.toString().charAt(0)=="s"&&
				verif1.selectedIndex==0)) {
					ok=false;
					break;
				}
			}
		}
		if(getEditorValue("required_texte_complet")=='')
		{
			ok = false;
			fck = true;
		}
	}
	if (!ok) {
		if(fck == true){
			NomChamp='Texte complet';
		}
		else{
			NomChamp=verif1.name.substring(9,30).toUpperCase();
		}
		
		alert("Remplissez s'il vous plaît le champ "+NomChamp.replace(/_/," ")+" !");
		return false;
	}
	else
		return true;
}


function VerifFormulaire(which) {
	var ok=true;
	if (document.images) {
		for (i=0;i<which.length;i++) {
			var verif1=which.elements[i];
			if (verif1.name.substring(0,8)=="required") {
				if (((verif1.type=="text"||verif1.type=="textarea"||verif1.type=="password")&&
				verif1.value=='')||(verif1.type.toString().charAt(0)=="s"&&
				verif1.selectedIndex==0)) {
					ok=false;
					break;
				}
			}
		}

	}
	if (!ok) {

			NomChamp=verif1.name.substring(9,30).toUpperCase();
		
		alert("Remplissez s'il vous plaît le champ "+NomChamp.replace(/_/," ")+" !");
		return false;
	}
	else
		return true;
}


function VerifFormulaire_Carriere(which) {
	var ok=true;
	var cv=true;
	var fichier ='';
	if (document.images) {
		for (i=0;i<which.length;i++) {
			var verif1=which.elements[i];
			if (verif1.name.substring(0,8)=="required") {
				if (((verif1.type=="text"||verif1.type=="textarea"||verif1.type=="password")&&
				verif1.value=='')||(verif1.type.toString().charAt(0)=="s"&&
				verif1.selectedIndex==0)) {
					ok=false;
					break;
				}
			}
		}
		document.form1.fichier.value.slice(document.form1.fichier.value.lastIndexOf('\\')+1).replace('.jpg','');

/*	if(which.required_cv.length<=1)
		{
			ok=false;
			cv=false;
		}
*/		
	}
	if (!ok) {
	/*	if(cv==true)
		{*/
			NomChamp=verif1.name.substring(9,30).toUpperCase();
			alert("Remplissez s'il vous plaît le champ "+NomChamp.replace(/_/," ")+" !");
	/*	}
		else
		{
			alert("Remplissez s'il vous plaît le champ du CV et de la lettre de présentation !");	
		}*/
		return false;
	}
	else
		return true;
}



function getEditorValue( instanceName )
{
    // Get the editor instance that we want to interact with.
    var oEditor = FCKeditorAPI.GetInstance( instanceName ) ;

    // Get the editor contents as XHTML.
    return oEditor.GetXHTML( true ) ; // "true" means you want it formatted.
}



//Script Généré sur le Site http://www.G1SCRIPT.COM

function checkrequired(which){
var pass=true;
if (document.images){
	for (i=0;i<which.length;i++){
		var tempobj=which.elements[i];
		if (tempobj.name.substring(0,8)=="required"){
			if (((tempobj.type=="text"||tempobj.type=="textarea")&&tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&tempobj.selectedIndex==-1)){
				pass=false;
				break;
				}
			}
		}
	}
if (!pass){
	alert("Un ou des éléments ne sont pas inscrit! Vérifier votre formulaire!");
	return false;
}
else
	return true;
}
       
// -->

