	
	String.prototype.trim = function(str) { 
		str = this != window ? this : str; 
		return str.replace(/^\s+/g,'').replace(/\s+$/g,''); 
	}	
	

	function getXMLHttpRequest() {
		if(window.ActiveXObject) {
			try
			{
				return new ActiveXObject('Msxml2.XMLHTTP');
			}
			catch (E)
			{
				try
				{
					return new ActiveXObject('Microsoft.XMLHTTP');
				}
				catch (E1)
				{
					return null;
				}
			}
		}
		else {
			if (window.XMLHttpRequest) {
				return new XMLHttpRequest();
			}
			else {
				return null;
			}
		}
	}


