function mipiace(id, tipo){
	var randomnumber=Math.floor(Math.random()*1111);
	new Ajax.Request("../../../mipiace.asp?id="+id+"&tipo="+tipo+"&random="+randomnumber,
		{
		method:'get',
		onSuccess: function(content){
			var like_button=document.getElementById('like_button');
			like_button.innerHTML = content.responseText;
		},
		onFailure: function(){ alert('Something went wrong...'); }
		});
}

function mipiaceLivello(level,id, tipo){
	var randomnumber=Math.floor(Math.random()*1111);
	new Ajax.Request(level+"mipiaceLivello.asp?id="+id+"&tipo="+tipo+"&livello="+level+"&random="+randomnumber,
		{
		method:'get',
		onSuccess: function(content){
			var like_button=document.getElementById('like_button');
			like_button.innerHTML = content.responseText;
		},
		onFailure: function(){ alert('Something went wrong...'); }
		});
}

function mipiaceadmin(id, tipo){
	var randomnumber=Math.floor(Math.random()*1111);
	new Ajax.Request("../../../../mipiace.asp?id="+id+"&tipo="+tipo+"&admin=true&random"+randomnumber,
		{
		method:'get',
		onSuccess: function(content){
			campo=document.getElementById(content.responseText);
			
			campo.style.display="none";
		},
		onFailure: function(){ alert('Something went wrong...'); }
		});
}

function registrati(messaggio,lingua){
	Shadowbox.open({
		content:    "../../../../popup_need_login.asp?message="+messaggio+"&lingua="+lingua,
        player:     "iframe",
        title:      "",
        height:     170,
        width:      350
    });
}

function loggati(lingua){
	window.top.location.href='http://www.syncronia.com/login.asp/lingua_'+lingua+'/register.html';
}
