// JavaScript Document

function vote(type, join_id, note, unique) {

	var xmlhttp = get_xmlhttp() ;
	
	xmlhttp.onreadystatechange = function() {
		
		if (xmlhttp.readyState == 4) {
			
			var obj = document.getElementById('vote-system-' + unique) ;
			if (! obj) return ;
			
			obj.innerHTML = "Thank you for your vote !" ;
		}
		
	}
	
	xmlhttp.open("GET", "/php/xmlhttp/votes.php?type=" + type + "&join_id=" + join_id + "&note=" + note) ;
	xmlhttp.send(null) ;
}

