var xmlHttp;

function urlencode(str) {
	return escape(str).replace(/\+/g,'%2B').replace(/%20/g, '+').replace(/\*/g, '%2A').replace(/\//g, '%2F').replace(/@/g, '%40');
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}

function addContent(divName, content) {
     document.getElementById(divName).innerHTML = content;
}

String.prototype.normalize = function() {
	return this.replace(/&#([0-9]{1,7});/,
		function (str, p1, p2, offset, s) {
			return String.fromCharCode(p1);
		}
	);
}
