function addBookmark(title,url) { if (window.sidebar) { window.sidebar.addPanel(title, url,""); } else if( document.all ) { window.external.AddFavorite( url, title); } else if( window.opera && window.print ) { return true; } } var popup=null; function popWin(theURL,dx,dy) { var ScreenWidth=dx; var ScreenHeight=dy; var movefromedge=0; placementx=movefromedge; placementy=movefromedge; WinPop=window.open(theURL,"","width="+ScreenWidth+",height="+ScreenHeight+",toolbar=0,location=0,directories=0,status=0,scrollbars=1,menubar=0,resizable=1,left="+placementx+",top ="+placementy+",screenX="+placementx+",screenY="+placementy+","); } function popUp(theURL,dx,dy) { var movefromedge=50; placementx=movefromedge; placementy=movefromedge; window.open(theURL,"","width="+dx+",height="+dy+",toolbar=0,location=0,directories=0,status=0,scrollbars=1,menubar=0,resizable=1,left="+placementx+",top ="+placementy+",screenX="+placementx+",screenY="+placementy+","); } function popUp2(theURL,dx,dy) { var movefromedge=50; placementx=movefromedge; placementy=movefromedge; window.open(theURL,"","width="+dx+",height="+dy+",toolbar=1,location=0,directories=0,status=0,scrollbars=1,menubar=0,resizable=1,left="+placementx+",top ="+placementy+",screenX="+placementx+",screenY="+placementy+","); } function popUpMax(theURL) { window.open(theURL,"_blank","fullscreen=yes,toolbar=0,location=0,directories=0,status=0,scrollbars=1,menubar=0,resizable=1"); } function x() { return; } function openURL(url) { window.opener.location=url; setTimeout("window.close()",2500) } var reqDispo; var dispovalue; function reqDispo_callback() { if (reqDispo.readyState==4 && reqDispo.status==200) { var html=reqDispo.responseText; if(html.length>0) { var objdiv=document.getElementById('dispos'); objdiv.innerHTML=html; } } } function refreshDispo() { document.getElementById('dispos').innerHTML='Recherche des dispos...'; reqDispo.open( "GET", 'http://www.abc-roissy.com/dispos.php?when='+dispovalue, true ); reqDispo.send(); } function checkDispoTime() { var s=document.getElementById('VD').value; var a=s.split('-'); var d=new Date(a[0],a[1]-1,a[2],1,0,0); var t=d.getTime()/1000; if(t!=dispovalue) { dispovalue=t; document.getElementById('VDISPLAY').innerHTML=a[2]+"/"+a[1]+"/"+a[0]; refreshDispo(); } setTimeout("checkDispoTime()",500); } function jsstart(menu) { dispovalue=0; if(menu==2) { reqDispo=new XMLHttpRequest(); reqDispo.onreadystatechange=reqDispo_callback; checkDispoTime(); } }