function opensatisfaction(imgRef)

        {
         var handle = window.open("https://secure.multinet-ressources.com/rodriguemetal.com/cgi-bin/satisfaction2.cgi?satisfaction=" + imgRef, "","width=640,height=600,directories=no,left=0,top=0,menubar=no,status=yes,resizable=no,scrollbars=yes,toolbar=no");
        }

function openesatisfaction(imgRef)

        {
         var handle = window.open("https://secure.multinet-ressources.com/rodriguemetal.com/cgi-bin/esatisfaction.cgi?satisfaction=" + imgRef, "","width=640,height=600,directories=no,left=0,top=0,menubar=no,status=yes,resizable=no,scrollbars=yes,toolbar=no");
        }

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function showMenu() {
 
    if ( isIE() ) {
        newMenu.style.display = 'block';
    } else if ( isNS4() ) {
        document.monMenu.visibility = 'show';
    } else if ( isNS6() ) {
        document.getElementById( "monMenu" ).style.display = 'block';
    }
}
 
function hideMenu() {
 
    if ( isIE() ) {
        newMenu.style.display = 'none';
    } else if ( isNS4() ) {
        document.monMenu.visibility = 'hide';
    } else if ( isNS6() ) {
        document.getElementById( "monMenu" ).style.display = 'none';
    }
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function openpop(imgRef)
{

        window.open("https://secure.multinet-ressources.com/rodriguemetal.com/" + imgRef ,"",'menubar=no,toolbar=no,title=$fields[$index],location=no,directories=no,left=0,top=0,status=yes,scrollbars=yes,resizable=no,copyhistory=no,width=752,height=520');

}
function openpop2(imgRef)
{

        window.open(imgRef ,"",'menubar=no,toolbar=no,title=$fields[$index],location=no,directories=no,left=30,top=30,status=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=739,height=339');

}
function openpop3(imgRef)
{

        window.open("cgi-bin/mail.cgi?mail=" + imgRef ,"",'menubar=no,toolbar=no,title=$fields[$index],location=no,directories=no,left=50,top=50,status=no,scrollbars=yes,resizable=no,copyhistory=no,width=535,height=583');

}
function openpop4(imgRef)
{

        window.open("cgi-bin/mail_en.cgi?mail=" + imgRef ,"",'menubar=no,toolbar=no,title=$fields[$index],location=no,directories=no,left=50,top=50,status=no,scrollbars=yes,resizable=no,copyhistory=no,width=535,height=583');

}
/* Function that swaps images. */

function di20(id, newSrc) {
    var theImage = FWFindImage(document, id, 0);
    if (theImage) {
        theImage.src = newSrc;
    }
}

/* Functions that track and set toggle group button states. */

function FWFindImage(doc, name, j) {
    var theImage = false;
    if (doc.images) {
        theImage = doc.images[name];
    }
    if (theImage) {
        return theImage;
    }
    if (doc.layers) {
        for (j = 0; j < doc.layers.length; j++) {
            theImage = FWFindImage(doc.layers[j].document, name, 0);
            if (theImage) {
                return (theImage);
            }
        }
    }
    return (false);
}

/* Functions qui valide les champs */

function check()
{
	var i, nonspace, acheck, ccheck, dcheck, echeck, fcheck, gcheck, hcheck, icheck, jcheck, kcheck, lcheck, mcheck, ncheck, ocheck, pcheck, qcheck, rcheck, scheck, ch;
	nonspace = 0;
	for (i = 0; i < document.list.Nom.value.length; i++) {
		ch = document.list.nom1.value.charAt(i);
		if (ch > ' ') {
			nonspace = 1;
		}
	}
	if (!nonspace) {
		alert("\nSection Renseignements personnels : \n\nEntrer votre nom s'il vous plaît.");
		return false;
	}
	if (document.list.prenom1.value.length < 1) {
		alert("\nSection Renseignements personnels : \n\nEntrer votre prénom s'il vous plaît.");
		return false;
	}
	if (document.list.adresse1.value.length < 1) {
		alert("\nSection Renseignements personnels : \n\nEntrer votre adresse s'il vous plaît.");
		return false;
	}
	if (document.list.Rue.value.length < 1) {
		alert("\nSection Renseignements personnels : \n\nEntrer votre nom de rue s'il vous plaît.");
		return false;
	}
	if (document.list.ville1.value.length < 1) {
		alert("\nSection Renseignements personnels : \n\nEntrer votre ville s'il vous plaît.");
		return false;
	}
	if (document.list.Province.value.length < 1) {
		alert("\nSection Renseignements personnels : \n\nEntrer votre province s'il vous plaît.");
		return false;
	}
	if (document.list.codepostal.value.length < 6) {
		alert("\nSection Renseignements personnels : \n\nEntrer votre code postal s'il vous plaît.");
		return false;
	}
	if (document.list.Telephone1.value.length < 7) {
		alert("\nSection Renseignements personnels : \n\nEntrer votre téléphone s'il vous plaît.");
		return false;
	}
	acheck = 0;
	for (i = 0; i < 4; i++) {
		acheck |= document.list.Horaire[i].checked;
	}
	if (!acheck) {
		alert("\nSection Emploi postulé : \n\nVous devez cocher un choix entre Temps plein ou temps partiel ou occasionnel ou été.");
		return false;
	}
	ccheck = 0;
	for (i = 0; i < 2; i++) {
		ccheck |= document.list.Deja_postule_chez_RML[i].checked;
	}
	if (!ccheck) {
		alert("\nSection Emploi postulé : \n\nVous n'avez pas répond à savoir si vous avez déjà postulé chez RML.");
		return false;
	}
	dcheck = 0;
	for (i = 0; i < 2; i++) {
		dcheck |= document.list.Travaille_pour_RML[i].checked;
	}
	if (!dcheck) {
		alert("\nSection Emploi postulé : \n\nVous n'avez pas répond à savoir si vous avez déjà travaillé chez RML.");
		return false;
	}
	if (document.list.Secondaire_debut.value.length < 1) {
		alert("\nSection Scolarité-Formation : \n\nEntrer votre première année au secondaire.");
		return false;
	}
	if (document.list.Secondaire_fin.value.length < 1) {
		alert("\nSection Scolarité-Formation : \n\nEntrer votre dernière année au secondaire.");
		return false;
	}
	if (document.list.Cours_sec.value.length < 1) {
		alert("\nSection Scolarité-Formation : \n\nEntrer le type de formation suivi, général ou spécialisé.");
		return false;
	}
	echeck = 0;
	for (i = 0; i < 6; i++) {
		echeck |= document.list.Annee_completee[i].checked;
	}
	if (!echeck) {
		alert("\nSection Scolarité-Formation : \n\nVous cocher le nombre d'année au secondaire.");
		return false;
	}
	gcheck = 0;
	for (i = 0; i < 2; i++) {
		gcheck |= document.list.Cours[i].checked;
	}
	if (!gcheck) {
		alert("\nSection Scolarité-Formation : \n\nVous devez cocher oui ou non si vous suivez présentement des cours.");
		return false;
	}
	hcheck = 0;
	for (i = 0; i < 2; i++) {
		hcheck |= document.list.Etude[i].checked;
	}
	if (!hcheck) {
		alert("\nSection Scolarité-Formation : \n\nVous devez cocher oui ou non si vous prévoyez poursuivre vos études.");
		return false;
	}
	icheck = 0;
	for (i = 0; i < 2; i++) {
		icheck |= document.list.Connaissance_emploi[i].checked;
	}
	if (!icheck) {
		alert("\nSection Autres renseignements : \n\nComment avez-vous pris connaissance de nos possibilités d'emploi ?");
		return false;
	}
	jcheck = 0;
	for (i = 0; i < 2; i++) {
		jcheck |= document.list.Travail_Canada[i].checked;
	}
	if (!jcheck) {
		alert("\nSection Autres renseignements : \n\nPouvez-vous travailler au Canada ?");
		return false;
	}
	lcheck = 0;
	for (i = 0; i < 2; i++) {
		lcheck |= document.list.Cartes_competence[i].checked;
	}
	if (!lcheck) {
		alert("\nSection Autres renseignements : \n\nDétenez-vous des cartes de compétence ?");
		return false;
	}
	mcheck = 0;
	for (i = 0; i < 2; i++) {
		mcheck |= document.list.Experience_usine[i].checked;
	}
	if (!mcheck) {
		alert("\nSection Autres renseignements : \n\nAvez-vous de l'expérience en usine ?");
		return false;
	}
	ocheck = 0;
	for (i = 0; i < 2; i++) {
		ocheck |= document.list.Dossier_medicaux[i].checked;
	}
	if (!ocheck) {
		alert("\nSection Autorisation : \n\nVous devez cocher oui ou non pour la transmission des dossiers médicaux.");
		return false;
	}
	pcheck = 0;
	for (i = 0; i < 2; i++) {
		pcheck |= document.list.Examen_medical[i].checked;
	}
	if (!pcheck) {
		alert("\nSection Autorisation : \n\nVous devez cocher oui ou non pour la soumission à un examen médical.");
		return false;
	}
	qcheck = 0;
	for (i = 0; i < 2; i++) {
		qcheck |= document.list.Assurance_sociale[i].checked;
	}
	if (!qcheck) {
		alert("\nSection Autorisation : \n\nVous devez cocher oui ou non pour la divulgation de votre numéro d'assurance sociale.");
		return false;
	}
	rcheck = 0;
	for (i = 0; i < 2; i++) {
		rcheck |= document.list.References[i].checked;
	}
	if (!rcheck) {
		alert("\nSection Autorisation : \n\nVous devez cocher oui ou non concernant les références d'emploi.");
		return false;
	}
	scheck = 0;
	for (i = 0; i < 2; i++) {
		scheck |= document.list.Divulgation[i].checked;
	}
	if (!scheck) {
		alert("\nSection Autorisation : \n\nVous devez cocher oui ou non concernant la divulgation des renseignements.");
		return false;
	}
		if (document.list.Courriel.value.length < 1) {
		alert("\nEntrer votre adresse électronique s'il vous plaît.");
		return false;
	}
		if (document.list.Date.value.length < 1) {
		alert("\nEntrer la date s'il vous plaît.");
		return false;
	}
	return true;
}