//popup.js

function requestpopup(serverPage, objID) {

	var obj = document.getElementById(objID);
	xmlhttp.open("GET", serverPage);
	xmlhttp.onreadystatechange = function() {
		if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
			obj.innerHTML = xmlhttp.responseText;
			theObject=document.getElementById(objID);
		}
	}
	xmlhttp.send(null);
}

function hidepopup (objID){
	tObject = document.getElementById(objID);
	tObject.style.visibility = "hidden";
	tObject.style.height = "0px";
	tObject.style.width = "0px";

	document.getElementById('overlay').style.visibility = 'hidden';
	document.getElementById('overlay').style.height = "0px";
	document.getElementById('overlay').style.width = "0px";
}

function closetask (){
	theObject=document.getElementById("createtask");

	theObject.style.visibility="hidden";
	theObject.style.height="0px";
	theObject.style.width="0px";

	acObject=document.getElementById("autocompletediv");

	theObject.style.visibility="hidden";
	theObject.style.height="0px";
	theObject.style.width="0px";
}
