function validate_form(form)
{
	updateRTEs();
	
	return true;
}

function isNumerique(valeur)
{
	return valeur == parseFloat(valeur) ;
}

function PopUpWindow(Url,PageName,Width,Height,HaveScroll,Position,Resize){
	
	if(Resize==null)
	{
		Resize="no";
	}
	
	if(Position==null)
	{
		LeftPosition=200;
		TopPosition=200;
	}
	
	if(Position=="random")
	{
		LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-Width)):100;
		TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-Height)-75)):100;
	}
	
	if(Position=="center")
	{
		LeftPosition=(screen.width)?(screen.width-Width)/2:100;
		TopPosition=(screen.height)?(screen.height-Height)/2:100;
	}
	
	settings='width='+Width+',height='+Height+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+HaveScroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable='+Resize;

	win=window.open(Url,'',settings);
}

function SetFieldValue(FieldId,FieldValue)
{
	Field = document.getElementById(FieldId);
	Field.value = FieldValue;
}