
function sndReq(vote,id_num,units) {

	var theUL = Ext.get('unitul'+id_num); // the UL
	
	// switch UL with a loading div
	theUL.update( '<div class="loading"></div>' );
		    
	var con = new Ext.data.Connection();
	var geturl = 'http://www.worldcasinodirectory.com/layout/ratings/rpc.php?j='+vote+'&q='+id_num+'&c='+units;
	con.request({
		url: geturl,
		callback: function(opts,success,response) {
			if(response.responseText.indexOf('|') != -1) {
				var update = new Array();
				update = response.responseText.split('|');
				var theUL = Ext.get(update[0]); // the UL
	
				// switch UL with a loading div
				theUL.update( update[1] );
				return false;
			}
		}
	});
}

