function form_resa(val) {
	form=document.forms["bon"];

        if (form.email.value!=0) {
		
                                
                        if  (form.email.value) {

                                mail = form.email.value;
								arobase = mail.indexOf("@");
								espace = mail.indexOf(" ");
                                doublarob = mail.indexOf("@",arobase+1);
                                right = mail.substring(arobase + 1,mail.length);
                                point = right.lastIndexOf(".");
                                test = right.length-point;
								

                                                if ((espace==-1)&&(doublarob==-1)&&(arobase>1)&&(point>1)&&(test<6)&&(test>2)) {
                                                                form.submit();
                                                        } 
                                                else {
                                                                alert("You did not fill correctly your e-mail.");
                                                        }
                                        } 
                                else {
                                        alert("You did not fill your email. \nIf you don't have an e-mail, print this page and send it by fax : (33) 05 65 71 29 09.");
                                        }
                                }
                                
        else { 
                        alert("You did not fill your email. \nIf you don't have an e-mail, print this page and send it by fax : (33) 05 65 71 29 09.");
                }
                                
}

function form_inscrip(val) {
form=document.forms["bon"];

                                
                        if  (form.email.value) {

                                mail = form.email.value;
								arobase = mail.indexOf("@");
								espace = mail.indexOf(" ");
                                doublarob = mail.indexOf("@",arobase+1);
                                right = mail.substring(arobase + 1,mail.length);
                                point = right.lastIndexOf(".");
                                test = right.length-point;
								

                                                if ((espace==-1)&&(doublarob==-1)&&(arobase>1)&&(point>1)&&(test<6)&&(test>2)) {
                                                                form.submit();
                                                        } 
                                                else {
                                                                alert("You did not fill correctly your e-mail.");
                                                        }
                                        } 
                                else {
                                        alert("You did not fill your email.");
                                        }
                                
                                
}

function form_desins(val) {
form=document.forms["bon"];

                                
                        if  (form.email.value) {

                                mail = form.email.value;
								arobase = mail.indexOf("@");
								espace = mail.indexOf(" ");
                                doublarob = mail.indexOf("@",arobase+1);
                                right = mail.substring(arobase + 1,mail.length);
                                point = right.lastIndexOf(".");
                                test = right.length-point;
								

                                                if ((espace==-1)&&(doublarob==-1)&&(arobase>1)&&(point>1)&&(test<6)&&(test>2)) {
                                                                form.submit();
                                                        } 
                                                else {
                                                                alert("You did not fill correctly your e-mail.");
                                                        }
                                        } 
                                else {
                                        alert("You did not fill your email.");
                                        }
                                
                                
}

