var PRESSED_COLOR = "white";
var OUT_COLOR = "ivory";


function print_page() {
	var VERSION = parseInt(navigator.appVersion);
	if ( VERSION <=3 ) {
		alert("Non e' possibile stampare con questa versione del browser.")
	} else {
		var NS = (navigator.appName == "Netscape");
		NS = 1
		if (NS) {
			window.print() ;  
		} else {
			var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
			document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
			WebBrowser1.ExecWB(6, 2);
			WebBrowser1.outerHTML = "";  
		}
	}
}

function open_helpWindow(thisObj,HELP_TYPE,SIGLA_LANG,target) {
	var options = "toolbar=yes,status=no,menubar=no,scrollbars=yes,resizable=yes,width=735,height=300";
	var url = "/cgi-bin/executeHelp.cgi?"
//	alert("HELP_TYPE="+HELP_TYPE+"=SIGLA_LANG="+SIGLA_LANG+"=target="+target)

	if ( target==null ) target = "Help"
	url += "HELP_TYPE=" + escape(HELP_TYPE)
	url += "&SIGLA_LANG=" + escape(SIGLA_LANG)
	newwindow = window.open(url,target,options);
	return false
}

function buttonOut(bottone, outColor)
{
	bottone.style.backgroundColor=outColor;
	bottone.style.borderTopWidth='1px';
	bottone.style.borderLeftWidth='1px';
}

function buttonOver(bottone, overColor)
{
	bottone.style.backgroundColor=overColor;
	bottone.style.borderTopWidth='1px';
	bottone.style.borderLeftWidth='1px';
}

function buttonDown(bottone, pressedColor)
{
	bottone.style.backgroundColor=PRESSED_COLOR;
	bottone.style.borderTopWidth='2px';
	bottone.style.borderLeftWidth='2px';
}
