// JavaScript Document
// Function for Forms...
// created by EPO - Intersel - 2009

/* //--------------------------------------------------------------------
//	Function name : activate_XMLHttpRequest
//	Description		: initialise a XMLHttpRequest object
//	input 			: 
//  return value 	: void
//  global variables:	xhrcont: a global XMLHttpRequest object
//--------------------------------------------------------------------
*/							
var xhrcont = null;
function getXhrcont()
{				  
	
	if (window.XMLHttpRequest) xhrcont = new XMLHttpRequest();
	else if(window.ActiveXObject)
	{
		try
		{
			xhrcont = new ActiveXObject("Msxml2.XMLHTTP");
		} 
		catch (e)
		{
			xhrcont = new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	else
	{
		alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest...");
		xhrcont = false;
	}	 
	return xhrcont;
}

function ControlDisplay(myObject, aControledObject)
{ 
  if (myObject.checked) 
  {
    aControledObject.style.display = 'block';
  } 
  else  
  {
    aControledObject.style.display = 'none';
  }
}

