function castvote(url,obj){var callback=processajaxresponse;executexhr(callback,url,obj)}function executexhr(callback,url,obj){var mydate=new date();url+=(url.indexof("?")==-1?"?":"&")+"rnd="+mydate.gettime();if(window.xmlhttprequest){req=new xmlhttprequest();req.onreadystatechange=callback;currentpos=obj;req.open("post",url,false);req.send(null)}else{if(window.activexobject){req=new activexobject("microsoft.xmlhttp");if(req){req.onreadystatechange=callback;currentpos=obj;req.open("post",url,false);req.send(null)}}}}function processajaxresponse(){if(req.readystate==4){if(req.status==200){document.getelementbyid(currentpos).innerhtml=req.responsetext}else{alert("there was a problem retrieving the xml data:\n"+req.statustext+req.responsetext)}}}function check(url){if(confirm("\u662f\u5426\u771f\u7684\u5220\u9664\uff1f")){location.href=url}return false}