<!--
var http_show_table_comment = getHTTPObject();
var url_show_table_comment = "show_table_comment.php?classe=";

function handleHttpResponse_show_table_comment() {
	if (http_show_table_comment.readyState == 4) { 
		if(http_show_table_comment.status == 200 || http_show_table_comment.status == 304 || http_show_table_comment.status == 307){ 
			if(http_show_table_comment.responseText.indexOf('Non &egrave possibile rimuovere') == -1) {
				//if(dd.ie) document.getElementById('co').style.display = 'block';
				//else 
				document.getElementById('commenti').style.display = 'block';
				document.getElementById('commenti').innerHTML = http_show_table_comment.responseText;
				document.getElementById('area_info').innerHTML = '';
				document.getElementById('div_area_info').style.display = 'none';
			}
			else {
				document.getElementById('commenti').innerHTML = '';
				document.getElementById('div_area_info').style.display = 'block';
				document.getElementById('area_info').innerHTML = http_show_table_comment.responseText;
				document.getElementById('commenti').style.display = 'none';
			}
			occupato_show_table_comment = false;
		}
	}
}


var occupato_show_table_comment = false;
function show_table_comment_xmlhttprequest(class_name) {
	if (!occupato_show_table_comment && http_show_table_comment) { 
		http_show_table_comment.open("GET", url_show_table_comment+class_name, true);
		http_show_table_comment.onreadystatechange = handleHttpResponse_show_table_comment;
		occupato_show_table_comment = true;
		http_show_table_comment.send(null);
	}
}


function getCheckedValue(radioObj) {
	if(!radioObj)
		return "";
	var radioLength = radioObj.length;
	if(radioLength == undefined)
		if(radioObj.checked)
			return radioObj.value;
		else
			return "";
	for(var i = 0; i < radioLength; i++) {
		if(radioObj[i].checked) {
			return radioObj[i].value;
		}
	}
	return "";
}

function getCheckedNumber(radioObj) {
	if(!radioObj)
		return -1;
	var radioLength = radioObj.length;
	if(radioLength == undefined)
		if(radioObj.checked)
			return 0;
		else
			return -1;
	for(var i = 0; i < radioLength; i++) {
		if(radioObj[i].checked) {
			return i;
		}
	}
	return -1;
}
//-->
