<!--
function SendTest(format) {
	var tmp = "";
	tmp = "/Cyberbulletin/EnvoiTest.asp?Courriel=" + document.frmFormulaireAbonnement.Courriel.value + "&Type=" + format + "&nooutput=1";
	if (document.frmFormulaireAbonnement.Courriel.value == "") {
		alert("Vous devez entrer votre courriel pour ce test!");
		document.frmFormulaireAbonnement.Courriel.focus();
	} else {
		PopUp(tmp,150,300,1,0,0,0,0,0,0,0);
	}
}

function ValideAbonnement(theForm) {
	if (theForm.Prenom.value == "") {
		alert("Veuillez entrer votre prenom.");
		theForm.Prenom.focus();
		return (false);
	}
	if (theForm.Nom.value == "") {
		alert("Veuillez entrer votre nom.");
		theForm.Nom.focus();
		return (false);
	}
	if (theForm.Courriel.value == "") {
		alert("Veuillez entrer votre courriel.");
		theForm.Courriel.focus();
		return (false);
	}
	if (theForm.Password.value == "") {
		alert("Veuillez entrer un mot de passe.");
		theForm.Password.focus();
		return (false);
	}
	if (theForm.Password.value != theForm.PasswordConfirmation.value) {
		alert("La confirmation de votre mot de passe ne correspond pas à votre mot de passe.");
		theForm.PasswordConfirmation.focus();
		return (false);
	}
	if ((theForm.MunicipaliteID.selectedIndex == "0") && (theForm.EmployeurID.selectedIndex == "0")) {
		alert("Veuillez spécifier votre employeur.");
		theForm.EmployeurAutre.focus();
		return (false);
	}
	return (true);
}

function SubmitForm(objForm, strAction) {
	objForm.action = strAction;
	objForm.submit();
}



function Envoi_Test(format) {

	var tmp = "";
	tmp = "Envoi_Mail.asp?Courriel=" + document.frmTest.Courriel_test.value + "&Type=" + format;
	if (document.frmTest.Courriel_test.value == "") {
		alert("Vous devez entrer votre courriel pour ce test!");
	} else {
		PopUp(tmp,100,250,1,0,0,0,0,0,0,0);
	}

}

function Valide(theForm) {

	if (theForm.Prenom.value == "") {
	    alert("Veuillez entrer votre prenom.");
	    theForm.Prenom.focus();
	    return (false);
	}
	if (theForm.Nom.value == "") {
 		alert("Veuillez entrer votre nom.");
		theForm.Nom.focus();
		return (false);
	}
	if (theForm.Courriel.value == "") {
    	alert("Veuillez entrer votre courriel.");
		theForm.Courriel.focus();
		return (false);
	}
	if (ValiderCourriel(theForm.Courriel.value) != '0') {
		alert("Veuillez entrer un courriel valide.");
		theForm.Courriel.focus();
		return false;
	}
	if (theForm.Municipalite.selectedIndex == "0") {
		alert("Veuillez choisir votre municipalité.");
		theForm.Municipalite.focus();
		return (false);
	}
	return true;

}

// -->