function log_out(spath) {
    document.location.href=spath+"accesso.php?user=logout";
 // document.location.href="http://"+location.host+"/accesso.php?user=logout";
}

function login() {
  utente = document.getElementById("user");
  pwd = document.getElementById("password");

  document.location.href="accesso.php?utente="+utente.value+"&pwd="+pwd.value;
}