title: JavaScript Load New Page Question
body: <p>What I am looking to do is if a user complete a form it will provide access to a new location.</p>
  
  <pre><code>&lt;script language="JavaScript" type="text/javascript"&gt;     
  &lt;!--     
  function validateForm(theForm) {     
   var firstname = theForm.firstname.value; 
   var lastname = theForm.lastname.value;      
   var email = theForm.email.value;     
   if (firstname == "") {     
     alert("Please fill in your First Name.");     
     theForm.firstname.focus();     
     return false;     
   }   
   if (lastname == "") {     
     alert("Please fill in your Last Name.");     
     theForm.lastname.focus();     
     return false;     
   } 
  
   if (email == "") {     
     alert("Please fill in your email address.");     
     theForm.email.focus();     
     return false;     
   }     
   return true;     
  }
  </code></pre>
  
  <p>I know this part is wrong but I have no idea how to go about doing it.  any help would be nice.. </p>
  
  <pre><code> if lastname=""
   if firstname=""
   if email=""
   load('www.google.com');
  </code></pre>