
	var ajax = new sack();
	
	function showUpdate()
	{
		txt=unescape(ajax.response);
        document.getElementById('texto').innerHTML = txt;
	}
	
	function refreshAjax(fecha)
	{				
		ajax.requestFile = "xthText.php?fecha="+fecha+"";	// Specifying which file to get
		ajax.onCompletion = showUpdate;	// Specify function that will be executed after file has been found
		ajax.runAJAX();		// Execute AJAX function
	}
	
	var ajaxEmail = new sack();
	
	function showUpdateEmail()
	{
		txt=unescape(ajaxEmail.response);
        document.getElementById('inscribirse').innerHTML = txt;        
	}
	
	function cargarEmail(infostr)
	{
		ajaxEmail.requestFile = "subscribe.php?email="+infostr+"";	// Specifying which file to get
		ajaxEmail.onCompletion = showUpdateEmail;	// Specify function that will be executed after file has been found
		ajaxEmail.runAJAX();		// Execute AJAX function
	}
	