function confirmDelete(link)
{
	if (confirm("Вы уверены что хотите удалить эту запись?")) {
			parent.location = link;
	}
}
function showMenu(showId, hideId1, hideId2, hideId3)
{
	$('#'+showId).show();
	$('#'+hideId1).hide();
	$('#'+hideId2).hide();
	$('#'+hideId3).hide();
}

function getText(id_from, id_where)
{
	var text      = $('#'+id_from).html();
	var user_text = $('#'+id_where).html();
	
	text = jQuery.trim(text);
	
	$('#'+id_where).html(user_text+'[quote]'+text+'[/quote]');
}

function dec_timer() {
	
	timer[0] = 1 * timer[0];
	timer[1] = 1 * timer[1];
	timer[2] = 1 * timer[2];
	
	
	if(timer[2] == 59){
		timer[1] = timer[1] + 1;
		
		if(timer[1] == 60 && timer[2] == 59){
			timer[0] = timer[0] + 1;
			timer[1] = 0;
		}
		timer[2] = 00;
	}
	
	$('#timer').html(timer[0] + ':' + (timer[1]<10?'0':'') + timer[1] + ':' + (timer[2]<10?'0':'') + timer[2]);
	timer[2] = timer[2] + 1;
	setTimeout( "dec_timer();", 1000 );
}

$(document).ready(function() {
	setTimeout( "dec_timer();", 1000 );
});
