// JavaScript Document

<!--
var loadingimg = "images/loading.gif";
var bustcache = 1;
var bustcacheparam = "";

function createXMLHttpRequest()
{
	var http = null;

	if(window.XMLHttpRequest)
	{
		http = new XMLHttpRequest();

		if(http.overrideMimeType)
		{
			//http.overrideMimeType('text/xml');
		}
	}
	else if(window.ActiveXObject)
	{
		try
		{
			http = new ActiveXObject("Msxml2.XMLHTTP")
		} 
		catch(e)
		{
			try
			{
				http = new ActiveXObject("Microsoft.XMLHTTP")
			}
			catch(e){}
		}
	}

	if(!http)
	{
		alert('Giving up: AJAX cannot create an XMLHTTP instance');
		return false;
	}

	return http;
}

var http = createXMLHttpRequest(); 

function getAjaxContent(query, container,appendflag)
{
	if (appendflag == "undefined") appendflag = 0;
	var url = query;

	document.getElementById(container).innerHTML = "<img src='" + loadingimg + "'>";

	http.abort();

	http.onreadystatechange = function()
	{
		loadAjaxContent(http, container,appendflag);
	}

	if(bustcache)
	{
		bustcacheparam = (url.indexOf("?") != -1) ? "&" + new Date().getTime() : "?" + new Date().getTime();
	}

	http.open('GET', url + bustcacheparam, true);
	http.send(null);
	return;
}

function test()
{
return ;
}
function loadAjaxContent(http, container,appendflag)
{
	//alert(http.status);
	if(http.readyState == 4 && (http.status == 200 || window.location.href.indexOf("http") == -1))
	{
		if (appendflag == 1)
		{
				document.getElementById(container).innerHTML = document.getElementById(container).innerHTML  + http.responseText;
		}
		else
		{
				document.getElementById(container).innerHTML = http.responseText;
		}
	}
	
}

//-->