function ajaxInitiate()
{
	var http = false;

	if(navigator.appName == "Microsoft Internet Explorer")
	{
		http = new ActiveXObject("Microsoft.XMLHTTP");
	}
	else
	{
		http = new XMLHttpRequest();
	}


	http.abort();

	return http;
}
function paganation(page,action)
{
	http=ajaxInitiate();

	http.open("GET","glossary_paganation.php?page="+page+"&action="+action, true);


	http.onreadystatechange=function()
	{
		if(http.readyState == 4)
		{
			document.getElementById('glossary_body').innerHTML = '';
			document.getElementById('paganation_div').innerHTML = '';
			document.getElementById('glossary_body').innerHTML= http.responseText;

		}
	}

	http.send(null);

}

function getMyGlossary(link_id)
{


	http=ajaxInitiate();

	http.open("GET","/ajax/get_glossary.php?id="+link_id, true);


	http.onreadystatechange=function()
	{
		if(http.readyState == 4)
		{
			overlib(http.responseText, CAPTION,'<img src="images/star.gif">&nbsp;Glossary');
			
		}
		else
		{
			nd();
		}
	}
	http.send(null);


}
