function sendRequest(action)
{
	//alert("sendRequest");
	
    var browser = navigator.appName;
    
    // there are more robust ways of detecting this, but we'll leave that
    //	as an exercise for the reader
    if(browser == "Microsoft Internet Explorer")
	{
		http = new ActiveXObject ("Microsoft.XMLHTTP");
		//alert("http:" + http);
	}
    else
    {
        http = new XMLHttpRequest();
    }
	
	//alert("sendRequest:" + action);
    http.open('get', action);
    http.onreadystatechange = handleResponse;
    http.send(null);
}


function handleResponse()
{
    if(http.readyState == 4)
    {
        var response = http.responseText;
        //alert("response:" + response);
        
		document.getElementById("desc").innerHTML = response;
    }
}


function toggleView(id)
{
	var the_element = document.getElementById(id);
	
	var current_display = the_element.style.display;
	
	if (current_display == "none")
	{
		the_element.style.display = "block";
	}
	else
	{
		the_element.style.display = "none";
	}
}