function show(id)
{
	document.getElementById(id).style.visibility = "visible";
	mouseX = event.clientX;
//	mouseY = event.clientY;
	document.getElementById(id).style.left = mouseX - 200;
//	document.getElementById(id).style.top = mouseY;

}

function hide(id)
{
	document.getElementById(id).style.visibility = "hidden";
}

function move(id)
{
	mouseX = event.clientX;
//	mouseY = event.clientY;
	document.getElementById(id).style.left = mouseX - 200;
//	document.getElementById(id).style.top = mouseY;
	
}
function afterChangeCombo()
{


	zona = document.getElementById('Zona12').value;
	consumo = document.getElementById('ConsumoAnnuo').value;
	if (zona == 'NORD')
		document.getElementById('KWpPannelli').value = roundTo(consumo / 1200);
	else if (zona == 'CENTRO')
		document.getElementById('KWpPannelli').value = roundTo(consumo / 1450);
	else
		document.getElementById('KWpPannelli').value = roundTo(consumo / 1650);
}

function roundTo(num)
{
    rou = Math.round(num);
	if (rou < num)
		rou = rou + 0.5;
	
	return rou;
}
