function chx_marque(form) {
  mail = form.mail.value;
  tel = form.tel.value;
  marque = form.marque.options[form.marque.selectedIndex].text;
  location.href = "ajouter_consoles.php?mail=" + mail + "&tel=" + tel + "&mrq=" + marque;
}
function chx_type(form) {
  mail = form.mail.value;
  tel = form.tel.value;
  marque = form.marque.options[form.marque.selectedIndex].text;
  typ = form.type.options[form.type.selectedIndex].text;
  location.href = "ajouter_consoles.php?mail=" + mail + "&tel=" + tel + "&mrq=" + marque + "&type=" + typ;
}
function chx_marque_search(form) {
  marque = form.marque.options[form.marque.selectedIndex].text;
  location.href = "index.php?mrq=" + marque;
}
function chx_type_search(form) {
  marque = form.marque.options[form.marque.selectedIndex].text;
  typ = form.type.options[form.type.selectedIndex].text;
  location.href = "index.php?mrq=" + marque + "&type=" + typ;
}

function chx_marque_search_adv(form) {
  marque = form.marque.options[form.marque.selectedIndex].text;
  location.href = "adv_search.php?mrq=" + marque;
}
function chx_type_search_adv(form) {
  marque = form.marque.options[form.marque.selectedIndex].text;
  typ = form.type.options[form.type.selectedIndex].text;
  location.href = "adv_search.php?mrq=" + marque + "&type=" + typ;
}

