function getXMLHttpRequest()
{
	var xmlhttp=false;
	// 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 (E) {
			xmlhttp = false;
		}
	}
	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		xmlhttp = new XMLHttpRequest();
	}

	return xmlhttp;
}

function setElementClass(elem, cls)
{
	var e;
	if (document.getElementById)
		e = document.getElementById(elem);
	else if (document.layers)
		e = document.layers(elem);
	e.className = cls;
}
