function time()
{
   hoy = new Date();
   ann = hoy.getFullYear();
   mes = hoy.getMonth()+1;
   dia = hoy.getDate();
   hor = hoy.getHours();
   min = hoy.getMinutes();
   seg =  hoy.getSeconds();
		  
   if (min < 10) min = "0"+min
   if (seg < 10) seg = "0"+seg

   window.status = dia+"-"+ mes+"-"+ ann+"  "+ hor+":"+ min+":"+ seg
   setTimeout('time()',1001);
}
		
function di20(id, newSrc) 
{
	var theImage = FWFindImage(document, id, 0);
	if (theImage)
	{
		theImage.src = newSrc;
	}
}

function FWFindImage(doc, name, j) 
{
	var theImage = false;
	if (doc.images) 
	{
		theImage = doc.images[name];
	}
	if (theImage)
	{
		return theImage;
	}
	if (doc.layers)
	{
		for (j = 0; j < doc.layers.length; j++)
		{
			theImage = FWFindImage(doc.layers[j].document, name, 0);
			if (theImage)
			{
				return (theImage);
			}
		}
	}
	return (false);
	 
}

window.name = 'main';
NS4 = (document.layers);
IE4 = (document.all);
ver4 = (NS4 || IE4);   
isMac = (navigator.appVersion.indexOf("Mac") != -1);

function CTabOVER(tr,color) 
{
	tr.style.backgroundColor=color;
}

function CTabOUT(tr,color) 
{
	tr.style.backgroundColor=color;
}

function mOvr(src) 
{
	if (!src.contains(event.fromElement)) 
	{
		src.style.cursor = 'hand';
		src.bgColor = '#E3E3E3';
		src.style.border = 'solid #666666 1px';
	}
}

function mOut(src) 
{
	if (!src.contains(event.toElement))
	{
		src.style.cursor = 'default';
		src.bgColor = '#FFFFFF';
		src.style.border = 'solid #666666 1px';
	}
}
	
function mClk(src) 
{
	if(event.srcElement.tagName=='TD')
	{
		src.children.tags('A')[0].click();
	}
}