

function Texts() { 

      vxTTS.value = 'Para ir a la página principal, diga: volver, o, atrás.   ';

      vxTituloNoticia = document.getElementById('titulo').innerText;
      vxFechaNoticia = document.getElementById('fecha').innerText;
      vxCuerpoNoticia = document.getElementById('cuerpo').innerText;
      
      vxTTS.value += 'Noticia publicada el ' + vxFechaNoticia + '. ';
      vxTTS.value += vxTituloNoticia + '. ';
      vxTTS.value += vxCuerpoNoticia + '.   ';

      vxTTS.value += 'Para ir a la página principal, diga: volver, o, atrás. ';

      return vxTTS.value;

  }


function VoiceCommands() { 

      vxASR.value = '';

      vxASR.value += 'volver==volver#####';
      vxASR.value += 'atrás==volver#####';
      vxASR.value += 'inicio==volver#####';

      return vxASR.value;

  }


function Management() { 

	vxVoiceCommand.value = vxRC.value;
      	vxSemanticInt.value = vxRSI.value;
      
      return 'vxSemanticInt==' + vxSemanticInt.value + '#####';

}


function Navigation() { 

      if (vxSemanticInt.value == 'volver') {
          /* Pulsamos en volver */
          vxDivs = document.getElementById('volver');
          vxEnlaceVolver = vxDivs.getElementsByTagName('A')(0);
          vxEnlaceVolver.click();
      }
      return '1';

}


function visualTexts() { 

      vxTTS.value = '';

      vxTituloNoticia = document.getElementById('titulo').innerText;
      vxFechaNoticia = document.getElementById('fecha').innerText;
      vxCuerpoNoticia = document.getElementById('cuerpo').innerText;
      
      vxTTS.value += 'Noticia publicada el ' + vxFechaNoticia + '. ';
      vxTTS.value += vxTituloNoticia + '. ';
      vxTTS.value += vxCuerpoNoticia + '.   ';

      vxTTS.value += ' Recuerde que puede volver a activar el reconocimiento de voz diciendo, inicio. ';

      return vxTTS.value;

}



