
		// Define starting variables

		var loginurl = "ajax/login.php";
		var loginwhat = "LoginStatus(req.responseText)";

		var emailurl = "ajax/email.php";
		var emailwhat = "EmailNotification(req.responseText)";

	 /* Fucntion CheckLogin
		* Author: Robbie Smith
		* Date: 2/2/2009 8:04 PM
		* input: NULL
		* output: sends request from form to DoCallback with collected data
		* purpose: ajax agent 
		**/

		function CheckLogin()
		{
				var username = document.getElementById("email").value;
				var password = document.getElementById("password").value;

				DoCallback("username="+username+"&password="+password);
		}
		
	 /* Fucntion SendReminderEmail
		* Author: Robbie Smith
		* Date: 2/2/2009 8:04 PM
		* input: NULL
		* output: sends request from form to DoCallback with collected data
		* purpose: ajax agent 
		**/
		
		function SendReminderEmail()
		{
				var username = document.getElementById("emailreminder").value;
				
				DoCallEmailback("username="+username);
		}
		
	 /* Fucntion LoginStatus
		* Author: Robbie Smith
		* Date: 2/2/2009 8:05 PM
		* input: ajax status for login
		* output: alerts the user upon bad login or redirects them upon successful login
		* purpose: ajax agent 
		**/

		function LoginStatus(Status)
		{
				if(Status == 0)
						alert("Bad login!");
		}
		
	 /* Fucntion EmailNotification
		* Author: Robbie Smith
		* Date: 2/2/2009 8:06 PM
		* input: ajax status for email reminder
		* output: alerts the user upon bad username or alerts that the email was sent
		* purpose: ajax agent 
		**/

		function EmailNotification(Status)
		{
				if(Status == 0)
						alert("Could not send email! Check that valid email address and try again.");
				else
						alert("Email Sent!");
		}
