
function noahVal() {
   for (var i=0; i < document.valnoah.elements.length; i++) {
   if (document.valnoah.elements[i].value == "") {

              alert("All fields must be filled in completely before submission");
                         return false;
           
         }

         }


             if(-1 == document.valnoah.email.value.indexOf("@")) { 
                document.valnoah.email.focus(); 
                alert("Your email must have a '@'."); 
                return false; 
           }
             if(-1 != document.valnoah.email.value.indexOf(",")) { 
                document.valnoah.email.focus(); 
                alert("Your email must not have a ',' in it"); 
                return false; 
           }
             if(-1 != document.valnoah.email.value.indexOf("#")) { 
               document.valnoah.email.focus(); 
               alert("Your email must not have an '#' in it." ); 
               return false; 
           }
             if(-1 != document.valnoah.email.value.indexOf("!")) { 
               document.valnoah.email.focus(); 
               alert("Your email must not have a '!' in it." ); 
               return false; 
           }
             if(-1 != document.valnoah.email.value.indexOf(" ")) { 
               document.valnoah.email.focus(); 
               alert("Your email must not have a space in it." ); 
               return false; 
           }
             if(document.valnoah.email.value.length == (document.valnoah.email.value.indexOf("@")+1) ) {
              document.valnoah.email.focus();
              alert("Your email must have a domain name after the '@'.");
              return false;
           }



          
             return true;
 
   }

   







