function sndReq(vote,id_num,url,units,tip)
{
	if(iCallId)	iCallId++;

	var theUL = document.getElementById('unit_ul'+id_num); // the UL	
	// switch UL with a loading div
	theUL.innerHTML = '<div class="loading"></div>';
	
	var newUrl=url+'?j='+vote+'&q='+id_num+'&t='+tip+'&c='+units;
	var HttpReq = new HttpAsyncPostRequest('vote_' + iCallId);
	HttpReq.Send(url, {vote:vote, id: id_num, tip:tip, units: units }, Vote_Result);
}
function Vote_Result(sResponse, sErrCode, sErrMessage)
{
    if(sResponse.indexOf('|') != -1)
    {
        update = sResponse.split('|');
        changeText(update[0], update[1]);
    }
}
function changeText( div2show, text )
{
    var viewer = document.getElementById(div2show);
    viewer.innerHTML = text;
}