var xmlHttp;
function update_link(url)
{ 	
    xmlHttp=GetXmlHttpObject();
	
	if (xmlHttp==null)
	{
	  alert ("Browser does not support HTTP Request");
	  return;
	} 
	
	var new_url;
	new_url="update_link.php?url="+url;
	
	xmlHttp.onreadystatechange=stateChanged90;
	xmlHttp.open("GET",new_url,true);
	xmlHttp.send(null);
	
}

function stateChanged90() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
	   window.open(xmlHttp.responseText);
	}
} 


function GetXmlHttpObject()
{ 
	var objXMLHttp=null;
	if (window.XMLHttpRequest)
	{
	objXMLHttp=new XMLHttpRequest();
	}
	else if (window.ActiveXObject)
	{
	objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	return objXMLHttp;
}