	// Form Validation Script by Topos Productions
	function clogin_Validator(theForm)
	{			
	
			//Validates Email Address Textbox
			if (theForm.email.value == "")
			{
			  alert("Please enter your email address.");
			  theForm.email.focus();
			  return (false);
			}			
 			var teststr = (theForm.email.value);
  			var iserr=false;
			  if (!teststr=='')
			  { 
				  // there must be >= 1 character before @, so we
				  // start looking at character position 1 
				  // (i.e. second character)
				  var i = 1;
				  var sLength = teststr.length;
				  // look for @
				  while ((i < sLength) && (teststr.charAt(i) != "@"))
				  { 
					 i++;
				  }
				  if ((i >= sLength) || (teststr.charAt(i) != "@")) 
				  {
					 iserr=true;
				  }
				  else 
				  {
					 i += 2;
					 // look for "."
					 while ((i < sLength) && (teststr.charAt(i) != "."))
					 { 
						i++;
					 }
					 // there must be at least one character after the "."
					 if ((i >= sLength - 1) || (teststr.charAt(i) != ".")) 
					 {
						iserr = true;
					 }
				  }
			   }
			   if (iserr)
			   {
				  alert('Please enter a valid email address.');
				  theForm.email.focus();
   			      return (false);				  
			   }

			//Validates that password is at least 8 characters long	
			if (theForm.password.value.length < 8)
			{
			  alert("Please enter a password between 8-16 characters long.");
			  theForm.password.focus();
			  return (false);
			}	
			 
	}

	//-->	
	
	