
function addtofavorites(param) {
	

	makePOSTRequest('/ajax/addtofavorites.php', param, GenericCallback2);
}

function flaginappropriate(param) {
	

	makePOSTRequest('/ajax/flag_inappropriate.php', param, GenericCallback2);
}


function GenericCallback2(){
	
	if(http_request.readyState == 4) {
		if(http_request.status == 200) {
			
				response = http_request.responseText;
				//alert(response);
				changeText2(response);
			
		}
		
	}
}

function changeText2(txt){
var textContent = document.getElementById('alert_info');
textContent.innerHTML=txt;
textContent.style.display='block';
}