<!--
/*
var selezionato = '';

function onmouseover_classi(questo) {
	questo.style.background = '#7aa1e2';
	if(questo.value == questo.name) return;
	questo.value = questo.name; 
	questo.focus();
	//insert_comment_xmlhttprequest(questo.name,document.form_commenti.commento.value);
}

function onmouseout_classi(questo) {
	if(selezionato == questo.name) return; 
	questo.style.background = '#fff';
}

function click_classi(class_name) {
	if(document.getElementById(selezionato) && selezionato != class_name)
		document.getElementById(selezionato).style.background = '#fff';
	selezionato = class_name;
	show_table_comment_xmlhttprequest(class_name);
}*/

function click_edit(k, comm_totali, nome_classe, commento) {
	for(i=1; i<=comm_totali; i++) {
		if(document.getElementById('edit_gray_'+i))
			document.getElementById('edit_gray_'+i).style.display = 'none';
		document.getElementById('comment_'+i).readOnly = true;
		document.getElementById('comment_'+i).value = document.getElementById('comment_hidden_'+i).value;
		document.getElementById('comment_'+i).style.border = '0px solid #bbbbbb';
		document.getElementById('comment_'+i).style.background = 'transparent';
		if(document.getElementById('edit_'+i))
			document.getElementById('edit_'+i).style.display = 'block';
	}
	document.getElementById('edit_'+k).style.display = 'none';
	document.getElementById('edit_gray_'+k).style.display = 'block';
	document.getElementById('comment_'+k).readOnly = false;
	document.getElementById('comment_'+k).style.border = '1px solid #bbbbbb';
	document.getElementById('comment_'+k).style.background = '#fff';
	document.getElementById('confirm_'+k).style.display = 'block';
	document.getElementById('comment_'+k).focus();
}

function click_edit_gray(k, comm_totali, nome_classe, commento) {
	document.getElementById('edit_gray_'+k).style.display = 'none';
	document.getElementById('edit_'+k).style.display = 'block';
	document.getElementById('comment_'+k).readOnly = true;
	document.getElementById('comment_'+k).value = document.getElementById('comment_hidden_'+k).value;
	document.getElementById('comment_'+k).style.border = '0px solid #bbbbbb';
	document.getElementById('comment_'+k).style.background = 'transparent';
	document.getElementById('comment_'+k).blur();
}

function click_confirm(i, tot, nome_classe, commento_originale, nuovo_commento, operazione) { 
	document.getElementById('div_area_info1').style.display = 'block';
	check_comment_xmlhttprequest(i, tot, nome_classe, commento_originale, nuovo_commento, operazione);
}

function click_delete(i, tot, nome_classe, commento) {
	document.getElementById('div_area_info1').style.display = 'block';
	revoke_auth_xmlhttprequest(i,tot,nome_classe,commento);
}


function click_chiudi_area_info1 () {
	document.getElementById('div_area_info1').style.display = 'none';
}


/**
*
* Javascript trim, ltrim, rtrim
* http://www.webtoolkit.info/
*
*
**/

function trim(str, chars) {
    return ltrim(rtrim(str, chars), chars);
}

function ltrim(str, chars) {
    chars = chars || "\\s";
    return str.replace(new RegExp("^[" + chars + "]+", "g"), "");
}

function rtrim(str, chars) {
    chars = chars || "\\s";
    return str.replace(new RegExp("[" + chars + "]+$", "g"), "");
}
//-->
