﻿

    function ConfirmaExclusao(){
        return confirm('Confirma a exclusão do registro selecionado?');
        // incluir isso no controle ->  OnClientClick="javascript:return ConfirmaExclusao()"
    }



    function ShowWindowx(url, pwidth, pheight) {

        var args = new Object;
        args.window = window;

            window.open(url);
    }



    function ShowWindow(url, pWid, pHei, pModal, pTime) {

        var args = new Object;
        args.window = window;

          if  ( pModal == "true" ) 
          {
              window.showModalDialog(url, args, "dialogWidth:" + pWid + "px;dialogHeight:" + pHei + "px");
              return true;
          }

          if ( (pWid == "max") || (pHei == "max") ) {
              nHei = (screen.height);    
              nWid = (screen.width);
          }
          else {
              nTop = (screen.height / 2) - (pHei / 2);
              nLef = (screen.width / 2) - (pWid / 2)  ;
              nHei = pHei;    
              nWid = pWid;
          }
        
          
            winprops = 'height='+nHei+',width='+nWid+',top='+nTop+',left='+nLef+',scrollbars=1,resizable=1,status=0,toolbar=0,location=0';
            window.open(url, "_blank", winprops);
    }


 
    
     var corOriginal;
     // Função de seleção da linha da grid
     function selecionarLinha(item) {
          // Armazenha a cor original da grid
          corOriginal = item.style.backgroundColor;         
         // Atribui nova cor a linha
          item.style.backgroundColor = "#CCFFFF";

     }

     // Função de deseleção da linha da grid
     function deselecionarLinha(item) {
          // Retorna a cor original a linha
          item.style.backgroundColor = corOriginal;

      }



function finaliza()

{
    var xmlHttp=false;
    try {
      xmlHttp = new XMLHttpRequest();
    } catch (e1) {
      try {
        xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
      } catch (e2) {
          xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
      }
    }
    xmlHttp.open("GET", "Finaliza.aspx", true);
    xmlHttp.send(null);
}   


      function ShowDiv(pObj, pShow) {
          var a = document.getElementById(pObj).style;

          if (pShow == 'hidden') {
              a.display = "none";
          }
          if (pShow == 'show') {
              a.display = "";
          }
      }



// #### CONTAGEM PROGRESSIVA DE TEMPO  ################################################################



// ################################################################################
