var xmlhttp;if(!xmlhttp&&typeof XMLHttpRequest!="undefined"){try{xmlhttp=new XMLHttpRequest()}catch(e){xmlhttp=false}}function myXMLHttpRequest(){var C;try{C=new ActiveXObject("Msxml2.XMLHTTP")}catch(B){try{C=new ActiveXObject("Microsoft.XMLHTTP")}catch(A){C=false}}if(!C&&typeof XMLHttpRequest!="undefined"){try{var C=new XMLHttpRequest()}catch(B){var C=false;alert("couldn't create xmlhttp object")}}return(C)}function sndReq(C,D,A,B){var E=document.getElementById("unit_ul"+D);E.innerHTML='<div class="loading"></div>';xmlhttp.open("get","rpc.php?j="+C+"&q="+D+"&t="+A+"&c="+B);xmlhttp.onreadystatechange=handleResponse;xmlhttp.send(null)}function handleResponse(){if(xmlhttp.readyState==4){if(xmlhttp.status==200){var A=xmlhttp.responseText;var B=new Array();if(A.indexOf("|")!=-1){B=A.split("|");changeText(B[0],B[1])}}}}function changeText(A,D){var E=(document.all)?1:0;var B=0;if(parseInt(navigator.appVersion)>=5){B=1}if(B){var C=document.getElementById(A);C.innerHTML=D}else{if(E){document.all[A].innerHTML=D}}}var ratingAction={"a.rater":function(A){A.onclick=function(){var I=this.href.replace(/.*\?(.*)/,"$1");var C=I.split("&");var F=new Array();for(j=0;j<C.length;j++){var G=C[j].replace(/(.*)=.*/,"$1");var E=C[j].replace(/.*=(.*)/,"$1");F[G]=E}var J=F.q;var B=F.j;var H=F.t;var D=F.c;sndReq(B,J,H,D);return false}}};Behaviour.register(ratingAction);