			var HTMLReq;
			var linkControlGlobal;
			var webPageTemp;
			
		
function FetchByAjax(linkControl,webPage)
{


	
	linkControlGlobal=linkControl;
	
		try
	{
		HTMLReq = new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch(e)
	{
		try
		{
			HTMLReq = new ActiveXObject("Microsoft.XMLHTTP");
		} 
		catch(oc)
		{
			HTMLReq = null;
		}
	}
	if(!HTMLReq && typeof XMLHttpRequest != "undefined") 
	{
		HTMLReq = new XMLHttpRequest();
	}
	
	if(HTMLReq)
	{
		HTMLReq.onreadystatechange = HandleResponse;
		HTMLReq.open("post",webPage,  true);
		HTMLReq.send();
	}
	return false;
}

function HandleResponse()
{
	if(HTMLReq.readyState == 4)
	{
		if(HTMLReq.status == 200)
		{
			
			if(linkControlGlobal=="assigntooltip")
			{
				AssignToolTip(HTMLReq.responseText);
			}
			
			else if (linkControlGlobal=="changetooltip")
			{
				ChangeToolTip(HTMLReq.responseText);
			}
			else if (linkControlGlobal=="showgallery")
			{
			
				AssignGallery(HTMLReq.responseText);
			}
			else if(linkControlGlobal=="linkmenulevels")
			{
			
				BindMenu(HTMLReq.responseText);
			}
		}
		else
		{
			alert("There was a problem retrieving data from the server." );
		}
	}
}

