/* These functions are used for form validation, the login form
checks the presence of user input and if the password is of a 
certain length.  If any of these conditions are not met an aler box 
is displyed with a message to the user */  
  
		    function testsignupform()
	{
   		var signupForm = document.getElementById("signup_form");		//put form into variable
    	    if(signupForm.elements["signupform_fname"].value == "")			//If there is no input in username field run compound statement
    	    {
        	alert("Please enter your first name");
       		return false							
    	    }
			if(signupForm.elements["signupform_lname"].value == "")			//If there is no input in username field run compound statement
    	    {
        	alert("Please enter your last name");
       		return false							
    	    }
			if(signupForm.elements["signupform_username"].value == "")			//If there is no input in username field run compound statement
    	    {
        	alert("Please enter your e-mail address");
       		return false							
    	    }
    		if(signupForm.elements["password"].value == "")			//If there is no input in password field run compound statement		
    	    {
        	alert("Please enter a password!");
        	return false
   	    }		
		else if (signupForm.elements["password"].length < 6 )
	    {
		alert("your password must be at least 6 charaters!");		//tell user to enter a password over 4 charters
		return false
	    }
		return true; 
	}
