// God is a dj.
// onercelen@msn.com
function mailekle(){
var email=document.getElementById("email").value;
document.getElementById("maillist").innerHTML="<font color=#FF0000><br>E-Posta adresiniz ekleniyor..</font>";
var IS_IE = document.all && window.ActiveXObject &&  navigator.userAgent.toLowerCase().indexOf("msie") > -1 ;   
var  IS_GECKO = document.implementation && document.implementation.createDocument  && window.XMLHttpRequest && true;    
if (IS_GECKO) {http = new XMLHttpRequest();    } else if(IS_IE) {http= new ActiveXObject("Microsoft.XMLHTTP");    }
http.open("get", "mailekle.php?email="+email);
http.onreadystatechange =function(){
if(http.readyState== 4){
	document.getElementById("maillist").innerHTML=http.responseText;
	document.getElementById("email").value=""
}
}
http.send(null);

}

function mailsil(){
var email=document.getElementById("email").value;
document.getElementById("maillist").innerHTML="<font color=#FF0000><br>E-Posta adresiniz siliniyor..</font>";
var IS_IE = document.all && window.ActiveXObject &&  navigator.userAgent.toLowerCase().indexOf("msie") > -1 ;   
var  IS_GECKO = document.implementation && document.implementation.createDocument  && window.XMLHttpRequest && true;    
if (IS_GECKO) {http = new XMLHttpRequest();    } else if(IS_IE) {http= new ActiveXObject("Microsoft.XMLHTTP");    }
http.open("get", "mailsil.php?email="+email);
http.onreadystatechange =function(){
if(http.readyState== 4){
	document.getElementById("maillist").innerHTML=http.responseText;
	document.getElementById("email").value=""
}
}
http.send(null);

}

