function CreateHTTPRequest()
{
	var xmlHttp;
	try
	{
		xmlHttp=new XMLHttpRequest();
	}
	catch (e)
	{
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			try
			{
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e)
			{
				alert("Your browser does not support AJAX!");
				return false;
			}
		}
	}
	
	return xmlHttp;
}

function LoadLinks(link_opt)
{
	var xmlHttp = CreateHTTPRequest();
	xmlHttp.onreadystatechange=function()
	{
		if(xmlHttp.readyState==4)
		{
			var response_str = xmlHttp.responseText;
			if(xmlHttp.status == 200)
			{
				if(response_str.length != 0)
				{
					document.getElementById("links_area").innerHTML = response_str;
				}
			}
			else if(xmlHttp.status == 500)
			{
				alert("Script Error: 500");
			}
		}
	}
	
	var script_links = "";
	if(link_opt == 0)
	{
		script_links = 'the_links.php';
	}
	else
	{
		script_links = '../../../the_links.php';
	}
	
	var parameters = "a=a";
	xmlHttp.open('POST', script_links, true);
	xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	xmlHttp.setRequestHeader("Content-length", parameters.length);
	xmlHttp.setRequestHeader("Connection", "close");
	xmlHttp.send(parameters);
}

function DisplayMsg()
{
	alert("hi");
	
}