// JavaScript Document
function iFrameHeight(cosa) {
if(document.getElementById && !(document.all)) {//Netscape e altri 
//h = document.getElementById(cosa).contentDocument.body.parentNode.scrollHeight;
h = document.getElementById(cosa).contentDocument.body.parentNode.offsetHeight;
//h = document.getElementById(cosa).contentDocument.body.offsetHeight;
//alert(h)
document.getElementById(cosa).height = h;
}
else if(document.all) {//IE
h = document.frames(cosa).document.body.scrollHeight;
document.all[cosa].style.height = h;
}
};


function cambia_classe(cosa,classe) {
if(document.getElementById && !(document.all)) {//Netscape e altri

document.getElementById(cosa).className = classe;
}
else if(document.all) {//IE	
document.all[cosa].className = classe;
}
};

function MM_openBrWindow(theURL,winName,features) { //v2.0
//window.open(theURL,winName,features);
window.open(theURL,winName,features);
}

function check(){
var OK = window.confirm("Sicuro di voler cancellare ?");
if (OK) {
	return true;
	} else {
	return false;
	}
}

function vai_indietro(){
	if(document.getElementById && !(document.all)) {//Netscape e altri 
history.go(-1);
}
else if(document.all) {//IE
history.back();
}
}



	