		function doSignup(e)
		{
			if(IsEnter(e))
				signup();
		}

		function signup()
		{
			var email = document.getElementById('email').value;
			if(!email)
			{
				document.getElementById('div_signup_resp').innerHTML = '<div id="div_twitter" style="color:red;border:1px solid red;background:pink;font-size:14px;padding:10px 10px 0 10px;margin-bottom:10px;line-height:1.25em;">\
								You must enter either your email address to signup for the Alpha.<br><br>\
							<\/div>';
			}
			else
			{
				url = '/ajax/citixen?fx=add&email='+email;
				document.getElementById('div_loader').style.display = 'block';
				var xhr = new Ajax(url, {onComplete:signup_Response, method: 'get'}).request();
			}
		}
		
		function signup_Response(_response)
		{
			document.getElementById('div_loader').style.display = 'none';
			switch(_response)
			{
				case 'Created':
					document.getElementById('div_signup_resp').innerHTML = '<div id="div_twitter" style="">\
									Thanks for signing up! You\'ll get a mail as soon as the Beta is ready to launch.<br><br>\
								<\/div>';
					document.getElementById('div_fields').style.display = 'none';
					break;

				case 'Exists':
					document.getElementById('div_signup_resp').innerHTML = '<div id="div_twitter" style="color:red;border:1px solid red;background:pink;font-size:14px;padding:10px 10px 0 10px;margin-bottom:10px;line-height:1.25em;">\
									<b>'+document.getElementById('email').value+'<\/b> is already signed up for the Beta.<br><br>\
								<\/div>';
					break;

				default:
				case 'Failed':
				case 'error':
					document.getElementById('div_signup_resp').innerHTML = '<div id="div_twitter" style="color:red;border:1px solid red;background:pink;font-size:14px;padding:10px 10px 0 10px;margin-bottom:10px;line-height:1.25em;">\
									There was a problem signing your up.<br><br>Please try again or follow <a href="http://twitter.com/citixenme">@citixenme<\/a> for updates.<br><br>\
								<\/div>';
					break;
			}
		}
