function updateSchoolRequests(e) {
	
	Event.stop(e);

	/* get signup value */
	var $select = $F("schoolselect");
	
	if ($select == "") {
		showAlert();
	}
	
	if ($select != "") {

		pageTracker._trackPageview("/signup.php?school="+$select);
	
		/* begin ajax post request */
		var $ajx = new Ajax.Request(
			'template/nfive/script/signup.php',
				{
					method:'post',
					parameters: {
						schoolid:$select
					},				
					onFailure: function(response) {
						$err = "<h1>Server Error!</h1><p>We&#8217;re sorry, the server was not able to process your submission. This could be a temporary issue, so please try again in a few minutes. We&#8217;re sorry for the inconvenience.</p>";
						$("content").update($err);
					},
					onComplete: function(response) {												
						document.location.href=response.responseText;
						return false;
					}.bind(this)
				}
			);
		/* end ajax post request */	

	}	
}


function showAlert($field) {
	alert("Please enter your school's name before continuing.");
}