function email_s(){
	var url = "email_suggest.php";
	var email = $('email').value;
	var c = document.forms[0].c.value;
	if (email == ""){
		$('image_field').disabled=0;
		return;
	}
	var ajax = new Request.JSON({ 
		url: url,
		method: 'get',
		data: 'a=' + $time()+$random(1, 10000) + '&email='+email+'&c='+c,
		noCache: true,
		onRequest: function(){
				$('image_field').disabled=1;
		},
		onComplete: function(response){
				if (response == "0" || response == "valid" || response == null || response == undefined){
					$('image_field').disabled=0;	
					return;
				}else{
					$('email').value = "";
					if (response == "invalid"){
						alert("Sorry, that email appears to be incorrect.\nPlease try again.\n"+email);
						$('image_field').disabled=1;	
						$('email').focus();
						$('email').value = email;
						return;
					}	
					if (response.length>0 && $type(response) == "array"){
						for (var i = 0;i < response.length; i++){
							var r=confirm("Do you mean: " + response[i]);
							if (response[i] != ""){
								if (r==true){
									$('email').value = response[i];
									$('image_field').disabled=0;
									return;
								}
							}
						}	
						alert("Sorry, that email appears to be incorrect.\nPlease try again.\n"+email);
						$('image_field').disabled=1;	
						$('email').focus();
						$('email').value = email;
						return;
					}
				}	

		}
	}).send();
}	


