// Funcion para colorear las filas de una tabla a dos colores

	function colorea_tabla (tabla, origen_capa)
	{
		if (origen_capa == undefined)
			var filas = document.getElementById (tabla).rows;
		else
			var filas = eval (origen_capa + ".document.getElementById(tabla).rows");
		
		for (var a=0;a<filas.length;a++)
		{
			if (a%2 == 0)
			{
				filas[a].style.backgroundColor = "#F5F5F5";
			}
			else
			{
				filas[a].style.backgroundColor = "#EBEBEB";
			}
		}
	}


	function colorea_tabla2 (tabla, fila_inicio)
	{
		var filas = document.getElementById (tabla).rows;
		var color = true;
		
		if (typeof(fila_inicio) == 'undefined')
			fila_inicio = 0

		for (var a=fila_inicio; a<filas.length; a++)
		{
			if (a%2 == 0)
			{
				if (color)
				{
					colorea_fila (filas [a],"#666666","#EBEBEB")
					color = false;
				}
				else
				{
					colorea_fila (filas [a],"#666666","#FFFFFF")
					color = true;
				}
			}
		}
	}
	
	function colorea_fila (fila,colortexto,colorfondo)
	{
		for (var a=0; a<(fila.cells.length-2); a++)
		{
			fila.cells[a].style.color = colortexto;
			fila.cells[a].style.backgroundColor = colorfondo;
		}
	}

