function checkEmail(address,domain,subd) {
	if (subd == null) subd = "join.";
	var d = new Date()
	var url = "http://"+subd+domain+"/signup/_scripts/checkEmail.php";
	new Ajax.Request(url, {
			method: 'post',
			parameters: 'email='+address+'&time='+Math.random(),
			onLoading: function() {
				$('checkEmailStatus').show();
			},
			onComplete: function() {
				$('checkEmailStatus').hide();
			},
			onSuccess:function(result) {
				if (result.responseText == "0") {
					$('emailCheckError').show();				
				} else {
					$('emailCheckError').hide();
				}
			},
			onFailure:function() {$('generator').enable();alert('There was a problem retreiving your data - please try again... \n'+ response.substr(2));}
	});
}

function submitAddress(address,ip, domain,subd) {
	if (subd == null) subd = "join.";
	var url = "http://"+subd+domain+"/signup/_scripts/sendEmail.php";
	new Ajax.Request(url, {
			method: 'post',
			parameters: 'email='+address+'&realIP='+ip+'&time='+Math.random(),
			onComplete: function() {
				document.signupForm.submit();
			},
			onSuccess:function(result) {
				
			}
	});
}
