//---------
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.options18; if (Ctrl.value.search(/[a-z-A-Z]{2,}/)==-1) {
                validatePrompt (Ctrl, "Inscrivez votre prénom et nom !!")
               return (false);} else return (true);}
//---------
function testBox3(form) { Ctrl = form.options12;
        if (Ctrl.value.search(/[a-z-A-Z]{2,}/)==-1) {validatePrompt (Ctrl, "Inscrivez le nom de votre entreprise !!")
                return (false);} else  return (true);}
//---------
function testBox4(form) { Ctrl = form.options13;
        if (Ctrl.value.search(/[a-z-A-Z]{2,}/)==-1) {validatePrompt (Ctrl, "Inscrivez votre adresse postale !!")
                return (false);} else  return (true);}
//---------
function testBox5(form) { Ctrl = form.options14;
        if (Ctrl.value.search(/[a-z-A-Z]{2,}/)==-1) {validatePrompt (Ctrl, "Inscrivez votre ville !!")
                return (false);} else  return (true);}
//---------
function testBox6(form) { Ctrl = form.options15;
        if (Ctrl.value=="") {validatePrompt (Ctrl, "Inscrivez votre code postal !!")
                return (false);} else  return (true);}
//---------
function testBox7(form) { Ctrl = form.options16;
        if (Ctrl.value.search(/^(\(\d+\))?([\s\.\-]?\d{2,})+$/)==-1) {validatePrompt (Ctrl, "Inscrivez votre n° de téléphone !!")
                return (false);} else  return (true);}
//---------
function testBox8(form) { Ctrl = form.options17;
        if (Ctrl.value.search(/[a-z-A-Z]{2,}/)==-1) {validatePrompt (Ctrl, "Inscrivez l'url à référencer !!")
                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; if (!testBox7(form)) return; if (!testBox8(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;}
