function getObjectFromID(id){var theObject;if(document.getElementById)
theObject=document.getElementById(id);else
theObject=document.all[id];return theObject;}
function loadXMLDoc(url,readyStateFunction,async)
{if(async==undefined)
async=false;if(window.ActiveXObject){req=new ActiveXObject("MSXML2.XMLHTTP.3.0");if(req){if(readyStateFunction)req.onreadystatechange=readyStateFunction;req.open("GET",url,async);req.send();}}else if(window.XMLHttpRequest){req=new XMLHttpRequest();req.onreadystatechange=readyStateFunction;req.open("GET",url,async);req.send(null);}}
function castVote(vote,wallpaperid){var thevote=vote;var thewallpaper=wallpaperid;var thediv=getObjectFromID("voting");loadXMLDoc("/common/php/vote.php?vote="+thevote+"&wallpaperid="+thewallpaper);thediv.innerHTML=req.responseText;}
