function processGetPost(){
var myajax=ajaxpack.ajaxobj
var myfiletype=ajaxpack.filetype
if (myajax.readyState == 4){ //if request of file completed
if (myajax.status==200 || window.location.href.indexOf("http")==-1){ //if request was successful or running script locally
//document.getElementById('masa').innerHTML = myajax.responseText;
	if(myajax.responseText.indexOf('|') != -1) {
		update = myajax.responseText.split('|');
		document.getElementById('unit_long'+update[0]).innerHTML = update[1];
	}
}
}
}

function sndReq(nota, imgId) {
	var element = document.getElementById('unit_long'+imgId);
	//new Effect.Fade(element);
    element.innerHTML = '<div class="loading"></div>';
	return ajaxpack.getAjaxRequest("vote.php", "note=" + nota + "&id=" + imgId, processGetPost, "txt");
}