function validEmail(email) {return true;}
function signup()
{
	var name = $('name').value;
	var email = $('email').value;
var uniName = $('uniName').value;
	if(validEmail(email))
	{
$('signup').innerHTML = "Please wait... ";
		var url = "signup.php";
		var myAjax = new Ajax.Request( 
				url, 
				{
					method: 'post',
   				        parameters: 'name=' + name + '&email=' + email + '&uniName=' + uniName,
					onComplete: function(originalRequest){
						$('signup').innerHTML = "<P><P><P><font size='3'>Thank you, we will notify you soon! <b>Remember to tell your friends and family about us!</b></font>";
					}
				});		
	}
}

var Rules = {
"input#name:focus" : function (anInput) { anInput.style.border = "1px solid #666"; },
"input#name:blur" : function (anInput) { anInput.style.border = "1px solid #CCC"; },
"input#email:focus" : function (anInput) { anInput.style.border = "1px solid #666"; },
"input#email:blur" : function (anInput) { anInput.style.border = "1px solid #CCC"; },
"input#uniName:focus" : function (anInput) { anInput.style.border = "1px solid #666"; },
"input#uniName:blur" : function (anInput) { anInput.style.border = "1px solid #CCC"; }
}
Event.observe(window, "load",
	function(){
		EventSelectors.start(Rules);
	}
);


