
 var http = createRequestObject();
 function createRequestObject() 
 {
    var xmlhttp;
	try 
    { 
        xmlhttp=new ActiveXObject("Msxml2.XMLHTTP"); 
    }
	catch(e) 
    {
	    try 
	    { 
	        xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	    }
	    catch(f) 
	    { 
	        xmlhttp=null; 
	    }
	}
	if(!xmlhttp&&typeof XMLHttpRequest!="undefined") 
    {
	    xmlhttp=new XMLHttpRequest();	           
	}
	return  xmlhttp;
}
function ShowContent(page) 
{
    try
    {
        http.open('GET', page + '.txt');
        http.onreadystatechange = handleResponseText;
	    http.send(null);
	 }
	 catch(e){}
	 finally{}
 }
function handleResponseText() 
{
    try
    {
        if((http.readyState == 4)&& (http.status == 200))
        {
    	    var response = http.responseText;
    	    document.getElementById('Content').innerHTML = response;
	    }
    }
	catch(e){alert("an error occured");}
	finally{}
}