
<!--   <script language="javascript" type="text/javascript"> -->
     // Get today's current date.
     var now = new Date();

     // Store the day names into an array.
     var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');

     // Store months into an array.
     var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');

     // Calculate the number of the current day in the week.
     var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
     today =  days[now.getDay()] + ", " +  months[now.getMonth()] + " " + date + ", " + now.getFullYear() ;

<!-- </script> -->


    function validate_form ( )
    {
       valid = true;
       if ( document.appform.first.value == "" || document.appform.last.value == "" ) 
       {
          alert ( "Please fill in both first and last names." );
          valid = false;
       }


	email=document.appform.email.value;
	AtPos = email.indexOf("@")
	PerPos = email.lastIndexOf(".")
     
       	if (email == "")
       	{
	    alert ( "An email address is required .");
	    valid = false;
       	}
	else if (AtPos == -1) 
	{
	valid=false;
	alert("Email is missing the @ character");
	}
	else if (PerPos == -1) 
	{
	valid=false;
	alert("Email is missing a period");
	}


    return valid;   //RETURN TRUE OR FALSE BASED ON TESTS WITHIN FUNCTION
    }


  

