var days = new Array();
days[0]="Dimanche";
days[1]="Lundi";
days[2]="Mardi";
days[3]="Mercredi";
days[4]="Jeudi";
days[5]="Vendredi";
days[6]="Samedi";

var months = new Array;
months[0]="Janvier";
months[1]="Fevrier";
months[2]="Mars";
months[3]="Avril";
months[4]="Mai";
months[5]="Juin";
months[6]="Jullet";
months[7]="Aout";
months[8]="Septembre";
months[9]="Octobre";
months[10]="Novembre";
months[11]="Decembre";

function DisplayDate()
{
	var today = new Date();
	var thisday = days[today.getDay()];
	document.write(thisday + ", " + today.getDate() + " ");
	var thisMonth =months[today.getMonth()];
	document.write(thisMonth + " " + today.getYear());	
}

function DisplayTime()
{
	var today = new Date();
	document.write(today.getHours() + ":" + today.getMinutes());
	
}

var users = new Array;
users[0]= new Array("Guye","2r3c","Eric");
users[1]= new Array("Jardillier","P1tr3c2","Patrice");
users[2]= new Array("Storione","S1v3n4","Savino");
users[3]= new Array("Marchioni","M1rc","Marc");
users[4]= new Array("Baronciani","D1n32l","Daniel");
users[5]= new Array("Dumont","J21n","Jean-Philippe");
users[6]= new Array("Franchetti","1dr32n","Adrien");
users[7]= new Array("Hernandez","R5f3n4","Rufino");
users[8]= new Array("Martinez","D1v3d","David");
users[9]= new Array("Meissner","3v1n","Ivan");
users[10]= new Array("Pilloux","H2rv2","Hervé");
users[11]= new Array("Theraulaz","F1b32n","Fabien");
users[12]= new Array("Verweij","1rj1n","Arjan");
users[13]= new Array("Staunovo","M1n5","Manu");
users[14]= new Array("Pin","M3ch2l1ng2l4","Michelangelo");
users[15]= new Array("Vuillemier","N3c4l1s","Nicolas");
users[15]= new Array("SCM","123x","SCM");
users[15]= new Array("SQM","123x","SCM");

function magic_word(pass)
{ var found;
for (i=0;i<users.length;i++)
{  if (users[i][0]==pass.UserName.Value || users[i][1]==pass.MagicWord.value)
	{ url="http://www.egv.ch";
	window.location.href=url;
	// window.open(url);
	 // alert("Password correct, you are being redirected. Close this window." + url); 
	 document.write("T'es etes bien arrive dans le member area");
	 
	
	 window.location.href="Membres.htm"
	 window.location.reload
	 
	 i=users.length;
	 found=true;
	}	
}
if (!found) 
{  alert("Wrong password, please retry.");;
}
}

