function vote(id, poll_id){
var xmlhttp=false; //Clear our fetching variable
        try {
                xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); //Try the first kind of active x object…
        } catch (e) {
                try {
                        xmlhttp = new
                        ActiveXObject('Microsoft.XMLHTTP'); //Try the second kind of active x object
            } catch (E) {
                xmlhttp = false;
                        }
        }
        if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
                xmlhttp = new XMLHttpRequest(); //If we were able to get a working active x object, start an XMLHttpRequest
        }
        var file = 'vote.php?poll_id='+poll_id+'&id='; //This is the path to the file we just finished making
    xmlhttp.open('GET', file + id, true); //Open the file through GET, and add the id we want to retrieve as a GET variable
    xmlhttp.onreadystatechange=function() {
        if (xmlhttp.readyState==4) { //Check if it is ready to recieve data
                var content = xmlhttp.responseText; //The content data which has been retrieved
                if( content != 'n' ){ //If the response was not "n" (meaning it worked)
                      content = content.replace('y', ''); //Get rid of the y infront of our result *
                        document.getElementById('notvoted').style.display = "none"; //Set the inner HTML of the div with the old value in it to the new value **
						document.getElementById('voted').style.display = "block"
                }
        }
        }
        xmlhttp.send(null) //Nullify the XMLHttpRequest
return;
}