/** forms.js		by Scott Honey

	These are specifically built for the Singing Syllbary project, and are designed to handle the data returned by selecting the various forms in the SS program.  These will be useless in other programs.

FUNCTIONS

	changeFemale(FORM)
		accepts a form and sets the default sex for the program.

	changeDefaulttone(FORM)
		accepts a form and sets the default tone for the program.

	selectGame(FORM)
		accepts a form and send the call to open the game that should be opened.
*/

/* changeFemale(FORM)
	accepts a form and sets the default sex for the program.*/
function changeFemale(form) {
  if (form.femaleChanger[0].selected)
    Defaultsex="female"
  if (form.femaleChanger[1].selected)
    Defaultsex="male"
}

/* changeDefaulttone(FORM)
	accepts a form and sets the default tone for the program.*/
function changeDefaulttone(form) {
  if (form.defaulttoneChanger[0].selected)
    Defaulttone=1;
  if (form.defaulttoneChanger[1].selected)
    Defaulttone=2;
  if (form.defaulttoneChanger[2].selected)
    Defaulttone=3;
  if (form.defaulttoneChanger[3].selected)
    Defaulttone=4;
  if (form.defaulttoneChanger[4].selected)
    Defaulttone=5;
}

/* selectGame(FORM)
	accepts a form and send the call to open the game that should be opened.*/
function selectGame(form) {
  if (form.gameSelecter[1].selected)
    playGame(1);
  if (form.gameSelecter[2].selected)
    playGame(2);
  if (form.gameSelecter[3].selected)
    playGame(3);
  if (form.gameSelecter[4].selected)
    playGame(4);
}



