
function carinfo(a, b, c, d, e)
{
	/*
	dd.elements.layer1.write(a);
	dd.elements.layer2.write(b);
	dd.elements.layer3.write(c);
	dd.elements.layer4.write(d);
	dd.elements.layer5.write(e);
	*/

	var NN4         = (document.layers);
	
	var l_1     = (NN4) ? document.layers["layer1"] : document.getElementById("layer1");;
	var l_2     = (NN4) ? document.layers["layer2"] : document.getElementById("layer2");;
	var l_3     = (NN4) ? document.layers["layer3"] : document.getElementById("layer3");;
	var l_4     = (NN4) ? document.layers["layer4"] : document.getElementById("layer4");;
	var l_5     = (NN4) ? document.layers["layer5"] : document.getElementById("layer5");;

	if(NN4)
	{
		l_1.write(a);
		l_2.write(b);
		l_3.write(c);
		l_4.write(d);
		l_5.write(e);
	}
	else
	{
		l_1.innerHTML = a;
		l_2.innerHTML = b;
		l_3.innerHTML = c;
		l_4.innerHTML = d;
		l_5.innerHTML = e;
	}
}








var row_memory = new Array;


function hilite(table_id, row, action, popuptext)
{
	//alert(table_id);

	default_color =		"#FFFFFF";
	hilite_color =		"#E7F4FE";
	select_color =		"#CDEBFE";

	if (typeof(document.getElementsByTagName) != 'undefined') 
	{
		
		theTable =	document.getElementById(table_id);
		theRows =	theTable.getElementsByTagName('tr');
    }

	if( action == "click" )
	{
		for(r=0; r < theRows.length; r++)
		{
			if( row == theRows[r] )
			{
				row_memory[r] = true;

				theCells = theRows[r].getElementsByTagName('td');
				for(c=0; c < theCells.length; c++)
				{
					theCells[c].style.backgroundColor = select_color;
				}
			}
			else
			{
				row_memory[r] = null;

				theCells = theRows[r].getElementsByTagName('td');
				for(c=0; c < theCells.length; c++)
				{
					theCells[c].style.backgroundColor = default_color;
				}
			}
		}
	}
	else if( action == "out" )
	{
		for(r=0; r < theRows.length; r++)
		{
			if( row_memory[r] == null )
			{
				theCells = theRows[r].getElementsByTagName('td');
				for(c=0; c < theCells.length; c++)
				{
					theCells[c].style.backgroundColor = default_color;
				}
			}
		}
	}
	else if( action == "over" )
	{
		alert(action);

    	for(r=0; r < theRows.length; r++)
		{
			if( row_memory[r] == null )
			{
				if( row == theRows[r] )
				{
					theCells = theRows[r].getElementsByTagName('td');
					for(c=0; c < theCells.length; c++)
					{
						theCells[c].style.backgroundColor = hilite_color;
					}
				}
				else
				{
					theCells = theRows[r].getElementsByTagName('td');
					for(c=0; c < theCells.length; c++)
					{
						theCells[c].style.backgroundColor = default_color;
					}
				}
			}
		}
	}

	return popuptext;
}

