﻿function IrA(lugar)
{	
    location.hash = (lugar);
}

function Restantes(TextBox, LabelName)
{
    Label = document.getElementById(LabelName);
    vRestantes = 4000 - (TextBox.value.length);
    
    if (vRestantes <= 50 )
    {
        Label.className="TextoRojo";
    }
    else
    {
        Label.className = "TextoNormal";
    }
    if (vRestantes  <= 0)
    {
        TextBox.style.backgroundColor="lightpink";
        TextBox.value = TextBox.value.substr(0,4000);
    }
    else
    {
        TextBox.style.backgroundColor="";
    }
    Label.innerHTML = vRestantes;
}

function MenuOver(objeto)
{
	objeto.style.backgroundColor='#FFCC00';
}

function MenuOut(objeto)
{
	objeto.style.backgroundColor='';
	/*objeto.style.textDecoration='none';*/
}

function MenuOver2(objeto)
{
    canterior = objeto.style.backgroundColor;
	objeto.style.backgroundColor='#FFCC00';
	objeto.style.textDecoration='underline';
    return canterior;
}

function MenuOut2(objeto, canterior)
{
	objeto.style.backgroundColor=canterior;
	objeto.style.textDecoration='none';
}

/*
function NavigateOver(Object, OverImage)
{
    Object.src=OverImage; 
}

function NavigateOut(Object, OutImage)
{
    Object.src=OutImage;
}

*/