")
viewSource.close();
}
function loadVoices() {
if(TTSHandler) {
if(document.getElementById) {
var TTSVoices = TTSHandler.GetVoices();
var htmlCode = " Voice: ";
document.getElementById("combo").innerHTML = htmlCode;
}
} else {
if ("ActiveXObject" in window) {
alert("To enable Text to Speech, add the page address to a secure zone " +
"in the 'Security' tab of 'Internet options' dialog " +
"and set 'Initialize and script ActiveX controls not marked as safe'" +
" to 'Prompt'");
}
}
}
if ("speechSynthesis" in window) {
window.speechSynthesis.onvoiceschanged = function (e) {
loadVoices();
};
}
//-->