	var xmlHttp = null;
	/*@cc_on @*/
	/*@if (@_jscript_version >= 5)
	 //JScript gives us Conditional compilation, we can cope with old IE versions.
	 //and security blocked creation of the objects.
	try 
	{
		xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
	} 
	catch (e) 
	{
		try 
		{
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		} 
		catch (f) 
		{
			xmlHttp = null;
		}
	}
	@end @*/
	
	if (!xmlHttp && typeof(XMLHttpRequest) != "undefined") 
	{
		try
		{
			xmlHttp = new XMLHttpRequest();
		} 
		catch (e)
		{
			xmlHttp = null;
		}
	}
	if (!xmlHttp && window.createRequest)
	{
		try
		{
			xmlHttp = window.createRequest();
		}
		catch (e)
		{
			xmlHttp = null;
		}
	}
	
	function GetUrlParam(name)
	{
		name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
		var regexS = "[\\?&]" + name + "=([^&#]*)";
		var regex = new RegExp(regexS);
		var results = regex.exec(window.location.href);
		if(results == null)
		{
			return "";
		}
		else
		{
			return results[1];
		}
	}
	
	function Format(str)
	{
		for(i = 0; i < arguments.length; i++)
		{
			str = str.replace("{" + i + "}", arguments[i+1]);
		}
		return str;
	}

	String.Format = Format;
