<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}
function expand_collapse(id, max_item_row, max_item_col) {
	var tit_sez = 'titolo';
	var txt_sez = 'testo';
	var tit_font_size = '130%';
	var plus_minus = document.getElementById('plus_minus' +id);
	if (plus_minus) {
		if (plus_minus.src.indexOf('plus.gif') > 0) {
			plus_minus.src = 'gfx/minus.gif';
		}
		else {
			plus_minus.src = 'gfx/plus.gif';
		}
	}
	for (cont = 0;cont < max_item_col;cont++) {
		var div_tit = document.getElementById(tit_sez + id + '_' + cont);
		var div_txt = document.getElementById(txt_sez + id + '_' + cont);
		if (div_tit && div_txt) {	
			if (div_txt.style.display == 'none') {
				div_txt.style.display = 'block';
				div_tit.style.fontWeight = 'bold';	
				div_tit.style.fontSize = tit_font_size;	
			}
			else {
				div_txt.style.display = 'none';	
				div_tit.style.fontWeight = 'normal';	
				div_tit.style.fontSize = '100%';	
			}
		}
	}
	// controllo se il plus_minus_all deve essere + o -
	expand_all = true;
	for (cont = 0;cont < max_item_row;cont++) {
		var plus_minus = document.getElementById('plus_minus' +cont);
		if (plus_minus) {
			expand_all = expand_all && (plus_minus.src.indexOf('minus.gif') > 0);
		}
	}
	var plus_minus_all = document.getElementById('plus_minus_all');
	if (plus_minus_all) {
		if (expand_all) {
			plus_minus_all.src = 'gfx/minus_green.gif';
		}
		else {
			plus_minus_all.src = 'gfx/plus_green.gif';
		}
	}
}
function expand_collapse_all(max_item_row, max_item_col) {
	var tit_sez = 'titolo';
	var txt_sez = 'testo';
	var tit_font_size = '130%';
	var plus_minus_all = document.getElementById('plus_minus_all');
	if (plus_minus_all) {
		for (cont_row = 0;cont_row < max_item_row;cont_row++) {
			var plus_minus = document.getElementById('plus_minus' +cont_row);
			if (plus_minus) {
				if (plus_minus_all.src.indexOf('plus_green.gif') > 0) {
					plus_minus.src = 'gfx/minus.gif';
				}
				else {
					plus_minus.src = 'gfx/plus.gif';
				}
			}
			for (cont_col = 0;cont_col < max_item_col;cont_col++) {
				var div_tit = document.getElementById(tit_sez + cont_row + '_' + cont_col);
				var div_txt = document.getElementById(txt_sez + cont_row + '_' + cont_col);
				if (div_tit && div_txt) {	
					if (plus_minus.src.indexOf('minus.gif') > 0) {
						div_txt.style.display = 'block';
						div_tit.style.fontWeight = 'bold';	
						div_tit.style.fontSize = tit_font_size;	
					}
					else {
						div_txt.style.display = 'none';	
						div_tit.style.fontWeight = 'normal';	
						div_tit.style.fontSize = '100%';	
					}
				}		
			}
		}
		if (plus_minus_all.src.indexOf('plus_green.gif') > 0) {
			plus_minus_all.src = 'gfx/minus_green.gif';
		}
		else {
			plus_minus_all.src = 'gfx/plus_green.gif';
		}
	}
}
function hide_element(element_id) {
	var div_element = document.getElementById(element_id);
	if (div_element) {
		div_element.style.display = 'none';
	}
}
function hide_show_element(element_id)  {
	div_element = document.getElementById(element_id);
	if (div_element) {
		if (div_element.style.display == 'none') {
			div_element.style.display = 'block';
		}
		else {
			div_element.style.display = 'none';
		}
	}
}
function goto_url(url) {
	window.location.assign(url);
}
function popup(nomefile, larghezza, altezza, x, y)
{
    win_popup = window.open(nomefile, "", "toolbar= 0,location= 0,directories= 0,status= 0,menubar= 0,scrollbars= 0,resizable= 0,marginheight= 0,marginwidth= 1,copyhistory= 0,width=" + (larghezza+30) + ",height=" + (altezza+60));
    x = parseInt(x);
    y = parseInt(y);
    win_popup.moveTo(x, y);
}
function checkForm(theformname, focus_field, message_label) {
	if (document.forms[theformname].elements[focus_field].value == "")
	{
		alert(message_label);
		document.forms[theformname].elements[focus_field].focus();
		return false;
	} 
	return true;
}
function checkForm_login() {
	return checkForm('fm_login', 'login_username', 'Inserire il nome utente') && checkForm('fm_login', 'login_password', 'Inserire la password');
}
function checkForm_search() {
	return checkForm('fm_search', 'search_field', 'Specifica un testo da ricercare');
}

-->
