//-------------------------------------------------------------------
//Description 	 : Libreria de utilerias
//Author		 : Jorge Armando Ayala Rivas
//Create Date 	 : 15 de Febrero del 2010
//Last Modify by : 
//Last Date Mod. : 
//-------------------------------------------------------------------
var oldRow;

//Funciónj para crear objeto de ajax.

  function nuevoAjax(){
    var xmlhttp=false;
    try {
        xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    }     catch (e) {
            try {
                xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
            }     catch (E) {
                xmlhttp = false;
                }
        }
    
    if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
    xmlhttp = new XMLHttpRequest();
    }
    return xmlhttp;
}

//Función par verificar cundo d un Enter.

 function verificaEnter(e) {
  if(window.event) // IE
    {
    keynum = e.keyCode
    }
    else if(e.which) // Netscape/Firefox/Opera
    {
    keynum = e.which
    }
    if(keynum==13)
        ValidarUsuario();
  }
  
  
