
function td_onmouseover(idCella,idCellaSx,idCellaAlto,tipo)
{
	var cella,cellasx;
	cella = document.getElementById(idCella);
	cella.className = "bordoarancione_bottomright";
	switch(tipo)
	{
		case 'solo_sx':
			cellasx = document.getElementById(idCellaSx);
			with (cellasx.style)
			{
				borderRightColor='#fe7002';
			}
		break;
		case 'sx_e_alto':
			cellasx = document.getElementById(idCellaSx);
			with (cellasx.style)
			{
				borderRightColor='#fe7002';
			}
			cellaalto = document.getElementById(idCellaAlto);
			with (cellaalto.style)
			{
				borderBottomColor='#fe7002';
			}
		break;
		case 'solo_alto':
			with (cella.style)
			{
				borderLeftColor='#fe7002';
			}
			cellaalto = document.getElementById(idCellaAlto);
			with (cellaalto.style)
			{
				borderBottomColor='#fe7002';
			}
		break;
	}
}

function td_onmouseout(idCella,idCellaSx,idCellaAlto,tipo)
{
	var cella,cellasx;
	cella = document.getElementById(idCella);
	cella.className = "bordogrigio_bottomright";
	switch(tipo)
	{
		case 'solo_sx':
			cellasx = document.getElementById(idCellaSx);
			with (cellasx.style)
			{
				borderRightColor='#4F4A46';
			}
		break;
		case 'sx_e_alto':
			cellasx = document.getElementById(idCellaSx);
			with (cellasx.style)
			{
				borderRightColor='#4F4A46';
			}
			cellaalto = document.getElementById(idCellaAlto);
			with (cellaalto.style)
			{
				borderBottomColor='#4F4A46';
			}
		break;
		case 'solo_alto':
			with (cella.style)
			{
				borderLeftColor='#4F4A46';
			}
			cellaalto = document.getElementById(idCellaAlto);
			with (cellaalto.style)
			{
				borderBottomColor='#4F4A46';
			}
		break;
	}
}
