var xmlhttp=false;
if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
	xmlhttp = new XMLHttpRequest();
}
if (window.ActiveXObject) {xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");}
function tipit(topic_id,user_id){
	var text	= '';
	xmlhttp.open("GET", "/add_vote.php?topic_id="+topic_id+"&user_id="+user_id);
	xmlhttp.onreadystatechange = function() {
		if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
			text = xmlhttp.responseText;
			if (text != ''){
				document.getElementById('tips_'+topic_id).innerHTML = text;
				document.getElementById('tiplink_'+topic_id).innerHTML = "";
				Fat.fade_element('nr'+topic_id,30,1200,"#89D0E2");
			}			
		}
	}
	xmlhttp.send(null);			
	return false;
}
