function entrar (){
	document.acceso.usuario.value = document.acceso.letra.value + "-" + document.acceso.numero.value;
	document.acceso.submit();
    vuelta();
}
function _setFocus() {
  var f = null;
  if (document.getElementById) { 
    f = document.getElementById("acceso");
  } else if (window.acceso) { 
    f = window.acceso;
  } 
  if (f) {
    if (f.letra.value == null || f.letra.value == "") { 
      f.letra.focus();
    } else {
      f.clave.focus();
    } 
  }
}
function _setFocusNumber() {
  var f = null;
  if (document.getElementById) { 
    f = document.getElementById("acceso");
  } else if (window.acceso) { 
    f = window.acceso;
  } 
  if (f) {
    f.numero.focus();
  }
}
function ver (url, donde){
    if(donde=="contenedor"){
        $.ajax({
            type: "GET",
            contentType: "application/x-www-form-urlencoded; charset=iso-8859-1;",
            url: url,
            data: {},
            dataType: "html",
            success: function(datos){
                $('#home').empty().append(datos);
            },
            timeout: 0,
            error: function(objeto, quepaso, otroobj){
                alert("Error making request: "+quepaso);
            }
        });
    } else {
        window.open (url);
    }
}
function vuelta (){
    ver('que_es_alta.php', 'contenedor');
}
