/*var tab=new Array();function Periode(a,b,id,jour){this.debut=a;this.fin=b;this.id=id;this.jour=jour;}function verif(a,b,id,jour){var periode=new Periode(a,b,id,jour);var laboiboite=document.getElementById(id);if(laboiboite.checked==true){for(var i=0;i<tab.length;i++){if((((tab[i].debut<periode.fin)&&(tab[i].debut>periode.debut))||((periode.fin<tab[i].fin)&&(periode.fin>tab[i].debut))||((periode.fin>tab[i].debut)&&(periode.debut<tab[i].fin)))&&(periode.jour==tab[i].jour)){alert("Vous ne pouvez pas sélectionner 2 conférences sur le même créneau horaire !");return false;}}tab.push(periode);}else{var tab2=new Array();for(var j=0;j<tab.length;j++){if(tab[j].id!=periode.id){tab2[tab2.length]=tab[j];}}tab=tab2;}}function remplirTab(a,b,id,jour){var periode=new Periode(a,b,id,jour);tab.push(periode);}*/  function checkemail(){	var str=document.news.email.value	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i	if (filter.test(str))	testresults=true	else{		alert('Veuillez saisir un email valide du type prenom.nom@example.com');	testresults=false}	return (testresults)}function impr(){var nav=navigator.appName;var ver=parseInt(navigator.appVersion);if ( ( nav == "Netscape" && ver[0] <4 ) || (nav == "Microsoft Internet Explorer"  && ver[0] <5)) 	alert("Pour imprimer taper Ctrl + p ou Fichier/Imprimer");else  window.print();} //Variable global contenant mes périodes à un temps X sur la page var tab = new Array();  //Classe pour l'objet période  function Periode(a, b, id, jour) {      this.debut = a;      this.fin = b;      this.id = id;      this.jour = jour;   }	//Fonction qui vérifie si des périodes se chevauchent ou pas	function verif(a, b, id, jour)	{		var periode = new Periode(a, b, id, jour);		var laboiboite =  document.getElementById(id);		if (laboiboite.checked == true)		{			for (var i = 0; i < tab.length; i++){				if (  (( (tab[i].debut <  periode.fin) && (tab[i].debut > periode.debut) )    				|| ( (periode.fin <  tab[i].fin) && (periode.fin >  tab[i].debut) )    				|| ( (periode.fin >  tab[i].debut) && (periode.debut <  tab[i].fin) ))    				&& (periode.jour == tab[i].jour) ){					alert("Vous ne pouvez pas sélectionner 2 conférences sur le même créneau horaire !");					return false;				}			}			tab.push(periode);		}		else			{			var tab2 = new Array();			for (var j = 0; j < tab.length; j++){				if (tab[j].id != periode.id){					tab2[tab2.length] = tab[j];					}				}				tab = tab2;			}	}		//Fonction qui vérifie si des périodes se chevauchent ou pas	function verifA(a, b, id, jour)	{		var periode = new Periode(a, b, id, jour);	//	remplirTab(periode);		var laboiboite =  document.getElementById(id);		//alert(laboiboite);		//if (laboiboite.checked == true)		//{		alert(tab.length);			for (var i = 0; i < tab.length; i++){				if (  (( (tab[i].debut <  periode.fin) && (tab[i].debut > periode.debut) )    				|| ( (periode.fin <  tab[i].fin) && (periode.fin >  tab[i].debut) )    				|| ( (periode.fin >  tab[i].debut) && (periode.debut <  tab[i].fin) ))    				&& (periode.jour == tab[i].jour) ){					tab.push(periode);					alert("Vous ne pouvez pas sélectionner 2 conférences sur le même créneau horaire !");					return false;				}			}		//}		/*else			{			var tab2 = new Array();			for (var j = 0; j < tab.length; j++){				if (tab[j].id != periode.id){					tab2[tab2.length] = tab[j];					}				}				tab = tab2;			}*/	}	// Fonction de préremplissage de mon tableau de période	// (je charge en mémoire toutes les conf's cochés si je suis en modify	function remplirTab(a, b, id, jour)	{		var periode = new Periode(a, b, id, jour);		tab.push(periode);	}