Hello everyone. I'm I need of some help with some field validation. What I'm trying to accomplish seems pretty simple. I have a few text fields that I want to require the user to complete completely. I've manage to get it to work to the point where it requires the user to fill in all fields but my trouble begins trying to require the user to format his/her email correctly. My biggest problem is lack of JavaScript experience. Here's my script so far.

Code:
<html>
<head>
<title>example</title>
<script type="text/javascript">
/*Validate Required Fields*/
function checkForm(formObj)
{
   var theForm = formObj.elements
   for(var x = 0; x < theForm.length; x++)
   {
      if(theForm[x].getAttribute('type') == 'text' && theForm[x].value=='')
	  {
         alert("Please fill in all information.");
         return false;
      }
   }
   return true;
}
</script>
<script>
/* Validate Email */
function validate_email(field,alerttxt)
{
with (field)
{
apos=value.indexOf("@")
dotpos=value.lastIndexOf(".")
if (apos<1||dotpos-apos<2) 
  {alert(alerttxt);return false}
else {return true}
}
}function validate_form(thisform)
{
with (thisform)
{
if (validate_email(email,"Please format your email correctly, name@domain.com")==false)
  {email.focus();return false}
}
}

</script>
</head>
<body>
<span class="content"><form action="proposal1.php"
			  onsubmit="return checkForm(this); return      
                                        validate_form(this);"
		               method="post">
		  <p>Your First Name: 
		  <input type="text" 
		         name="fname"></p>
		  <p>Your Last Name: 
		  <input type="text" 
		         name="lname"></p>
		  <p>Your Phone: 
		  <input type="text"
		         name="phone"></p>
		  <p>Company: 
		  <input type="text" 
		         name="company"></p>
		  <p>Email: 
		  <input type="text" 
		         name="email"></p>
		  <p>Website: 
		  <input type="text" 
		         name="website"></p>
		  <p>Additional Comments: 
		  <textarea name="comment" rows="10" cols="50"></textarea></p>
		  
		  <input type="submit"
		            value="Request">
</form></span> 
</body>
</html>
I know the first part of my script is working but I have no idea how to get the second part to work.