// JavaScript Document
function ajaxFunction()
{
	var xmlHttp;
	try
	{
		  // Firefox, Opera 8.0+, Safari
		  xmlHttp=new XMLHttpRequest();
	}catch (e)
	{
	  // Internet Explorer
	  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;
}
http2 = ajaxFunction();
function RequestUpdate(url,tagId)
{
	http = ajaxFunction();
	url = url + "&aj=" +  Math.random();
	http.open("GET", url , true);
	http.onreadystatechange = function() 
	{//Call a function when the state changes.
		if(http.readyState == 4 && http.status == 200) 
		{
			document.getElementById(tagId).innerHTML = http.responseText;
			//alert(http.responseText);
		}else
		{
			document.getElementById(tagId).innerHTML = "<div align=\"center\"><img src=\"common/images/5-1.gif\" /></div>";		
		}
	}
	http.send(null);
}
function RequestUpdate2(url,tagId)
{
	url = url + "&aj=" +  Math.random();
	http2.open("GET", url , true);
	http2.onreadystatechange = function() 
	{//Call a function when the state changes.
		if(http2.readyState == 4 && http2.status == 200) 
		{
			document.getElementById(tagId).innerHTML = http2.responseText;
			//alert(http.responseText);
		}else
		{
			document.getElementById(tagId).innerHTML = "<div align=\"center\"><img src=\"common/images/5-1.gif\" /></div>";		
		}
	}
	http2.send(null);
}

function RequestUpdate3(url)
{
	
	http.open("GET", url , true);
	http.onreadystatechange = function() 
	{//Call a function when the state changes.
		if(http.readyState == 4 && http.status == 200) 
		{
			//document.getElementById(tagId).innerHTML = http2.responseText;
			alert(http.responseText);
		}else
		{
			
		}
	}
	http.send(null);
}