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() { }
	});
}
