
var ErreurMessage;var ErreurMessageTaille;var ErreurPremierChamp;var Verif;var global_faq=0;ErreurMessage="We need the following informations to contact you :\n";function MM_findObj(n,d){var p,i,x;if(!d)d=document;if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);}
if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i<d.forms.length;i++)x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=MM_findObj(n,d.layers[i].document);return x;}
function MM_swapImage(){var i,j=0,x,a=MM_swapImage.arguments;document.MM_sr=new Array;for(i=0;i<(a.length-2);i+=3)
if((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x;if(!x.oSrc)x.oSrc=x.src;x.src=a[i+2];}}
function MM_swapImgRestore(){var i,x,a=document.MM_sr;for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)x.src=x.oSrc;}
function MM_preloadImages(){var d=document;if(d.images){if(!d.MM_p)d.MM_p=new Array();var i,j=d.MM_p.length,a=MM_preloadImages.arguments;for(i=0;i<a.length;i++)
if(a[i].indexOf("#")!=0){d.MM_p[j]=new Image;d.MM_p[j++].src=a[i];}}}
function MM_preloadImages_v2(){if(document.images){var imgFiles=MM_preloadImages.arguments;if(document.preloadArray==null)document.preloadArray=new Array();var i=document.preloadArray.length;with(document)
for(var j=0;j<imgFiles.length;j++)if(imgFiles[j].charAt(0)!="#"){preloadArray[i]=new Image;preloadArray[i++].src=imgFiles[j];}}}
function BackToApart(x){oApart=window.open("http://www.paristay.com/fiche/"+x+"/rent/VSS_paris_apartment.html","_blank","resizable,scrollbars,width=600,height=400");}
function changePage(newLoc){nextPage=newLoc.options[newLoc.selectedIndex].value
if(nextPage!=""){document.location.href=nextPage;}}
function trier(x){if(x!='?')document.location='trier.php?posi='+x+'&sortby='+document.forms['formulaire'].sortby.value;}
function emailus(x){var tg="<";var nom="arb";if(x==2)nom="yukie";if(x==3)nom="camille";if(x==4)nom="romuald";if(x==6)nom="simon";var arob="%40";var hote1="paris";var hote2="tay.com";window.open("mai"+"lto:"+nom+arob+hote1+hote2,"_blank","width=300, height=300, resizable");}
function enlarge(id,path){window.open('http://www.paristay.com/paris-stay-apartment-photo.php?id='+id+'&image=image_appart/'+path,'titla','toolbar=0, location=0, directories=0, status=0, scrollbars, resizable, copyhistory=0, menuBar=0, width=800, height=700, top=3');}
function add_to_your_selection(x,y,z){document.location="http://www.paristay.com/add_to_your_selection.php?action="+x+"&id="+y+"&l=y&page="+z;}
function legend(){window.open('http://www.paristay.com/legende.htm','Legend','width=640,height=750');}
function awards(){window.open('http://www.paristay.com/legende.php','Legend','width=640,height=750,scrollbars');}
function ol(url){document.location=url;}
function omout(x){}
function tophoto(x){document.getElementById('toPho').src="http://www.apartment-in-paris.com/"+x;}
function pname(x){document.getElementById('toPhoComment').innerHTML=x;}
function faqul(param){var faqul=document.getElementById('faqul');if(global_faq==1)global_faq=0;else global_faq=1;if(global_faq==1)faqul.className='faquli';else faqul.className='faquln';}
function subform(){if(ErreurVerification(document.forms['formulaire']))document.forms['formulaire'].submit();}
function valeurcheck(){Verif="OK";}
function ErreurInitialiser(){}
function ErreurAfficher(){if(ErreurMessage.length>52){alert(ErreurMessage);ErreurMessage="We need the following informations to contact you :\n";return false;}
return true;}
function Erreur(champ,texte){ErreurMessage+='\n    -  '+texte;if(!ErreurPremierChamp){ErreurPremierChamp=champ;}}
function ErreurVerification(leForm){if(leForm.nbe_loc.value=='N'){Erreur(leForm.nbe_loc,'# of people');}
if(leForm.arrivee.value=='DD/MM/YY'){Erreur(leForm.arrivee,'An arrival date');}
if(leForm.depart.value=='DD/MM/YY'){Erreur(leForm.depart,'An departure date');}
return ErreurAfficher();}
function steps(step,state){var cadre=document.getElementById('cadre'+step);var image=document.getElementById('cadre'+step+'_title');if(state==1){cadre.className='step'+step+'_on';image.className='step'+step+'_on_title';}
else{cadre.className='step'+step+'_off';image.className='step'+step+'_off_title';}}
window.name='parisstay';