<!--
//Ferdinand Herve
function LetsGo (profil)
{
var typo = window.document.form1.typo.options[window.document.form1.typo.selectedIndex].value;
var lieu = window.document.form1.lieu.options[window.document.form1.lieu.selectedIndex].value;
var budget = window.document.form1.budget.options[window.document.form1.budget.selectedIndex].value;

if(profil == "investisseur")
{
  var loi = window.document.form1.arg_loi.options[window.document.form1.arg_loi.selectedIndex].value;
}
else
 var loi="non";

        PutBak(typo,lieu,budget,profil,loi);
        window.document.form1.submit ();
        return false;
}

function LetsGoCookie()
{
var prix = GetCookie('prix');
var lieu = GetCookie('lieu');
var piece = GetCookie('piece');
var profil = GetCookie('profil');
var loi = GetCookie('loi');
var last = GetCookie('last');
var nbldepart = GetCookie('nbldepart');
var first = GetCookie('first');
if (first || first=="") first++;

var profil_img = GetCookie('profil_img');
if(prix == false && lieu == false && piece == false && profil==false && loi ==false ||last== false)
{
//alert('Attention : Vous n\'accepter pas les cookies alors je vous forward');

switch(profil_img)
   {
   case "accedant" :
     window.location="/acheter/accedant.htm";
     break;
   case "investisseur" :
      window.location="/investir/investisseur.htm";
     break;
   case "sel_acc" :
      window.location="/acheter/accedant_sel.htm";
     break;
   case "sel_inv" :
      window.location="/investir/investisseur_sel.htm";
     break;
   default :
      window.location="/";
   }

return false;
}
var la = "/cgi-bin/p_neuf/prog_recherche.cgi?budget="+prix+"&lieu="+lieu+"&typo="+piece+"&profil="+profil+"&arg_loi="+loi+"&sens=arriere"+"&last="+last+"&nbldepart="+nbldepart+"&first="+first;
  window.location=la;
    return true;
}

function GoCookie()
{
var prix = GetCookie('prix');
var lieu = GetCookie('lieu');
var piece = GetCookie('piece');
var profil = GetCookie('profil');
var loi = GetCookie('loi');
var last = GetCookie('last');
var nbldepart = GetCookie('nbldepart');
var first = GetCookie('first');

var profil_img = GetCookie('profil_img');
if(prix == false && lieu == false && piece == false && profil == false && loi ==false)
 {
 //alert('Attention : Vous n\'accepter pas les cookies alors je vous forward');
 switch(profil_img)
   {
   case "accedant" :
     window.location="/acheter/accedant.htm";
     break;
   case "investisseur" :
      window.location="/investir/investisseur.htm";
     break;
   case "sel_acc" :
      window.location="/acheter/accedant_sel.htm";
     break;
   case "sel_inv" :
      window.location="/investir/investisseur_sel.htm";
     break;
   default :
      window.location="/";
   }

 return false;
 }
 var la = "/cgi-bin/p_neuf/prog_recherche.cgi?budget="+prix+"&lieu="+lieu+"&typo="+piece+"&profil="+profil+"&arg_loi="+loi+"&sens=arriere"+"&last="+last+"&nbldepart="+nbldepart+"&first="+first;

if(first) first--;
var expdate = new Date ();
 expdate.setTime (expdate.getTime() + (24 * 60 * 60 * 1000));
 SetCookie ('first',first,expdate,'/');

  window.location=la;
    return true;
}

function foo()
{
var profil_img = GetCookie('profil_img');
switch(profil_img)
   {
   case "accedant" :
     window.location="/acheter/accedant.htm";
     break;
   case "investisseur" :
      window.location="/investir/investisseur.htm";
     break;
   case "sel_acc" :
      window.location="/acheter/accedant_sel.htm";
     break;
   case "sel_inv" :
      window.location="/investir/investisseur_sel.htm";
     break;
   default :
      window.location="/";
   }
}
function clean()
{
 var expdate = new Date ();
 expdate.setTime (expdate.getTime() - (24 * 60 * 60 * 1000));
 SetCookie ('last','0',expdate,'/');
 SetCookie ('first',false,expdate,'/');
}
//-->
