var xmlHttp;

function saveclick(str, ruta)
{ 
xmlHttp=GetXmlHttpObject();

if (xmlHttp==null)
{
alert ("Your browser does not support AJAX!");
return;
} 
var url = ruta + "/getClick.asp";
url=url+"?fonda="+str;
url=url+"&tipo=1";
xmlHttp.onreadystatechange=stateChanged2;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}



function stateChanged2() 
{ 

	if (xmlHttp.readyState==4)
{ 
	proba();
}
	/*var l = parseInt((screen.width - 800)/2);
	var t = parseInt((screen.height - 600)/2);
	var n = parseInt(Math.random() * 1000);
	var sc = 0;
	var w = 800;
	var h = 600;
	var nw = window.open("http://" + web, "NewWindow" + n, "width=" + w + "px,height=" + h + "px,left=" + l + "px,top=" + t + "px,scrollbars="+sc);	*/
	

}


function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}