function GetXmlHttpObject() {
	var xmlHttp=null;
	try {
		xmlHttp=new XMLHttpRequest();
	}
	catch (e) {
		try {
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e) {
			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	return xmlHttp;
}


function ajaxBrowse(d,q) {
	h = document.domain;
	if(q.indexOf(h)!=-1)q=q.substr(q.indexOf(h)+h.length);
	ajaxUpdate(d,q+(q.indexOf('?')!=-1?'&':'?')+'a=browse','if(document.getElementById(\'ajaxtitle\'))document.title=document.getElementById(\'ajaxtitle\').innerHTML');
	location.hash = q;
	pageTracker._trackPageview(q);
}


function ajaxEval(strURL) {
	xmlHttp = GetXmlHttpObject();
	if (xmlHttp == null) return;
	xmlHttp.onreadystatechange = function() { 
		if (xmlHttp.readyState == 4) {
			eval(xmlHttp.responseText);
		}
	};
	xmlHttp.open("GET",strURL,true);
	xmlHttp.send(null);
}

function ajaxSend(strURL) {
	xmlHttp = GetXmlHttpObject();
	if (xmlHttp == null) return;
	xmlHttp.open("GET",strURL,true);
	xmlHttp.send(null);
}

function ajaxUpdate(strDiv,strURL,strEval) {
	xmlHttp = GetXmlHttpObject();
	if (xmlHttp == null) return;
		xmlHttp.onreadystatechange = function() {
		if (xmlHttp.readyState == 4) {
			document.getElementById(strDiv).innerHTML = xmlHttp.responseText;
			if (strEval) eval(strEval);
		}
	}
	xmlHttp.open("GET",strURL,true);
	xmlHttp.send(null);
}
