function getIOPDB() {
	var xmlHttp;
	try {
		xmlHttp=new XMLHttpRequest();
	}
	catch (e) {
		try {
			xmlHttp=new ActiveXObject('Msxml2.XMLHTTP');
		} catch (e) {
			try {
				xmlHttp=new ActiveXObject('Microsoft.XMLHTTP');
			} catch (e) {
				alert('Your browser does not support AJAX!');
				return false;
			}
		}
	}

	xmlHttp.onreadystatechange=function() {
		if(xmlHttp.readyState==4) {
			document.getElementById('articleList').innerHTML=xmlHttp.responseText;
		}
	}
	
	var ID = document.getElementById('iopdbtopic').value;
	
	if (ID == 0) {
		alert('Please select a different topic.');
		return;
	}
	
	var queryString = "?ID=" + ID;
	
	xmlHttp.open('GET',"/scripts/viewIOP.php" + queryString,true);
	xmlHttp.send(null);
}
function getIOPDBtext(ID) {
	var xmlHttp;
	try {
		xmlHttp=new XMLHttpRequest();
	}
	catch (e) {
		try {
			xmlHttp=new ActiveXObject('Msxml2.XMLHTTP');
		} catch (e) {
			try {
				xmlHttp=new ActiveXObject('Microsoft.XMLHTTP');
			} catch (e) {
				alert('Your browser does not support AJAX!');
				return false;
			}
		}
	}

	xmlHttp.onreadystatechange=function() {
		if(xmlHttp.readyState==4) {
			document.getElementById('articleText').innerHTML=xmlHttp.responseText;
		}
	}
	
	var queryString = "?ID=" + ID;
	
	xmlHttp.open('GET',"/scripts/viewIOPtext.php" + queryString,true);
	xmlHttp.send(null);
}
