<script type="text/javascript"> function process() { if (xmlHttp.readyState == 4 || xmlHttp.readyState == 0) { name = encodeURIComponent(document.getElementById('yes').title); xmlHttp.open("GET", "rating.php?ch=543&name=" + name, true); xmlHttp.onreadystatechange = handleServerResponse; xmlHttp.send(null); alert("rating.php?ch=543&name=" + name); } } </script>
<a href="#nul" onclick="process()"><img id="yes" title="yes" src="img/yes.gif" width="19" height="19" alt="Да" align="absmiddle" style="margin-right:10px;" /></a> <a href="#nul" onclick="process()"><img id="no" title="no" src="img/no.gif" width="19" height="19" alt="Нет" align="absmiddle" /></a>