/**
 * URL-UTILS.JS
 *
 * URL utility variables & functions.
 *
 * Author         Dave Snyckers [X-Cago BV]
 * Version        1.0
 */


/**
 * Get a new XML HTTP request.
 */
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 = null;
  	}
  }

  // non IE browser initialization
  if( !this.xmlhttp && typeof XMLHttpRequest != "undefined" )
  {
  	xmlhttp = new XMLHttpRequest();
  }

  return xmlhttp;
}