﻿//<![CDATA[

function blocking(source) {  
   if (source.style.display == "none") {
     source.style.display = "block"; 
   } else {
	 source.style.display = "none"; 
   }
}

function openWindow(url, width, height)
{
	window.open(url,'null','width=' + width + ',height=' + height + ',resizable=no,scrollbars=no, toolbar=no');
}

function openFullWindow(url, codigo)
{
	window.open(url,codigo,'');
}

function showHint(text, codigo)
{
//alert(codigo);
    var hintBox = document.getElementById("TextoAyudaActor_" + codigo);
	hintBox.innerHTML = text;
}

function showTextoProcesando(codigo)
{
    var hintBox = document.getElementById("TextoProcesando_" + codigo);
	hintBox.visibility = 'visible';
}

function hideHint(codigo)
{
	showHint('&nbsp;', codigo);
}

function menuStyleOn(obj) 
{
    obj.style.backgroundImage='url(/CastSys/Images/menu-on.gif)'; 
    obj.backgroundRepeat='repeat-x';   
//    obj.style.borderRight='solid 1px #828282'; 
//    obj.style.borderLeft='solid 1px #828282';
}

function menuStyleOff(obj) 
{
    obj.style.background=''; 
//    obj.style.borderRight='solid 1px transparent'; 
//    obj.style.borderLeft='solid 1px transparent';
}

function CuadroStyleOn(obj)
{
    obj.style.background='#f1f1f1';
}

function CuadroStyleOff(obj)
{
    obj.style.background='#ffffff';
    obj.backgroundImage='url(/CastSys/Images/titleBack.gif)';
    obj.backgroundRepeat='repeat-x';
}

        function fnSetFocus(txtClientId)
        {
        	eval("document.getElementById('"+txtClientId+"').focus()");            
        }



//]]>