function includeUrlInDiv(relURL, divId){
	addLoadEvent(function(){
		var xmlHttp = GetXmlHttpObject()
		if (xmlHttp == null){
			return;
		}
		xmlHttp.onreadystatechange = function(){
			if (xmlHttp.readyState == 4 || xmlHttp.readyState == "complete"){
				var xmlDoc = xmlHttp.responseText;
				document.getElementById(divId).innerHTML = xmlDoc;
			}
		};
		xmlHttp.open("GET",relURL,true);
		xmlHttp.send(null);
	});
}

function GetXmlHttpObject(){ 
	var objXMLHttp = null;
	if (window.XMLHttpRequest){
		objXMLHttp = new XMLHttpRequest();
	}else if(window.ActiveXObject){
		objXMLHttp = new ActiveXObject("Microsoft.XMLHTTP");
	}
	return objXMLHttp;
}

function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
			if (oldonload) {
				oldonload();
			}
			func();
		}
	}
}

function includeInDiv(filename, divId){
	includeUrlInDiv('/download/717/includes/' + filename, divId);
}

function include(filename){
	includeInDiv(filename, "contentheading");
}