//================================================
// initiate ajax vote
//================================================
function poemvote ( voteid , votescore ) 
{
	// status
	document.getElementById("votedisplay").innerHTML = "Processing..." ;
	document.getElementById("voteoptions").style.display = "none" ;
	
	// make url
	var url="/ajax/vote/vote.php?voteid=" + voteid + "&votescore=" + votescore + "&nocache=" + Math.random() ;
	
	// instantiate ajax
	ajaxobject = getajax () ;					// get object
	setajaxevent ( ajaxobject , poemreturn ) ;	// point event to poemreturn function
	ajaxobject.open ( "GET" , url , true ) ;		// true means asyncronous, i.e. must wait for operation to complete
	ajaxobject.send ( null ) ;					// send request
}

//================================================
// give user feedback
//================================================
function poemreturn ( ajaxtext )
{
	document.getElementById("votedisplay").innerHTML = ajaxtext ;
}