function Mydate(langue)
{
maintenant = new Date();
jour = maintenant.getDate();
joursemaine = maintenant.getDay();
moisactuel = maintenant.getMonth();
an = maintenant.getYear();
if(an < 2000) an+=1900;

switch(langue)
{
	case 'fr' :	
		var days = new Array("Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi");
		var mois = new Array("janvier","février","mars","avril","mai","juin", "juillet","août","septembre","octobre","novembre","décembre");
		document.write(days[joursemaine] + " " + jour + " " + mois[moisactuel] + " " + an);
	break;
	
	case 'it' :
		var days = new Array("Domenica", "Lunedì", "Martedì", "Mercoledì", "Giovedì", "Venerdì", "Sabato");
		var mois = new Array("gennaio", "febbraio", "marzo", "aprile", "può", "giugno", "luglio", "agosto", "settembre", "ottobre", "novembre", "dicembre");
		document.write(days[joursemaine] + " " + jour + " " + mois[moisactuel] + " " + an);
	break;
	
	case 'uk' :
		var days = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
		var mois = new Array("january", "february", "march", "april", "may", "june", "july", "august", "september", "october", "november", "december");
		document.write(days[joursemaine] + " " + mois[moisactuel] + " " + jour + " " + an);
	break;
}
}

function doPopup(url, width, height)
{
	var popupy = window.screen.height/2 - 200;
	var popupx = window.screen.width/2 - 200;
	var heightN = height;
	if (navigator.appName == 'Netscape')
	{
		var OuvrirQuoi=window.open(url,"suite","toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0,width="+width+",height="+heightN+",screenX="+popupx+",screenY="+popupy);
	    if (!OuvrirQuoi.opener) OuvrirQuoi.opener = self;
        if (OuvrirQuoi.focus != null) OuvrirQuoi.focus();	
// si taille dif alors
			OuvrirQuoi.resizeTo(width,heightN);			
	}
	else
	{
		 var OuvrirQuoi=window.open(url,"suite","toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0,width="+width+",height="+height+",left="+popupx+",top="+popupy);
	    if (!OuvrirQuoi.opener) OuvrirQuoi.opener = self;
		if (OuvrirQuoi.focus != null) OuvrirQuoi.focus();
// si taille dif alors
			OuvrirQuoi.resizeTo(width,height);
		}
}
