var xmlHttp13;
function createXMLHttpRequest13() {
    if (window.ActiveXObject) {
        xmlHttp13 = new ActiveXObject("Microsoft.XMLHTTP");
    } 
    else if (window.XMLHttpRequest) {
        xmlHttp13 = new XMLHttpRequest();
    }
}
function getText(url) {
    createXMLHttpRequest13();
    xmlHttp13.onreadystatechange = handleStateChange13;
    xmlHttp13.open("GET", url, true);
    xmlHttp13.send(null);
}
function handleStateChange13() {
	if(xmlHttp13.readyState < 4) {
        	document.getElementById("textArea").innerHTML = 'Loading ....';
    }
    if(xmlHttp13.readyState == 4) {
        if(xmlHttp13.status == 200) {
        	document.getElementById("textArea").innerHTML = xmlHttp13.responseText;
        }
    }
}

var xmlHttp14;
function createXMLHttpRequest14() {
    if (window.ActiveXObject) {
        xmlHttp14 = new ActiveXObject("Microsoft.XMLHTTP");
    } 
    else if (window.XMLHttpRequest) {
        xmlHttp14 = new XMLHttpRequest();
    }
}
function getServices(url) {
    createXMLHttpRequest14();
    xmlHttp14.onreadystatechange = handleStateChange14;
    xmlHttp14.open("GET", url, true);
    xmlHttp14.send(null);
}
function handleStateChange14() {
	if(xmlHttp14.readyState < 4) {
        	document.getElementById("body").innerHTML = 'Loading ....';
    }
    if(xmlHttp14.readyState == 4) {
        if(xmlHttp14.status == 200) {
        	document.getElementById("body").innerHTML = xmlHttp14.responseText;
        }
    }
}

// Show/Hide
function toggleLayer(whichLayer)
{
	if (document.getElementById)
	{
	// this is the way the standards work
	var style2 = document.getElementById(whichLayer).style;
	style2.display = style2.display? "":"block";
	}
		else if (document.all)
		{
		// this is the way old msie versions work
		var style2 = document.all[whichLayer].style;
		style2.display = style2.display? "":"block";
		}
			else if (document.layers)
			{
			// this is the way nn4 works
			var style2 = document.layers[whichLayer].style;
			style2.display = style2.display? "":"block";
			}
}
