// JavaScript Document
function iFrameHeight(cosa, agg) {
	if ( typeof(agg) == 'undefined'){
		agg = 0;
		}
//if(document.getElementById && !(document.all)) {//Netscape e altri 
//h_frame = document.getElementById(cosa).contentDocument.body.parentNode.offsetHeight;
//document.getElementById(cosa).height = h_frame;
//}
//else if(document.all) {//IE
//h_frame = document.frames(cosa).document.body.scrollHeight;
//document.all[cosa].style.height = h_frame;
//}

if(document.all) {//IE
h_frame = document.frames(cosa).document.body.scrollHeight;
document.all[cosa].style.height = h_frame +agg;
}else {//Netscape e altri 
h_frame = document.getElementById(cosa).contentDocument.body.parentNode.offsetHeight;
document.getElementById(cosa).height = h_frame+agg;
}
window.scrollTo(0,0)
};


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();
}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  zoom = window.open(theURL,winName,features);
}

function chiudizoom() { 
	if (window.zoom){
		zoom.close();
	}
}


	
