var CN;
var ajaxTar;

function notSiguiente(codigo,idioma){       
       CN = codigo;
       /*var tarifa = document.getElementById('t'+codigoTH).value;*/
       if(window.XMLHttpRequest) {
            ajaxTar = new XMLHttpRequest();
       }
       else if(window.ActiveXObject) {
            ajaxTar = new ActiveXObject("Microsoft.XMLHTTP");
       }
       // Preparar la funcion de respuesta
       ajaxTar.onreadystatechange = cargaSiguienteNoticia;

       // Realizar peticion HTTP


       var ruta = "./otraNoticia.php?codigoNoticia="+codigo+"&codigoIdioma="+idioma;
       /*alert(ruta);*/
       ajaxTar.open("POST",ruta,true);
       ajaxTar.send("");
}

function cargaSiguienteNoticia() {
    if(ajaxTar.readyState == 4) {
      if(ajaxTar.status == 200) {
        /*alert(ajaxTar.responseText);*/
        //reduce(903);
        document.getElementById('superContenedor').innerHTML = ajaxTar.responseText;
        //agranda(0);
      }
    }

}

function reduce(ancho){
    if(ancho <= 0)return;
    ancho -= 3;
    document.getElementById('actual').style.width = ancho+"px";
    setTimeout("reduce("+ancho+")",10);
}
function agranda(ancho){
    if(ancho >= 903)return;
    ancho += 3;
    if(ancho>903)ancho = 903;
    document.getElementById('actual').style.width = ancho+"px";
    setTimeout("agranda("+ancho+")",10);
}




