function getCaptcha(url, targetElement) {
	new Ajax.Request(
		url,{
			onSuccess: function(response) {
				if(response.responseText.length > 0) {
					$(targetElement).src = response.responseText;
				}
		  	}
		}	
	);
	
	
}

function displayVotare(article_id,nota){

	customParams = new Hash( {
		"article_id" : article_id,
		"nota" : nota
	});

	doAjaxActionUpdater(baseURL + "index.php?c=main&m=votare", customParams,"votare", 0);

	alert("Iti multumim pentru votul acordat!");

}

function showRegisterOverlay() {
	
	getCaptcha(baseURL + 'index.php?c=main&m=getCaptcha', 'img-captchaR');
	$('sign_up').show();
	return false;
}


function displayPiataTop(){
	
	$('piatatablepop').show();
	return false;
}

