function showInfo(div, leftPos)
{
	//Set the left position of absolute div
	windowWidth = document.body.clientWidth;
	table = document.getElementById("tabella");
	tablewidth = table.offsetWidth;
	tableLeft = (windowWidth - tablewidth) / 2;

		if (tableLeft <= 0)
		{
			marginLeft = document.body.getAttribute("leftmargin");
			leftDiv = parseInt(marginLeft) + parseInt(leftPos);
		}
		else
			leftDiv = parseInt(tableLeft) + parseInt(leftPos)-210;

	div.style.posLeft = leftDiv;
	//showShadow(div, leftDiv);

	div.style.visibility = "visible";
}

function hideInfo(div)
{
	//hideShadow();
	div.style.visibility = "hidden";
}


function imgOn(imgName) 
{
	if (document.images) 
	{
    	document[imgName].src = eval(imgName + "on.src");
    }
}

function imgOff(imgName) 
{
	if (document.images) 
	{
		document[imgName].src = eval(imgName + "off.src");
	}
}

function navBar( tableCellRef, hoverFlag, colore) 
{
	if ( hoverFlag ) 
	{
		tableCellRef.style.backgroundColor = '#F3FEF1';
	} 
	else 
	{
		tableCellRef.style.backgroundColor = colore;
	}
}


/*******************************************************************************
/*********************************************************************************/
function winImageOpen(URL,features)
{
	if (features)
	{
		window.open(URL, null, features + "scrollbars=no,resizable=no");
	}
	else
	{
		window.open(URL, null, "width=660,height=510,scrollbars=no,resizable=no");
	}
}

function printResult()
{
	var divPrint = document.getElementById('print');
	divPrint.style.visibility = "hidden";
	window.print();

}


function openWindow(theURL,winName,features)
{
  window.open(theURL,winName,features);
}


function openModal(indirizzo, parametri, width, height)
{
	strFeatures = "dialogWidth="+width+"; dialogHeight="+height+"; scroll=auto; center=yes; border=thin;"
	alert(strFeatures);
	finestra = window.showModalDialog(indirizzo, parametri ,  strFeatures);
}


{
	
	}