sitePath = 'http://www.nonymail.com/';
function a_ar(qS) { try{ mya_ar = new XMLHttpRequest(); } catch (e){ try{ mya_ar = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try{ mya_ar = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e){ alert("You must upgrade your browser to use this feature."); return false; } } } mya_ar.open("GET", qS, true); mya_ar.send(null); }
function updateMail(email,count) { document.getElementById("loader1").style.display = ""; document.getElementById("loader2").style.display = "none"; var q = sitePath + "inbox.php?email="+email+"&clean=1"; a_ar(q); mya_ar.onreadystatechange = function(){ if(mya_ar.readyState == 4){ var np = eval("(" + mya_ar.responseText + ")"); document.getElementById('update').innerHTML = np.html; if(np.mail != count) { document.title = 'New Messages!'; } } } }