function ajaxGet(url, divid) {

	var http = false;
	try {
		http = new XMLHttpRequest();
	}
	catch (trymicrosoft) {
		try {
			http = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (othermicrosoft) {
			try {
				http = new ActiveXObject("Microsoft.XMLHTTP");
			} 
			catch (failed) {
				http = false;
			}
		}
	}

	if (!http) {
		alert("XML Failure.  You are using an unsupported browser.");
		return;
	}
	
	http.open("GET", url, true);
	http.onreadystatechange = function() {
		if(http.readyState == 4) {
			document.getElementById(divid).innerHTML = http.responseText;
		}
	}
	http.send(null);
}
function ajaxDo(url) {

	var http = false;
	try {
		http = new XMLHttpRequest();
	}
	catch (trymicrosoft) {
		try {
			http = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (othermicrosoft) {
			try {
				http = new ActiveXObject("Microsoft.XMLHTTP");
			} 
			catch (failed) {
				http = false;
			}
		}
	}

	if (!http) {
		alert("XML Failure.  You are using an unsupported browser.");
		return;
	}
	
	http.open("GET", url, true);
	http.onreadystatechange = function() {
		if(http.readyState == 4) {
		}
	}
	http.send(null);
}

function showPopupForm(formdiv, formWidth, formHeight) {
	divname = document.getElementById(formdiv.id).id;
	document.getElementById(divname).style.height = formHeight;
	document.getElementById(divname).style.width = formWidth;
	setOpacity(document.getElementById('fadescreendiv'), 0);
	document.getElementById('fadescreendiv').style.visibility = 'visible';
	document.getElementById(divname).style.top = (document.body.clientHeight / 2) - (formHeight / 2);
	document.getElementById(divname).style.left = (document.body.clientWidth / 2) - (formWidth / 2);
	document.getElementById(divname).style.visibility = 'visible'; 
	fadeIn(document.getElementById('fadescreendiv').id, 0);
	fadeIn(divname, 0);
}
function hidePopupForm(formdiv) {
	fadeOut(formdiv.id, 100);
	fadeOut(fadescreendiv.id, 100);
}
function quickShowDiv(formdiv, formWidth, formHeight) {
	setOpacity(fadescreendiv, 0);
	formdiv.style.height = formHeight;
	formdiv.style.width = formWidth;
	formdiv.style.top = (document.body.clientHeight / 2) - (formHeight / 2);
	formdiv.style.left = (document.body.clientWidth / 2) - (formWidth / 2);
	fadescreendiv.style.visibility = 'visible';
	formdiv.style.visibility = 'visible'; 
	setOpacity(fadescreendiv, 80);
	setOpacity(formdiv, 100);
}
function quickHideDiv(formdiv) {
	fadescreendiv.style.visibility = 'hidden';
	formdiv.style.visibility = 'hidden'; 
}
function setOpacity(obj, opacity) {
	obj.style.filter = "alpha(opacity:"+opacity+")";
	obj.style.KHTMLOpacity = opacity/100;
	obj.style.MozOpacity = opacity/100;
	obj.style.opacity = opacity/100;
}
function fadeIn(objID, opacity) {
	if (document.getElementById) {
		obj = document.getElementById(objID);
		if (opacity == 0) {
				obj.style.visibility = 'visible';
		}
		if (opacity < 90) {
			setOpacity(obj, opacity);
			opacity = opacity + 10;
			window.setTimeout("fadeIn('"+objID+"',"+opacity+")", 50);
		}
		else {
			if (objID != "fadescreendiv") {
				setOpacity(obj, 100);
			}
		}
	}
}
function fadeOut(objID, opacity) {
	if (document.getElementById) {
		obj = document.getElementById(objID);
		if (opacity >= 0) {
			setOpacity(obj, opacity);
			opacity = opacity - 10;
			window.setTimeout("fadeOut('"+objID+"',"+opacity+")", 50);
		}
		else {
			obj.style.visibility = 'hidden';
		}
	}
}