// JavaScript Document
var xmlhttp=false;
if(window.XMLHttpRequest){
	xmlhttp = new XMLHttpRequest();
}else if(window.ActiveXObject){
	xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
//A variable used to distinguish whether to open or close the calendar.
var content = true;
function showContent(num,div,id) {
//The location we are loading the page into.
var objID = div;
//Change the current image of the minus or plus.
if (content == true){
//Show the calendar.
document.getElementById(id).src = "picture/minus.jpg";
//document.getElementById("cont").innerHTML = "Hide Explaination";
//The page we are loading.
var serverPage = "pages/internet.php?con="+num;
//Set the open close tracker variable.
content = false;
var obj = document.getElementById(objID);
xmlhttp.open("GET", serverPage);
xmlhttp.onreadystatechange = function() {
	if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
		obj.innerHTML = xmlhttp.responseText;
	}
}
xmlhttp.send(null);
} else {
//Hide the calendar.
document.getElementById(id).src = "picture/plus.jpg";
//document.getElementById("cont").innerHTML = "Show Explaination";
content = true;
document.getElementById(objID).innerHTML = "";
}
}