
	function Say(what)
	{
		SayStop();
		TalkPrompt.Start(what); // Start playback of requested phrase.
	}

	function SayStop()
	{
		try
		{
			TalkPrompt.Stop();			// Explicitely stop playback of current prompt.		
		}
		catch(e)
		{}
	}

	function HandleOnError()
	{}

	function HandleOnSilence()
	{}

	function SpeechAdjust(speed, volume)
	{
		// Value	Meaning 
		// 2.0		Double the current value, 
		// 0.5		Halve the current value, 
		// 1.0		Keep the current value,
		// 0		Restore the default value, etc.

		try
		{
		TalkPrompt.change(speed, volume);
		}
		catch(e) {}
	}

    function LaunchMicWizard()
    {
		var shell;
		var commonFilePath;
		var environment;

		shell = new ActiveXObject("WScript.Shell");
		environment = shell.Environment("Process");
		commonFilePath = environment.Item("CommonProgramFiles");
		shell.Run("\"rundll32.exe\" shell32.dll,Control_RunDLL \"" + commonFilePath + "\\Microsoft Shared\\Speech\\sapi.cpl\",Speech");
     }	

function OnChange(dropdown)
{
	var myindex = dropdown.selectedIndex;               
    var myText  =  dropdown.options[myindex].text;
    Say(myText);
    return true;
}
