// scripts Assoweb

// fonction jourcourant() en français

// fonction jourcourant() AFFICHE LA DATE
// fonction jourcourant() en français
function makeArray(n)
{
  	this.length = n;
  	for (i=1;i<=n;i++){
  	  this[i]=0;
  	}

  return this;
}

function donnelejour() {
	var this_month = new makeArray(12);
    	this_month[0]  = "Janvier";
    	this_month[1]  = "Février";
    	this_month[2]  = "Mars";
    	this_month[3]  = "Avril";
    	this_month[4]  = "Mai";
    	this_month[5]  = "Juin";
    	this_month[6]  = "Juillet";
    	this_month[7]  = "Août";
    	this_month[8]  = "Septembre";
    	this_month[9]  = "Octobre";
    	this_month[10] = "Novembre";
    	this_month[11] = "Décembre";

	var today = new Date();
	var day   = today.getDate();
	var month = today.getMonth();
	var year  = today.getYear();
	if (year < 100){
		year += 1900;
	}

	return(day+" "+this_month[month]+" "+year);
}

function jourcourant(){
document.write(donnelejour());
}
// fonction SelectedWinOpen(SelectedWin)
// OUVRE LA PAGE PASSEE EN PARAMETRE DANS UNE POP-UP WINDOW
function SelectedWinOpen(SelectedPage){
window.open(SelectedPage,'','scrollbars=yes,width=500,height=400,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes')
}
// fonction imprimer() IMPRIME LA PAGE COURANTE
function imprimer(){
 if (navigator.appName == "Netscape") {
  window.print() ;
 }
 else {
  var navi = '<OBJECT ID="navi1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
  document.body.insertAdjacentHTML('beforeEnd', navi);
  navi1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box    navi1.outerHTML = "";
 }
}

function LogOpen()
{
	x = screen.AvailWidth;
	y = screen.AvailHeight;
	xpos = (x-400)/2;
	ypos = (y-350)/2;
	window.open("authentification/AVerifID.cfm","LogIn","menubar=0, directories=0, toolbar=0, status=0, location=0, copyhistory=0, resizable=0, width=400, height=200, top=" + ypos + " , left=" +xpos);
}

