function sndReq(vote,id_num,ip_num,units) {
	var theUL = document.getElementById('unit_ul'+id_num); // the UL
	
	// switch UL with a loading div
	theUL.innerHTML = '<div class="loading"></div>';
	
	xmlhttp.open('get', '/flv/rpc.php?j='+vote+'&q='+id_num+'&t='+ip_num+'&c='+units);
	xmlhttp.onreadystatechange = handleResponse;
	xmlhttp.send(null);
}

function handleResponse() {
	if(xmlhttp.readyState == 4) {
		if (xmlhttp.status == 200) {
			var response = xmlhttp.responseText;
			var update = new Array();
			if (response.indexOf('|') != -1) {
				update = response.split('|');
				changeText(update[0], update[1]);
			}
		}
	}
}