function newVertical(){}

function show_hide_div(div_name) {
	the_div = $(div_name);
	if ( the_div.style.display == "none" ) {
		new Effect.BlindDown(div_name,{duration:0.5});
	}
	else {
		new Effect.BlindUp(div_name,{duration:0.5});
	}
}

var errFunc = function(t) {
	alert('Error ' + t.status + ' -- ' + t.statusText);
}

var erori_com = function(t) {
	rasp = t.responseText;
	div_name = 'comment_div';
	if ( rasp == "success" ) {
		new Effect.BlindUp(div_name,{duration:0.5});
		document.location.reload(1);
	} else if ( rasp.substr(6,13) == "greseli" ) {
		document.location = "http://www.verticalonline.ro";
	} else {
		$('erori').innerHTML = rasp;
		new Effect.Appear('erori');
	}
}