Event.observe($('submitLink'),'click',function(event) {
	event.stop();
	Event.stop(event);

	if($F('UserName')=='') {
		alert('Please Enter a username');
		$('username').focus();
	}
	else if($F('Password')=='') {
		alert('Please Enter a password');
		$('password').focus();
	}
	else if($F('Password')!=$F('retypePassword')) {
		alert('Your password does not match your retyped password.');
		$('password').focus();
	}
	else if($F('EmailAddress')=='') {
		alert('Please Enter a email address');
		$('emailaddress').focus();
	}
	else {
		$('signUp').submit();
	}
});