var isIE = false;
var req;
var spanid = '';

function processReqChange() {
    if (req.readyState == 4) {
        if (req.status == 200) {
            GetTopic3();
         }
 else {
            alert("There was a problem retrieving the XML data:\n" + req.statusText);
         }
    }
}

function GetTopic3() {
    var str = req.responseText;
	document.getElementById('Topic3_').innerHTML = str;
}

function loadXMLDocPass(TopicID) {
	a = new Date("December 1, 2000");
	b = new Date();
	url = 'Topic3AJAX.asp?TopicID='+TopicID+'&a='+(a-b);

    if (window.XMLHttpRequest) {
        req = new XMLHttpRequest();
        req.onreadystatechange = processReqChange;
        req.open("GET", url, true);
        req.send(null);
    }
	else if (window.ActiveXObject) {
        isIE = true;
        req = new ActiveXObject("Microsoft.XMLHTTP");
        if (req) {
            req.onreadystatechange = processReqChange;
            req.open("GET", url, true);
            req.send();
        }
    }
}

function LoadTopic3() {
	val = document.getElementById('pulldownx1').value;
	loadXMLDocPass(val);
}