﻿function ajax_object()
{
	request=false;
	if(window.XMLHttpRequest)
	{
		try
		{
			request=new XMLHttpRequest();
		}
		catch(e)
		{
			request=false;
		}
	}
	else if(window.ActiveXObject)
	{
		try
		{
			request=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e)
		{
			try
			{
				request=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e)
			{
				request=false;
			}
		}
	}
	return request;
}

function navigation(path)
{
    
	
	php_js = ajax_object();
	php_js.open("GET", path , true);
	php_js.onreadystatechange=function()
	{
		document.getElementById('center_td').innerHTML= "<center><img src='../index_files/ajax-loader.gif'/></center>";
		if(php_js.readyState == 4)
		{
			document.getElementById('center_td').innerHTML= "";
			document.getElementById('center_td').innerHTML = php_js.responseText;
		}
	}
	php_js.send(null);
	
}


