///////////////////////////////////////////////////////////////////////////////////
// FUNCION PARA CALCULAR NUMEROS ALEATORIOS                                      //
///////////////////////////////////////////////////////////////////////////////////

function numeroAleatorio(rango)
{
    //Con rango 3 y sumando 1 después de redondear el número aleatorio es de 1 a 4
    return Math.round(Math.random()*rango)+1;
}


///////////////////////////////////////////////////////////////////////////////////
// CAMBIAMOS LA IMAGEN DEL FONDO DE LA CABECERA                                  //
///////////////////////////////////////////////////////////////////////////////////

function cambiarImagen()
{
    var numAleatorio = numeroAleatorio(3);
    var urlImagenFondo = "url('Imagenes/logoProinme"+numAleatorio+".jpg')";
    document.getElementById("imagenTabla").style.background = urlImagenFondo;
}