function display(id, str) {
	if (document.all)
	{
		document.all(id).innerHTML = str;
	}
	else if (document.getElementById)
	{
		document.getElementById(id).innerHTML = str;
	}
}

var req;
var aName;

function loadXMLDoc(name, url) {
	req = false;
	aName = name;
    // branch for native XMLHttpRequest object
    if(window.XMLHttpRequest) {
    	try {
			req = new XMLHttpRequest();
        } catch(e) {
			req = false;
        }
    // branch for IE/Windows ActiveX version
    } else if(window.ActiveXObject) {
       	try {
        	req = new ActiveXObject("Msxml2.XMLHTTP");
      	} catch(e) {
        	try {
          		req = new ActiveXObject("Microsoft.XMLHTTP");
        	} catch(e) {
          		req = false;
        	}
		}
    }
	if(req) {
		req.onreadystatechange = processReqChange;
		req.open("GET", url, true);
		req.send("");
	}
}

function processReqChange() {
    // only if req shows "loaded"
    if (req.readyState == 4) {
        // only if "OK"
        if (req.status == 200) {
            display(aName, req.responseText);
        } else {
            alert("There was a problem retrieving the XML data: \n" + req.statusText);
        }
    }
}

function showResume() {
	loadXMLDoc("replacementtext", "resume.xml");
}

function showNormalText() {
	loadXMLDoc("replacementtext", "normal.xml");
}

function showCertificationText() {
	loadXMLDoc("replacementtext", "certifications.xml");
}

function showSelAPMText() {
	loadXMLDoc("replacementtext", "selecting_a_project_manager.xml");
}

function showPublications() {
	loadXMLDoc("replacementtext", "publications.xml");
}

function showQuotes() {
	loadXMLDoc("replacementtext", "quotes.xml");
}

function showSoftware() {
	loadXMLDoc("replacementtext", "software.xml");
}