function Votar( story_id )
{
	obj_ajax = Crear_XMLRequest();
	obj_ajax.onreadystatechange = Ajax_Status;
	obj_ajax.open( 'GET', '/periodico/edicion-actual/funciones/mas_votadas.php?story_id='+story_id+"&ramdon="+Math.random(), true );
	//
	obj_ajax.send(null);
}
//
function Ajax_Status()
{
	if( obj_ajax.readyState == 4 )
	{	alert(obj_ajax.responseText);	}
}
//
function Crear_XMLRequest()
{
	var xmlhttp=false;
 	try {
 		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
 	} catch (e) {
 		try {
 			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
 		} catch (E) {
 			xmlhttp = false;
 		}
  	}

	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
 		xmlhttp = new XMLHttpRequest();
	}
	return xmlhttp;
}
//


function Ajax_Status2()
{
	if( obj_ajax.readyState == 4 )
	{		}
}

function setToRed(story_id)
{
  setTimeout("visitas(story_id)",300);
}

function visitas(story_id)
{
	setTimeout("",300);
	obj_ajax = Crear_XMLRequest();
	obj_ajax.onreadystatechange = Ajax_Status2;
	obj_ajax.open( 'GET', '/periodico/edicion-actual/funciones/v.php?story_id='+story_id+'&ramdon='+Math.random(), true );
	//
	obj_ajax.send(null);
}

function visitasxx(story_id)
{

}
window.onLoad = function(){ Votar( story_id ) }
