// JavaScript Document var imagesPath = "/skins/default/images/"; // Appends Get Vars into js Vars var url = String(self.location); tmp = url.split("?"); if (tmp[1]) { var queryString = tmp[1]; vars = queryString.split('#'); vars = vars[0].split('&'); var _GET = new Array(); for (var i = 0 ; i < vars.length; ++i ) { tmp = vars[i].split('='); _GET[tmp[0]] = tmp[1]; } } // temoignages var dx = 0; var actuHeight = 70; var count = actuHeight; var nbActu = 0; var curActu = 0; function liftUp() { count--; if (count > 0) { _Elem('actuScroller').style.top = dx--; setTimeout(liftUp, 1); } else {setTimeout(showNext, 5000); if ( curActu == (nbActu+1)) { _Elem('actuScroller').style.top = -actuHeight+'px'; dx = -actuHeight; curActu = 1; } } } function showNext() { count = actuHeight; curActu ++; liftUp(); } // moteur de recherche function accRechercher() { secteur = _Elem('secteur_id').value; /*if (_Elem('lieu').value == 'Lieu de travail') lieu = 'France'; else lieu = _Elem('lieu').value.replace(/\ /,'+');*/ url = 'mission-interimaire-'+secteur+'.html'; self.location = url; } function trier(sortUlr) { if (sortUlr.indexOf('?') != -1) sep = '&'; else sep = '?'; self.location = sortUlr+sep+'ordre='+_Elem('sortFieldSel').value+','+_Elem('sortOrderSel').value; } /** /* Methode permettant de passer directement au champ suivant pour la saisie de date /* champ1 : champ de départ /* champ2 : champ d'arrivée */ function Compter(champ1, champ2) { // Nombre de caractères max 2 pour jour et mois var max = 2; // Longueur actuelle du champ1 var taille = _Elem(champ1).value.length // Si le nombre de caractères est >= au nombre max autorisé, on passe au champ suivant if (taille >= max) { _Elem(champ2).focus(); } } function verifInscription() { reqs = new Array('email', 'passwd', 'passwd2', 'nom', 'prenom', 'code_postal', 'dnJJ', 'dnMM', 'dnAAAA', 'telephone'); nbErr = 0; fieldTofocus = 'none'; for (i=0; i 0) { _Elem('ville_id').style.borderColor = '#999999'; } else { _Elem('ville_id').style.borderColor = '#FF0000'; nbErr ++; if (fieldTofocus == 'none') fieldTofocus = 'ville_id'; } if (_Elem('dnJJ').value && _Elem('dnMM').value && _Elem('dnAAAA').value) { myDate = new Date(_Elem('dnAAAA').value,_Elem('dnMM').value-1,_Elem('dnJJ').value); if ( (myDate.getDate() == _Elem('dnJJ').value) && ((myDate.getMonth()+1) == _Elem('dnMM').value) && (myDate.getFullYear() == _Elem('dnAAAA').value) ) { _Elem('dnJJ').style.borderColor = '#999999'; _Elem('dnMM').style.borderColor = '#999999'; _Elem('dnAAAA').style.borderColor = '#999999'; } else { _Elem('dnJJ').style.borderColor = '#FF0000'; _Elem('dnMM').style.borderColor = '#FF0000'; _Elem('dnAAAA').style.borderColor = '#FF0000'; nbErr++; if (fieldTofocus == 'none') fieldTofocus = 'dnJJ'; } } // poste recherché au moins 1 de coché ids = getElementsByClass('secteursCB'); var prOk = false; for (i in ids){ if (ids[i].checked) { prOk = true; break; } } if (prOk) { _Elem('posteMsg').innerHTML = 'Sélectionnez un secteur d\'activité.'; } else { nbErr++; _Elem('posteMsg').innerHTML = 'Vous devez saisir au moins 1 poste.'; if (fieldTofocus == 'none') fieldTofocus = 'poste_recherche'; } // CV if (_Elem('cv').value != '') { tmp = _Elem('cv').value.split('.'); if (tmp[tmp.length-1] == 'pdf' || tmp[tmp.length-1] == 'doc' || tmp[tmp.length-1] == 'txt') { _Elem('cv').parentNode.style.border = "0px"; } else { _Elem('cv').parentNode.style.border = "1px solid #ff0000"; nbErr++; if (fieldTofocus == 'none') fieldTofocus = 'cv'; } } else { //alert(_Elem('cv').value); _Elem('cv').parentNode.style.border = "1px solid #ff0000"; nbErr++; if (fieldTofocus == 'none') fieldTofocus = 'cv'; } // CGU if (_Elem('cgu').checked) { _Elem('cgu').parentNode.style.border = "0px"; } else { _Elem('cgu').parentNode.style.border = "1px solid #ff0000"; nbErr++; if (fieldTofocus == 'none') fieldTofocus = 'cgu'; } if (fieldTofocus != 'none') _Elem(fieldTofocus).focus(); if (nbErr == 0) return true; return false; } function verifInscriptionRecruteur() { reqs = new Array('email', 'passwd', 'passwd2','siret','raison_sociale','naf_id', 'nom', 'prenom', 'adresse1', 'code_postal', 'telephone'); nbErr = 0; fieldTofocus = 'none'; for (i=0; i 1 && _Elem('naf').value == 'Code NAF érroné') { _Elem('naf_id').style.borderColor = '#FF0000'; nbErr ++; if (fieldTofocus == 'none') fieldTofocus = 'naf_id'; } //else { _Elem('naf_id').style.borderColor = '#999999'; } // CGU if (_Elem('cgu').checked) { _Elem('cgu').parentNode.style.border = "0px"; } else { _Elem('cgu').parentNode.style.border = "1px solid #ff0000"; nbErr++; if (fieldTofocus == 'none') fieldTofocus = 'cgu'; } if (fieldTofocus != 'none') _Elem(fieldTofocus).focus(); if (nbErr == 0) return true; return false; } function verifCoordonneesRecruteur() { reqs = new Array('siret','raison_sociale', 'naf_id', 'nom', 'prenom', 'adresse1', 'code_postal', 'telephone'); nbErr = 0; for (i=0; i 1 && _Elem('naf').value == 'Code NAF érroné') { _Elem('naf_id').style.borderColor = '#FF0000'; nbErr ++; if (fieldTofocus == 'none') fieldTofocus = 'naf_id'; } if (_Elem('ville_id').value < 1) { _Elem('ville_id').style.borderColor = '#FF0000'; nbErr ++; } else { _Elem('ville_id').style.borderColor = '#999999'; } if (nbErr == 0) return true; return false; } function verifCoordonneesCandidat() { reqs = new Array('nom', 'prenom', 'code_postal', 'dnJJ', 'dnMM', 'dnAAAA', 'telephone'); nbErr = 0; fieldTofocus = 'none'; for (i=0; i 0) { if (obj.checked) Show('trlangue'+id); } }