function is_email(email)

{

 var reg = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]{2,}[.][a-zA-Z0-9]{2,4}$/

 var reg2 = /[.@]{2,}/

 return ((reg.exec(email)!=null) && (reg2.exec(email)==null))

}

function is_date_heure(d) {

 var reg = /^([0-9]{1,2})[/]([0-9]{1,2})[/]([0-9]{2,4})[ ]([0-9]{1,2})[h]([0-9]{1,2})$/

 return (reg.exec(d)!=null)

} 

function is_date(d) {

 var reg = /^([0-9]{1,2})[/]([0-9]{1,2})[/]([0-9]{2,4})$/

 return (reg.exec(d)!=null)

}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function open_admin_config(adresse)
{
	fiche=window.open(adresse,'','status=yes,location,scrollbars=yes,resizable=yes,width=600,height=350')
}
function montre(id) 
	{
	var d = document.getElementById(id);
	if(d.style.display=='block')
		{
		d.style.display='none';
		}
	else if(d.style.display=='none')
		{
		d.style.display='block';
		}
	}
function open_geacsed_creation(adresse)
{
	fiche=window.open(adresse,'','status=yes,location,scrollbars=yes,resizable=yes,width=600,height=595')
}
function open_details(adresse)
{
	fiche=window.open(adresse,'','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=auto,width=700,height=150')
}