
function showLoadedData() 
{
    var msg="Loading...<br><img src=img/bg0.gif width=1 height=300>";
    if (req.readyState == 4) 
	{ 
        if (req.status == 200) 
		{

			msg = req.responseText;


        } 
		else
		{ 
            msg = "ERROR loading details";
        }
    } 
    document.getElementById('infotextarea').innerHTML = msg;
    return true;
}



function work_area(msg)
{
	window.document.body.scrollTop=1;
if(msg!='echo.php?go=main')
	window.document.getElementById('top').innerHTML ='<img src=img/bg0.gif width=1 height=1>';
else
	window.document.getElementById('top').innerHTML ='<table width=100% height=330 cellpadding=0 cellspacing=0 border=0><tr height=330>'+
		'<td colspan=2><table border=0 cellspacing=0 cellpadding=0 width=100% background="img/topnlogo_bg.jpg">'+
		'<tr><td id=bgg width=100% height=330 valign=top style="margin-top:87; margin-left:76;">'+
		'<a href=""><img src="img/logo.gif" width=250 height=140 ></a></td></tr>'+
		'</table></td></tr></table>';


	if (window.XMLHttpRequest)
	{
		req = new XMLHttpRequest();
		req.onreadystatechange = showLoadedData;
		req.open("GET", msg, true);
		req.send(null);
	}
	else if (window.ActiveXObject)  
	{
		req = new ActiveXObject("Microsoft.XMLHTTP");
        if (req)
        {
			req.onreadystatechange = showLoadedData;
            req.open("GET", msg, true);
            req.send();
		}
	}
}


