function openWindow(url, name) {

  popupWin = window.open(url, name, 'width=350,height=350,resizable=yes,scrollbars=yes')

}
function browserAlert()
{
alert('The current version of almost any recent browser for Windows or Mac OS X should be capable of playing the embedded sounds with the QuickTime plugin; in Mac OS X, version 10.4 is necessary if you use Safari, and Internet Explorer for OS X will not work. If you do not have the needed plugin already, the javacript will cause your browser to detect the lack and help you download it.')
}


/* This function plays the embedded sound if the m or f voice is selectedl if both is selected, then it passes the number along to next function. */
function playThis(x){
VOICE = document.form.voice.options[document.form.voice.selectedIndex].value;

if (VOICE !="r"){
eval("document.movie" + x + VOICE + ".Play()");
}
else {
random_play(x);
}
}

/* This function randomly generated an odd or even number to decide whether to start with m or f; after a pause, the movieNumber is sent  along to next function. */

function random_play(x) {
	movieNumber = x;
	var now=new Date();
	var number = now.getSeconds()%2;
	if (number=="0") {
	   VOICE="m";
	} else {
	   VOICE="f";
	  }

eval("document.movie" + x + VOICE + ".Play()");

setTimeout('playOther(movieNumber)', 2000);
}

/* This function switches m to f or vice versa and plays the other sound. */

function playOther(x){

if (VOICE=="f") {
	VOICE="m";
	} else {
	  VOICE="f";
	  }

eval("document.movie" + x + VOICE + ".Play()");
}

