var timerID = 0;
var delai = 120;
var iGLOB = 0;
var chaine = "Bienvenue à Angkor vat, Patrimoine de l'humanité.....";
var longueur = chaine.length;

function derouler() 
{ deroulerAux(); 
timerID = setTimeout("derouler()",delai);
}

function deroulerAux() 
{ result = chaine.substring(0,(iGLOB%longueur)); 
  iGLOB++;
  parent.status = result;
}

function dateOfDay() {
 tJour = new Array(7);
 tJour[0]="Dimanche";
 tJour[1]="Lundi";
 tJour[2]="Mardi";
 tJour[3]="Mercredi";
 tJour[4]="Jeudi";
 tJour[5]="Vendredi";
 tJour[6]="Samedi";
 
 tMois = new Array(12);
 tMois[0]="Janvier";
 tMois[1]="Février";
 tMois[2]="Mars";
 tMois[3]="Avril";
 tMois[4]="Mai";
 tMois[5]="Juin";
 tMois[6]="Juillet";
 tMois[7]="Août";
 tMois[8]="Septembre";
 tMois[9]="Octobre";
 tMois[10]="Novembre";
 tMois[11]="Décembre";

d = new Date();
mois = d.getMonth();
jour = d.getDay();
date = d.getDate();
annee = d.getFullYear();
return tJour[jour] + " " + date + " "+tMois[mois] + " " + annee;
}


function print(msg)
{ document.write(msg+'<br>');
  return true;
}
function writecook()
{
 alert('test');
} 
function writecookie()
{
 
 var Datum = new Date();
 Datum.setFullYear(Datum.getFullYear() + 1);
 var expires = "expires=" + Datum.toGMTString();
 
 var ind;                              
 //var toto = document.forms.fvote.elements[4];
 var VInitial = document.forms.fvote.inom.value;
 if (document.forms.fvote.R1[0].checked) ind = 0; 
 if (document.forms.fvote.R1[1].checked) ind = 1;
 if (document.forms.fvote.R1[2].checked) ind = 2;
 // alert("VOui : " + VOui + " VNon : " + VNon + " Tard : " + ind );
 document.cookie = "Count=" + escape(ind) + "; " + expires;
 if (VInitial == "") {VInitial = "-"};
 document.cookie = "Visiteur=" + escape(VInitial) + "; " + expires;
 
 return true;

}

function OpenWindow(cod)

{

  	if(navigator.appName.indexOf('Explorer') != -1)
  	{  
  		var win=window.open("Vacances.htm?loc=" + cod,"_blank","width=670,height=550,PageX=400,PageY=400");
  		if (cod == 'a') { win.focus() };
   		if (cod == 'b') { win.blur() }; 
   		
  		//win.focus() ;
  		//win.setTimeout ('window.close()', 8000);
  	}

  	if(navigator.appName.indexOf('Netscape') != -1)
  	{ 
  		var win=window.open("Vacances.htm?loc=" + cod,"_blank","width=670,height=550,screenX=400,screenY=400");
  		win.blur() ;
  	}


  }
