
<!--

function PopupCentrer(page,largeur,hauteur,options) {

  var top=(screen.height-hauteur)/2;

  var left=(screen.width-largeur)/2;

  window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);

}




function deleteItems(p_objForm){
	if (confirm("êtes-vous certain de vouloir effacer ces événements")){
		eval(p_objForm + ".action.value = 'DELETE';" );
		eval(p_objForm + ".submit();");
	}
	else return false;
	
}





function checkEmail(p_sEmailAdress)
{
	// checks if the email address passed as parameter is well
	// formated : "@" and "."
	// returns false if the address is not valid, true otherwise
	
	var bIsValid;
	var nAtPosition;
	var nDotPosition;
	
	// we supose that the address is valid
	bIsValid = true;
	
	nAtPosition = p_sEmailAdress.indexOf("@");
	
	if(nAtPosition < 1)
		bIsValid = false;
	else
	{
		nDotPosition = p_sEmailAdress.indexOf(".", nAtPosition);
		
		// there must be at least one character between the "@" and the "."
		if(nDotPosition - nAtPosition < 2) bIsValid = false;
		
		// there must be at least 2 characters after the "."
		if(nDotPosition >= p_sEmailAdress.length - 2) bIsValid = false;
	}
	
	return bIsValid;
}


function mustFill(p_sFieldName){
	alert ('le champ nommé "' + p_sFieldName + '" Doit être rempli');
	return false;
}


	
if(window.name.length == 0)
{
	window.location = "/index2.asp?callingPage=" + window.location;
}
//-->
