<!--
function handleEnter(e, triggerElementID)
{
	// If the key pressed is "enter"
	if (e.keyCode == 13)
	{	
		// If the user's browser is Mozilla's based, the first method is available since
		// their DOM implementation is more advanced than IE
		if (e.preventDefault)
		{
			e.preventDefault();
		}
		else
		{
			e.returnValue = false;
		}
		
		// Focus and click on the trigger
		document.getElementById(triggerElementID).focus(); 
		document.getElementById(triggerElementID).click();
	}
	else
	{
		e.returnValue = true;
	}
}

function clearText(thefield)
{
	if (thefield.defaultValue==thefield.value)
		thefield.value = "";
} 

// Function for PopUp
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//Function QuickTime

function writeQuickTime(path, width, height) {
	strContent = '<OBJECT codeBase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0" height="'+height+'"'+
						'width="'+width+'" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" VIEWASTEXT>'+
						'<PARAM NAME="controller" VALUE="TRUE">'+
						'<PARAM NAME="type" VALUE="video/quicktime">'+
						'<PARAM NAME="autoplay" VALUE="true">'+
						'<PARAM NAME="src" VALUE="'+path+'">'+
						'<PARAM NAME="pluginspage" VALUE="http://www.apple.com/quicktime/download/indext.html">'+
						'<EMBED WIDTH="'+width+'" HEIGHT="'+height+'" CONTROLLER="TRUE" SRC="'+path+'" type="video/quicktime"'+
						'BGCOLOR="#000000" BORDER="0" PLUGINSPAGE="http://www.apple.com/quicktime/download/index.html"></EMBED></OBJECT>';
	document.write(strContent);
}


function ShowHideChangeProfile()
{
	var cObj = "pageHeader_Navutil1_ChangeProfile1_ChangeProfil";	
	cObj = "ChangeProfil";
	ShowHide(cObj);	
}

function getStyle(el,styleProp)
{
 var x = document.getElementById(el);
 if (x.currentStyle)
  var y = x.currentStyle[styleProp];
 else if (window.getComputedStyle)
  var y = document.defaultView.getComputedStyle(x,null).getPropertyValue(styleProp);
 return y;
}


function ShowHide(cObj)
{
	if (document.getElementById && document.getElementById(cObj) != null)
	{
		if (document.getElementById(cObj).style.display == 'none')
		{
			setVisibilityOn(cObj);
		}
		else
		{
			setVisibilityOff(cObj);
		}
	}
}


function setVisibilityOff(controlName)
{	
	document.getElementById(controlName).style.display = "none";	
}

function setVisibilityOn(controlName)
{
	document.getElementById(controlName).style.display = "block";	
}

function OpenPopup(page,largeur,hauteur)
{
  var top=(screen.height-hauteur)/2;
  var left=(screen.width-largeur)/2;
  window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+"menubar=no, status=no, scrollbars=no, resizable=no");
}

function Jump(obj)
{
	window.location.href = obj;
}


function AjusteLeftPane()
{
	var margin = 0;
	var currentDivHeight = 0;
	var rightPaneHeight = 0;
	var cNomLeftPane = "leftPane";
	var cNomRightPane = "rightPane";
	var cNomLeftPaneBorder = "leftPaneBottomBorderBigBlueBox";
	
	if (document.getElementById && document.getElementById(cNomLeftPane) == null)
		cNomLeftPane = "leftPanel";
	if (document.getElementById && document.getElementById(cNomRightPane) == null)
		cNomRightPane = "rightPanel";
	if (document.getElementById && document.getElementById(cNomLeftPaneBorder) == null)
		cNomLeftPaneBorder = "leftPaneBorder";

	currentDivHeight = document.getElementById(cNomLeftPane).offsetHeight;
	rightPaneHeight = document.getElementById(cNomRightPane).offsetHeight;
/*
	alert("cNomLeftPane: [" + cNomLeftPane + "]");
	alert("cNomRightPane: [" + cNomRightPane + "]");
	alert("currentDivHeight: [" + currentDivHeight + "]");
	alert("rightPaneHeight: [" + rightPaneHeight + "]");
*/	
	if ( currentDivHeight + margin < rightPaneHeight )
	{
/*
		alert("Change dimension");
		alert("previous dim: [" + document.getElementById(cNomLeftPaneBorder).style.height + "]");
*/
		document.getElementById(cNomLeftPaneBorder).style.height = (rightPaneHeight - margin )+ "px";
	}
}