var cl_cli;var scr_w;var scr_h;var color;var ref;var tm;var vrfmedi=416;var sep="@";var flo=1;var regtb=0;
function va(f,n,c){
document.fm.xloc.value=n;
var u;
switch(f){
case 0:u="http://www.odispo.com/administration/tarifs-abonnements.php?m=1";break;
case 1:u="http://www.odispo.com/administration/dispo.php?m=d";break;
case 2:u="http://www.odispo.com/administration/tarif.php";break;
case 3:if(c){u="http://www.odispo.com/administration/promo.php?m=1";}else{u="http://www.odispo.com/administration/dispo.php?m=n";}break;
case 4:u="http://www.odispo.com/administration/photo.php";break;
case 5:u="http://www.odispo.com/administration/gestion.php";break;
case 6:u="http://www.odispo.com/administration/part.php";break;
}
document.fm.action=u;
document.fm.submit();
}
function slpg(n){document.fm.sel.value=n;document.fm.action="http://www.odispo.com/index.php";document.fm.submit();}
function slpgdm(n){document.fm.sel.value=n;document.fm.submit();}
function check_loc(n){
document.getElementById('fenatt').style.visibility='visible';balais(0);
document.fm.ecrit.value='';
document.fm.aff.value='';
document.fm.sel.value='';
document.fm.act.value='sel'+n;
document.fm.dthors.value='';
document.fm.submit();
}
function chckloc(){
document.getElementById('fenatt').style.visibility='visible';balais(0);
document.fm.aff.value='';
document.fm.sel.value='';
document.fm.dthors.value='';
document.fm.submit();
}
function check_visio(n,d){
document.getElementById('fenatt').style.visibility='visible';
balais(0);
document.fm.aff.value=n;
document.fm.sel.value='';
document.fm.act.value='sel4';
document.fm.fgdom.value=d;
document.fm.dthors.value='';
document.fm.submit();
}
function check_visio_hors(n,d,c,b){
document.getElementById('fenatt').style.visibility='visible';
balais(0);
document.fm.aff.value=n;
document.fm.sel.value='';
document.fm.act.value='sel4';
document.fm.fgdom.value=d;
document.fm.dthors.value=c+'_'+b;
document.fm.submit();
}
function check_com(n,v){
document.getElementById('fenatt').style.visibility='visible';
balais(0);
if(!n){document.fm.vil.value=v;}
if(n==1){document.fm.vil.value='';document.fm.dep.value=v;}
if(n==2){document.fm.dep.value='';document.fm.vil.value='';document.fm.reg.value=v;}
document.fm.selres.value='1';
document.fm.sel.value='';check_loc(4);
}
function remtb(n){
if(n==regtb){
document.getElementById('afop'+n).style.left=Xpos;
document.getElementById('afop'+n).style.top=Ypos;
document.getElementById('afop'+n).style.visibility='hidden';
regtb=0;
}else{
if(regtb){
document.getElementById('afop'+regtb).style.visibility='hidden';
}
document.getElementById('afop'+n).style.left=Xpos;
document.getElementById('afop'+n).style.top=Ypos;
document.getElementById('afop'+n).style.visibility='visible';
regtb=n;
}
}
function sta(n){document.fm.act.value="sta"+n;document.fm.submit();}
cl_cli=new Array();
cl_cli[0]="#FF9900";cl_cli[1]="#FF0000";cl_cli[2]="#FF0000";cl_cli[3]="#D12B01";
function clignsel(n){document.getElementById('selclig').color=cl_cli[n];if(n==2){document.getElementById('selclig').color=cl_cli[0];n=0;tm=500;}else if(!n){tm=500;}else{tm=200;}n++;setTimeout("clignsel("+n+");",tm);}
function clignwait(c){if(c){document.getElementById('phrawa').className='phwt2';c=0;}else{document.getElementById('phrawa').className='phwt1';c=1;}}
var tmp_wt=0;
function balais(n){
//document.getElementById('fenatt').style.top=Ypos;
if(n<15){document.getElementById('bar'+n).className="barr1";}
if(n-1>=0 && n-1<15){document.getElementById('bar'+(n-1)).className="barr2";}
if(n-2>=0 && n-2<15){document.getElementById('bar'+(n-2)).className="barr3";}
if(n-3>=0 && n-3<15){document.getElementById('bar'+(n-3)).className="barr0";}
n++;tmp_wt++;
if(n>18){n=0;}
if(tmp_wt>4){tmp_wt=0;document.getElementById('phrawa').className='phwt2';}else{document.getElementById('phrawa').className='phwt1';}
setTimeout("balais("+n+");",100);
}
var txodis="";
var xtodis="";
var sujodi="";
var messodi="&body=Bonjour,%0a%0aj'ai trouvé votre location sur O'dispo.com et je souhaite avoir les informations suivantes:%0a%0a";
function Envoyer(){document.envmlto.action="mailto:"+txodis+sep+xtodis+"?subject="+sujodi+messodi;document.envmlto.submit();}
function initmlto(lo,fa,dtd,dtf){
sujodi="O'dispo.com période du "+dtd+" au "+dtf;
txodis=lo;xtodis=fa;
document.write(""+txodis+sep+xtodis+"");
}
function initmltodm(lo,fa,dtd,dtf){
sujodi="O'dispo.com promotion pour la période du "+dtd+" au "+dtf;
txodis=lo;xtodis=fa;
document.write("
");
}
function instalmlto(){document.write('