
function checkemailforvote(email,newsid)
{
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	var url12="action.php?nid="+newsid+"&email="+email+"&action=checkemail";
	xmlHttp.onreadystatechange=function(){
		if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){
			var response	=	xmlHttp.responseText;
			if(response==2){
				alert("Kullandiginiz e-posta adresi bir buzla kullanicisi tarafindan kullaniliyor. Lütfen buzlamakiçin giris yapin.");
			}else{
				if(response==1){
					alert("Bu e-posta adresi bu haber için kullanıldı.");
				}else{
					window.location.href="votebyemail.php?to="+email+"&id="+newsid;
				}
			}
		}
	}
	xmlHttp.open("GET",url12,true);
	xmlHttp.send(null);
}
