/**
 * URL-UTILS.JS
 *
 * URL utility variables & functions.
 *
 * Author         Dave Snyckers [X-Cago BV]
 */


function getXMLHTMLRequest()
{
  var xmlhttp = false;

  // IE browser initialization
  try
  {
  	xmlhttp = new ActiveXObject( "Msxml2.XMLHTTP" );
  }
  catch( exception )
  {
  	try
  	{
  		xmlhttp = new ActiveXObject( "Microsoft.XMLHTTP" );
  	}
  	catch( oc )
  	{
  		xmlhttp = false;
  	}
  }

  // non IE browser initialization
  if( !xmlhttp && typeof XMLHttpRequest != "undefined" )
  {
	try {
		xmlhttp = new XMLHttpRequest();
	} catch (e) {
		xmlhttp=false;
	}
  }

if (!xmlhttp && window.createRequest) {
	try {
		xmlhttp = window.createRequest();
	} catch (e) {
		xmlhttp=false;
	}
}

  return xmlhttp;
}