	function botaoFocado( Botao ) 
	{
		setStyle( Botao, 'cursor', 'hand');
		setClass( Botao, 'FOC_TRUE' );
	}

	function botaoDesfocado( Botao ) 
	{
		setClass( Botao, 'FOC_FALSE' );
	}	
	
    function checkDeleteRecord(){
	    return confirm('Tem certeza que deseja APAGAR este registro?');
    }
    
    function checkDeleteList(){
		return confirm('Tem certeza que deseja APAGAR os registros selecionados?');
    }
    
    function Novo(classe)
    {
		AbreFilho('Form.aspx?classe=' + classe + '&tipo=new');
    }
    
    function Editar( classe, id )
    {
		AbreFilho('Form.aspx?classe=' + classe + '&tipo=edit&id=' + id );
    }
    
	function AbreFilho(link)
	{
		var width = getLivePageWidth() * 0.8;
		var height = getLivePageHeight() * 0.8;

	  	win = window.open(link, 'AbreFilho', 'height=' + height + ',width=' + width + ', status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes');
		win.opener = self; 

		var y = parseInt((parseInt(getLivePageHeight())/2)-(height/2));
		var x = parseInt((parseInt(getLivePageWidth())/2)-(width/2));

		if ( x < 0 )
			x = 0;
		if ( y < 0 )
			y = 0;

	  	win = window.open(link, 'AbreFilho', 'height=' + height + ',width=' + width + ',left='+ x +',top='+ y +', status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes');
		win.opener = self; 
	}
	
	function FinalizaFilho(link){
		opener.location=link;
		window.close();
	}
	
	function visualiza(arquivo)
	{
		var width = getLivePageWidth() * 0.8;
		var height = getLivePageHeight() * 0.8;

	  	win = window.open('Images/Inicial_Grande_' + arquivo, 'AbreFilho', 'height=' + height + ',width=' + width + ', status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes');
		win.opener = self; 
	}