//---------
function testBox1(form) {
        Ctrl = form.email;
       if (Ctrl.value.search(/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+([\.][a-z0-9-]+)+$/)==-1){				
				validatePrompt (Ctrl, "Entrez un e-mail valide !!")
             	 return (false);} else return (true);}
//---------
function testBox2(form) {
        Ctrl = form.options3; if (Ctrl.value=="") {
                validatePrompt (Ctrl, "Inscrivez votre prénom et nom !!")
               return (false);} else return (true);}
//---------
function testBox3(form) {
        Ctrl = form.options5; if (Ctrl.value=="") {
                validatePrompt (Ctrl, "Inscrivez votre adresse !!")
               return (false);} else return (true);}
//---------
function testBox4(form) {
        Ctrl = form.options7; if (Ctrl.value=="") {
                validatePrompt (Ctrl, "Inscrivez votre ville !!")
               return (false);} else return (true);}
//---------
function testBox5(form) {
        Ctrl = form.options6; if (Ctrl.value=="") {
                validatePrompt (Ctrl, "Inscrivez votre code postal !!")
               return (false);} else return (true);}
//---------
function testBox6(form) { Ctrl = form.options8;
        if (Ctrl.value=="") {validatePrompt (Ctrl, "Inscrivez votre n° de téléphone !!")
                return (false);} else  return (true);}
				 
function runSubmit (form, button)  { if (!testBox1(form)) return; if (!testBox2(form)) return; if (!testBox3(form)) return; if (!testBox4(form)) return; if (!testBox5(form)) return; if (!testBox6(form)) return;


alert ("Toutes les entrées sont bonnes, votre demande est en train d'être envoyée!!");
        //document.test.submit();       // un-comment to submit form
        form.submit();} 
//---------
function validatePrompt (Ctrl, PromptStr) {alert (PromptStr)
        Ctrl.focus(); return;}
function loadDoc() { // initial focus; use if needed //document.test.inputbox1.focus ();
        return;}

