var xmlhttp; if (!xmlhttp && typeof XMLHttpRequest != 'undefined'){ try {xmlhttp = new XMLHttpRequest ();} catch (e) {xmlhttp = false} } function myXMLHttpRequest(){ var xmlhttplocal; try {xmlhttplocal = new ActiveXObject ("Msxml2.XMLHTTP")} catch (e) { try {xmlhttplocal = new ActiveXObject ("Microsoft.XMLHTTP")} catch (E) {xmlhttplocal = false;} } if (!xmlhttplocal && typeof XMLHttpRequest != 'undefined') { try {var xmlhttplocal = new XMLHttpRequest ();} catch (e) {var xmlhttplocal = false;} } return (xmlhttplocal); } var mnmxmlhttp = Array (); var mnmString = Array (); var mnmPrevColor = Array (); var responsestring = Array (); var myxmlhttp = Array (); var responseString = new String; function menealo(user,id,htmlid,md5,value){ if(xmlhttp) { url = "http://www.waakee.com/vote.php"; var mycontent = "id=" + id + "&user=" + user + "&md5=" + md5 + "&value=" + value; anonymous_vote = false; if (anonymous_vote == false && user == '0') { window.location="http://www.waakee.com/login.php?return="+location.href; } else { mnmxmlhttp[htmlid] = new myXMLHttpRequest(); if (mnmxmlhttp) { mnmxmlhttp[htmlid].open ("POST", url, true); mnmxmlhttp[htmlid].setRequestHeader ('Content-Type','application/x-www-form-urlencoded'); mnmxmlhttp[htmlid].send (mycontent); errormatch = new RegExp ("^ERROR:"); mnmxmlhttp[htmlid].onreadystatechange = function () { if (mnmxmlhttp[htmlid].readyState == 4) { mnmString[htmlid] = mnmxmlhttp[htmlid].responseText; } } } } } } function pliggit() { var check = window.parent.submit_url; if(!check) { var url1 = document.URL; } else { var url1 = window.parent.submit_url; } var url2 = 'http://www.waakee.com/tools/api/url.php?url='+url1; document.write(''); } pliggit();