//---------
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.options2;
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.options1;
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.options7;
if (Ctrl.value.search(/^(\(\d+\))?([\s\.\-]?\d{2,})+$/)==-1) {validatePrompt (Ctrl, "Inscrivez votre n° de téléphone !!")
return (false);} else  return (true);}
//---------
function testBox5(form) { 
Ctrl = form.options8;
if (Ctrl.value.search(/^(\(\d+\))?([\s\.\-]?\d{2,})+$/)==-1) {validatePrompt (Ctrl, "Inscrivez votre n° de fax !!")
 return (false);} else  return (true);}
//---------
function testBox6(form) { 
Ctrl = form.options5;
if (Ctrl.value.search(/[a-z-A-Z]{2,}/)==-1) {validatePrompt (Ctrl, "Inscrivez votre adresse !!")
 return (false);} else  return (true);}
//---------
function testBox7(form) { 
Ctrl = form.options4;
if (Ctrl.value.search(/[a-z-A-Z]{2,}/)==-1) {validatePrompt (Ctrl, "Inscrivez votre fonction !!")
 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;}

