// latest update 3/31/02
// boggle board javascript
// initialize variables

// declare variables
var AmtQuestions = 266;
//var AmtQuestions = 3;
var CurQuestion = 1;
var Title = "";
var Question = "";
var Answer = "";
var NoAltAnswer = "3ed5gtbvdfvgtyhQArFRdEyt";
var AltAnswer = NoAltAnswer;
var SI = "";
var Spec = "";
var NumRight = 0
var NumWrong = 0
// declare controls on the HTML form
var txtAmt = document.frmBoggle.txtAmtQuestions;
var txtCur = document.frmBoggle.txtCurQuestion;
var txtQuestion = document.frmBoggle.txtQuestion;
var txtTitle = document.frmBoggle.txtTitle;
var btnSubmit = document.frmBoggle.cmdSubmit;
var txtAnswer  = document.frmBoggle.txtAnswer;
var txtSI = document.frmBoggle.txtSI;
var txtSpecific = document.frmBoggle.txtSpecific;
var txtCorrect = document.frmBoggle.txtCorrect;
var txtIncorrect = document.frmBoggle.txtIncorrect;
var txtPercent = document.frmBoggle.txtPercent;

// *************************************************************************
// functions
// *************************************************************************
function postdata()
{
  txtTitle.value = Title;
  txtQuestion.value = Question;
  txtCur.value = CurQuestion;
  txtSI.value = SI;
  txtSpecific.value = Spec;
}

// **********************************************************************
function submitclick(evnt)
{
if ((Answer == txtAnswer.value) || (AltAnswer == txtAnswer.value)) {
	NumRight = NumRight + 1; }
	 else {
	  NumWrong = NumWrong + 1; }

// check for end of game
 	if (CurQuestion == AmtQuestions) { 
 	 EndOfGame(); }
 	  else  {
	   processsubmit(); }
}
// ***********************************************************************
function skipclick(evnt)
{
 	NumWrong = NumWrong + 3; 
// check for end of game first!	
	if (CurQuestion == AmtQuestions) {
 	 EndOfGame(); }
 	  else {
	processskip(); }
}
// ***********************************************************************
function postclick(evnt)
{
EndOfGame();

	
}
// **********************************************************************
function processsubmit()
{

    if ((Answer == txtAnswer.value) || (AltAnswer == txtAnswer.value)) {
	CurQuestion=CurQuestion + 1;
	AltAnswer=NoAltAnswer;
	changequestion(CurQuestion);
	postdata();
	txtAnswer.value = "";
	playSound(0);
	; }
	else {
	      playSound(1);	 }
	   	

	txtCorrect.value = NumRight;
	txtIncorrect.value = NumWrong;
	txtAnswer.focus();
 	txtPercent.value = (NumRight / (NumRight + NumWrong)) * 100;
}
// ***********************************************************************
function processskip()
{
	CurQuestion=CurQuestion + 1;
	AltAnswer=NoAltAnswer;
	playSound(2);
	changequestion(CurQuestion);
	postdata();
	txtAnswer.value = "";
	txtCorrect.value = NumRight;
	txtIncorrect.value = NumWrong;
	txtAnswer.focus();
 	txtPercent.value = (NumRight / (NumRight + NumWrong)) * 100;
}
// ***********************************************************************
// sound
var aySound = new Array();
// Below: source for sound files to be preloaded
aySound[0] = "correct.wav";
aySound[1] = "incorrect.wav";
aySound[2] = "skip.wav";
aySound[3] = "winner.wav";
aySound[4] = "loser.wav";

// DO NOT edit below this line
document.write('<BGSOUND ID="auIEContainer">');
IE = (navigator.appVersion.indexOf("MSIE")!=-1 && document.all)? 1:0;
NS = (navigator.appName=="Netscape" && navigator.plugins["LiveAudio"])? 1:0;
ver4 = IE||NS? 1:0;
onload=auPreload;

function auPreload() {
if (!ver4) return;
if (NS) auEmb = new Layer(0,window);
else {
Str = "<DIV ID='auEmb' STYLE='position:absolute;'></DIV>";
document.body.insertAdjacentHTML("BeforeEnd",Str);
}
var Str = '';
for (i=0;i<aySound.length;i++)
Str += "<EMBED SRC='"+aySound[i]+"' AUTOSTART='FALSE' HIDDEN='TRUE'>";
if (IE) auEmb.innerHTML = Str;
else {
auEmb.document.open();
auEmb.document.write(Str);
auEmb.document.close();
}
auCon = IE? document.all.auIEContainer:auEmb;
auCon.control = auCtrl;
}
function auCtrl(whSound,play) {
if (IE) this.src = play? aySound[whSound]:'';
else eval("this.document.embeds[whSound]." + (play? "play()":"stop()"));
}
function playSound(whSound) { if (window.auCon) auCon.control(whSound,true); }
function stopSound(whSound) { if (window.auCon) auCon.control(whSound,false); }
// ******************************************************************************

//all questions, special info, clues, answers, etc assigned here for each item
function changequestion()
{

switch (CurQuestion)
 {
	case 1:
	Title = "Triple Train Puzzle #1";
	Question = "Exactly at noon a non-stop train leaves Boston for New York City, traveling at 40 mph. At the same time, a second non-stop train leaves New York City for Boston, traveling 60 mph. How many miles apart are the trains one hour before they meet?";
	Answer = "100";
 	SI = "";
	Spec = "";
	break;
	
 	case 2:
 	Title = "Triple Train Puzzle #2";
 	Question = "Which of the trains is farther from Boston when they meet?";
 	Answer = "neither";
 	SI = "";
	Spec = "";
	AltAnswer = "testanswer"
	break;

  	case 3:
 	Title = "Triple Train Puzzle #3";
 	Question = "The engineers of the two trains are good friends and one of them   has a carrier pigeon whom he has trained to fly between the two trains. The pigeon starts out sitting on the front of the engine of the Boston train. When the trains   are exactly 100 miles apart, it flys towards the front of the New York train,  imediately turns around, flys to the Boston train, turns around again and flys back to the New York train, and so on until the trains meet. The carrier pigeon's speed is 70 mph. How many miles has it covered when the trains meet?";
	Answer = "70";
	SI = "";
	Spec = "";
	break;

	case 4:
 	Title = "Prefix Quiz 1";
 	Question = "ball \nbean \nbird \ncup \nfish \nfly \nmilk \nnut \nscotch";
 	Answer = "butter";
 	SI = "To the right are nine words. A word of two syllables, used every day on many breakfast tables, may be prefixed to each of the nine words to make new words. This word has six letters. What is the word?";
	Spec = "";
	break;

	case 5:
 	Title = "Word Chain";
 	Question = "1  To prevent by fear \n2  One of the Muses \n3  Often on the beakfast table \n4  Steps for passing over a fence \n5  Lawful \n6  Solitary \n7  A musical Roman emperor \n8  A bird \n9  To bury\n10 To eat into";
 	Answer = "deter";
 	SI = "To solve this puzzle, take the last two letters of the first word described to make the first two letters of the second word, the last two letters of that word to make the first two letters of the third word, and so on. The last two letters of the tenth word will make the first two letters of the first word and bring us back where we started. Ready?";
	Spec = "1  To prevent by fear";
	break;

	case 6:
	Answer = "erato";
	Spec = "2  One of the Muses";
	break;

	case 7:
	Answer = "toast";
	Spec = "3 Often on the breakfast table";
	break;

	case 8:
	Answer = "stile";
	Spec = "4  Steps for passing over a fence";
	break;

	case 9:
	Answer = "legal";
	Spec = "5  Lawful";
	break;

	case 10:
	Answer = "alone";
	Spec = "6  Solitary";
	break;

	case 11:
	Answer = "nero";
	Spec = "7  A musical Roman emperor";
	break;

	case 12:
	Answer = "robin";
	Spec = "8  A bird";
	break;

	case 13:
	Answer = "inter";
	Spec = "9  To bury";
	break;

	case 14:
	Answer = "erode";
	Spec = "10 To eat into";
	break;
	default:
	break;

	case 15:
 	Title = "Beastly words";
 	Question = "Some form of animal life be it four legged, two legged, or six, lurks in each of the words listed. Example: pennANT; How many can you find? Look in the 'specific word' box for each clue.";
 	SI = "";
	Spec = "foxglove";
	Answer = "fox";
	break;

	case 16:
 	Spec = "education";
	Answer = "cat";
	break;

	case 17:
 	Spec = "brewery";
	Answer = "ewe";
	break;

	case 18:
 	Spec = "kidnap";
	Answer = "kid";
	break;

	case 19:
 	Spec = "pyramid";
	Answer = "ram";
	break;

	case 20:
 	Spec = "paradox";
	Answer = "ox";
	break;

	case 21:
 	Spec = "precursor";
	Answer = "cur";
	break;

	case 22:
 	Spec = "adamant";
	Answer = "ant";
	break;

	case 23:
 	Spec = "scowling";
	Answer = "cow";
	break;

	case 24:
 	Spec = "thence";
	Answer = "hen";
	break;

	case 25:
 	Spec = "albatross";
	Answer = "bat";
	break;

	case 26:
 	Spec = "spigot";
	Answer = "pig";
	break;

	case 27:
 	Spec = "cupboard";
	Answer = "boar";
	break;

	case 28:
 	Spec = "wrongdoer";
	Answer = "doe";
	break;

	case 29:
 	Spec = "aperture";
	Answer = "ape";
	break;

	case 30:
 	Spec = "unfeeling";
	Answer = "eel";
	break;

	case 31:
 	Spec = "decoding";
	Answer = "cod";
	break;

	case 32:
 	Spec = "berate";
	Answer = "rat";
	break;

	case 33:
 	Spec = "bowler";
	Answer = "owl";
	break;

	case 34:
 	Spec = "doggerel";
	Answer = "dog";
	break;

	case 35:
 	Title = "Split Affinities";
 	Question = "Each of these words are but half the story. Can you supply the missing name or object that will complete a famous pair? Example: ALPHA and OMEGA. How many can you find? Look in the 'specific word' box for each clue.";
 	SI = "";
	Spec = "ball and";
	Answer = "chain";
	break;

	case 36:
 	Spec = "black and";
	Answer = "white";
	break;
	
	case 37:
 	Spec = "check and";
	Answer = "doublecheck";
	break;

	case 38:
 	Spec = "cash and";
	Answer = "carry";
	break;

	case 39:
 	Spec = "cat and";
	Answer = "dog";
	break;

	case 40:
 	Spec = "dr. jekyl and";
	Answer = "mr. hyde";
	break;

	case 41:
 	Spec = "damon and";
	Answer = "pythias";
	break;

	case 42:
 	Spec = "david and";
	Answer = "goliath";
	break;

	case 43:
 	Spec = "death and";
	Answer = "taxes";
	break;

	case 44:
 	Spec = "east and";
	Answer = "west";
	break;

	case 45:
 	Spec = "fire and";
	Answer = "water";
	break;

	case 46:
 	Spec = "day and";
	Answer = "night";
	break;

	case 47:
 	Spec = "cheese and";
	Answer = "crackers";
	break;

	case 48:
 	Spec = "pins and";
	Answer = "needles";
	break;

	case 49:
 	Spec = "moonlight and";
	Answer = "roses";
	break;

	case 50:
 	Spec = "nuts and";
	Answer = "bolts";
	break;

	case 51:
 	Spec = "heaven and";
	Answer = "earth";
	break;

	case 52:
 	Spec = "stars and";
	Answer = "stripes";
	break;

	case 53:
 	Spec = "give and";
	Answer = "take";
	break;

	case 54:
 	Spec = "thunder and";
	Answer = "lightning";
	break;

	case 55:
 	Title = "Lock and Key puzzle";
 	Question = "What lock is a chest?";
 	SI = "The following clues should make this an open and shut case. Look in the 'question' box for each part.";
	Spec = "";
	Answer = "locker";
	break;

	case 56:
 	Question = "What key is a country?";
	Answer = "turkey";
	break;

	case 57:
 	Question = "What lock is a dread disease?";
	Answer = "lockjaw";
	break;

	case 58:
 	Question = "What key is a beast of burden?";
	Answer = "donkey";
	break;

	case 59:
 	Question = "What lock is a refusal of employment?";
	Answer = "lockout";
	break;

	case 60:
 	Question = "What key is a primate?";
	Answer = "monkey";
	break;

	case 61:
 	Question = "What lock is a jail?";
	Answer = "lockup";
	break;

	case 62:
 	Question = "What key is a warder?";
	Answer = "turnkey";
	break;

	case 63:
 	Question = "What lock is a little case for a memento?";
	Answer = "locket";
	break;

	case 64:
 	Question = "What key is pert?";
	Answer = "perky";
	break;

	case 65:
 	Question = "What lock is a useful workman?";
	Answer = "locksmith";
	break;

	case 66:
 	Question = "What key is spasmodic?";
	Answer = "jerky";
	break;

	case 67:
 	Question = "What lock is a toll paid for passing through an enclosed body of water?";
	Answer = "lockage";
	break;

	case 68:
 	Question = "What key is hazardous?";
	Answer = "risky";
	break;

	case 69:
 	Question = "What lock is a poem by Tennyson?";
	Answer = "locksley hall";
	break;

	case 70:
 	Question = "What key is rather eccentric?";
	Answer = "kinky";
	break;

	case 71:
 	Title = "Can you guess these?";
 	Question = "A political can";
 	SI = "The following clues all lead to words beginning with CAN. How many CAN you guess? Look in the 'question' box for each part.";
	Spec = "";
	Answer = "candidate";
	break;

	case 72:
 	Question = "If you have a power failure, this can will shed light on this subject";
	Answer = "candle";
	break;

	case 73:
 	Question = "A fine feathered friend";
	Answer = "canary";
	break;

	case 74:
 	Question = "A non-vegetarian can";
	Answer = "cannibal";
	break;

	case 75:
 	Question = "A clever can";
	Answer = "canny";
	break;

	case 76:
 	Question = "A can in Panama";
	Answer = "canal";
	break;

	case 77:
 	Question = "A can for war";
	Answer = "cannon";
	break;

	case 78:
 	Question = "An artist's can";
	Answer = "canvas";
	break;

	case 79:
 	Question = "A musical can";
	Answer = "canata";
	break;

	case 80:
 	Question = "A sweet can";
	Answer = "candy";
	break;

	case 81:
 	Question = "A frank can";
	Answer = "candid";
	break;

	case 82:
 	Question = "This can is a deep one";
	Answer = "canyon";
	break;

	case 83:
 	Question = "An adolescent can";
	Answer = "canteen";
	break;

	case 84:
 	Question = "A can gone to pot";
	Answer = "canabis";
	break;

	case 85:
 	Question = "A can that covers you";
	Answer = "canopy";
	break;

	case 86:
 	Question = "A can in the zodiac";
	Answer = "cancer";
	break;

	case 87:
 	Question = "A friendly neighbor nation";
	Answer = "canada";
	break;

	case 88:
 	Question = "A poetic can";
	Answer = "canto";
	break;

	case 89:
 	Question = "An ancient English cathedral town";
	Answer = "canterbury";
	break;

	case 90:
 	Question = "A Chinese can";
	Answer = "canton";
	break;

	case 91:
 	Question = "A sanctimonious can";
	Answer = "cant";
	break;

	case 92:
 	Question = "A fruity can";
	Answer = "cantelope";
	break;

	case 93:
 	Question = "Well educated can with English accent";
	Answer = "cantabrigian";
	break;

	case 94:
 	Question = "A simply ducky can";
	Answer = "canvasback";
	break;

	case 95:
 	Title = "A riddle";
 	Question = "I have my share in the cares of life, and yet I'm always in luck: without me physics, chemistry, mathamatics, and in fact, all the exact sciences would be a meaningless jumble. While I am an absolute necessity to princes, the commoner too could not cope without me. I have my share of all practical accomplishments, yet in cooking I have made a mere beginning. In sweeping, dusting, and washing I am absolutely nowhere. Now if you cannot guess what I am look carefully at your dictionary, though you could find me first in any current cyclopedia. Note: A little care can conquer any concern this puzzle may cause you-especially if you are Canadian. What am I?";
 	SI = "";
	Spec = "";
	Answer = "c";
	AltAnswer = "the letter c";
	break;

	case 96:
 	Title = "Translated proverbs";
 	Question = "Never subject a presented quadruped of the Equus caballus family to detailed inspection of its oral cavity (---- ---- - ---- ----- -- --- -----)";
 	SI = "These translated proverbs - or should we say paraphrased pithy popular sayings embodying some familiar truth? - should convince us to never say in ten words what you can say in one. How many can you uncover under these fancy verbal wrappings? Type in the proverb exactly as said, with NO PUNCTUATION, and NO punctuation, including apostrophes. Use the HANGMAN-like dashes (--- --- ----) as clues, which will appear after each phrase in the question box";
	Spec = "";
	Answer = "dont look a gift horse in the mouth";
	break;

	case 97:
 	Question = "Garner the centimes and the larger monetary units will supervise their own welfare (---- ---- -- --- ------- --- --- ------- ---- ---- ---- -- ----------)";
 	Answer = "take care of the pennies and the dollars will take care of themselves";
	break;
	
	case 98:
 	Question = "A culinary utensil under constant visual supervision never reaches a temperature of 212 degrees F (- ------- --- ----- -----)";
 	Answer = "a watched pot never boils";
	break;

	case 99:
 	Question = "Plumaged bipeds of the same species have a pattern of congregating in exclusive assemblies (----- -- - ------- ----- --------)";
 	Answer = "birds of a feather flock together";
	break;
	
	case 100:
 	Question = "A simpleton and his collateral are soon estranged (- ---- --- --- ----- --- ---- ------)";
 	Answer = "a fool and his money are soon parted";
	break;

	case 101:
 	Question = "A canine who gives vent to his sentiments by a series of explosive vocal efforts does not find use for his bicuspids (- ------- --- ----- -----)";
 	Answer = "a barking dog never bites";
	break;
	
	case 102:
 	Question = "If it can be done in 24 hours never do it in 48 (----- --- --- ----- -------- ---- --- -- ---- -----)";
 	Answer = "never put off until tomorrow what can be done today";
	break;

	case 103:
 	Question = "One feathered biped in the terminal prehensile part of oneos arm is equal to twice that many in shrubby vegetation (- ---- -- --- ---- -- ----- --- -- --- ----)";
 	Answer = "a bird in the hand is worth two in the bush";
	break;

	case 104:
 	Question = "Satorial adornment is prone to demonstrate the character of the wearer (------- ---- --- ---)";
 	Answer = "clothes make the man";
	break;
	
	case 105:
 	Question = "A single application of a one-eyed steel instrument at the appropriate moment can be tantamount to the saving of three times three (- ------ -- ---- ----- ----)";
 	Answer = "a stitch in time saves nine";
	break;

	case 106:
 	Question = "Unexpected episodes frequently occur between the raising of a drinking vessel to the two fleshy parts forming the margins of the mouth and the ultimate imbibing of its contents (------ ---- - ---- ----- --- --- --- --- ---)";
 	Answer = "theres many a slip twixt the cup and the lip";
	break;
	
	case 107:
 	Question = "Liquid atmospheric precipitation is seldom moderate but invariably excessive (---- -- ----- -- -----)";
 	Answer = "when it rains it pours";
	break;

	case 108:
 	Question = "Accelerated execution produces faulty results (----- ----- -----)";
 	Answer = "haste makes waste";
	break;

	case 109:
 	Question = "A superfluity of people engaged in the preparation of food can do profound damage to the liquid from boiled meat (--- ---- ----- ----- --- ----)";
 	Answer = "too many cooks spoil the stew";
	break;
	
	case 110:
 	Title = "Old sayings";
 	Question = "We are all familiar with most of these old sayings. Can you complete them? Look in the special box for the phrase to complete.";
 	SI = "";
	Spec = "As poor as a ?";
	Answer = "church mouse";
	AltAnswer = "churchmouse";
	break;

	case 111:
 	Spec = "As thin as a ?";
	Answer = "rail";
	break;

	case 112:
 	Spec = "As fat as a ?";
	Answer = "pig";
	break;

	case 113:
 	Spec = "As rough as a ?";
	Answer = "gale";
	break;

	case 114:
 	Spec = "As brave as a ?";
	Answer = "lion";
	break;

	case 115:
 	Spec = "As sly as a ?";
	Answer = "fox";
	break;

	case 116:
 	Spec = "As proud as a ?";
	Answer = "peacock";
	break;

	case 117:
 	Spec = "As strong as an ?";
	Answer = "ox";
	break;

	case 118:
 	Spec = "As fair as a ?";
	Answer = "lily";
	break;

	case 119:
 	Spec = "As empty as ?";
	Answer = "air";
	break;

	case 120:
 	Spec = "As rich as old ?";
	Answer = "croesus";
	break;

	case 121:
 	Spec = "As cross a a ?";
	Answer = "bear";
	break;

	case 122:
 	Spec = "As busy as a ?";
	Answer = "bee";
	break;

	case 123:
 	Spec = "As innocent as a ?";
	Answer = "baby";
	AltAnswer = "babe";
	break;

	case 124:
 	Spec = "As cunning as a ?";
	Answer = "fox";
	break;

	case 125:
 	Spec = "As busy as a ?";
	Answer = "beaver";
	break;

	case 126:
 	Spec = "As pure as an ?";
	Answer = "angel";
	break;

	case 127:
 	Spec = "As neat as a ?";
	Answer = "pin";
	break;

	case 128:
 	Spec = "As sharp as a ?";
	Answer = "tack";
	AltAnswer = "razor";
	break;

	case 129:
 	Spec = "As ugly as ?";
	Answer = "sin";
	break;

	case 130:
 	Spec = "As dead as a ?";
	Answer = "doornail";
	AltAnswer = "door nail";
	break;

	case 131:
 	Spec = "As white as a ?";
	Answer = "sheet";
	break;

	case 132:
 	Spec = "As flat as a ?";
	Answer = "pancake";
	break;

	case 133:
 	Title = "Prefix Quiz 2";
 	Question = "EAGLE \nEAR \nLADDER \nLAME \nLIGHT \nLOCK \nLIZARD \nROOK \nRUIN \nOX \nOAR \nRING";
 	SI = "Twelve words appear in the question box. The same letter of the alphabet can be prefixed to each word thus forming new words. What is the letter that should be added?";
	Spec = "";
	Answer = "b";
	AltAnswer = "the letter b";
	break;

	case 134:
 	Title = "Mathamatical Mike";
 	Question = "How many years old is Mike?";
 	SI = "Mathamatical Mike, boy wonder, was asked his and his sister's ages. He gave what seemed to him a perfectly straightforward, simple answer. He said: 'Three years ago, I was seven times as old as my sister. Two years ago, I was four times as old as she was. Last year I was three times as old. This year I am two and one-half times as old as she is.'";
	Spec = "";
	Answer = "10";
	AltAnswer = "ten";
	break;

	case 135:
	Question = "How many years old is Mike's sister?";
 	Answer = "4";
	AltAnswer = "four";
	break;

	case 136:
 	Title = "At What Intervals?";
 	Question = "Anderson, working in his garden, looked up and saw his neighbor Brown chopping down a tree 1,100 yards away. Brown struck the tree once every second. How many seconds elapsed btween two strokes of Brown's axe, as the sound reached Anderson? We all know, of course, that sound travels at the rate of 1,100 feet per second.";
 	SI = "";
	Spec = "";
	Answer = "1";
	AltAnswer = "one";
	break;

	case 137:
 	Title = "Math Teasers";
 	Question = "Anthea has a bracelet chain consisting of twelve links. If it takes her one minute to detach one link, how many minutes will it take her to separate all the links?";
 	SI = "";
	Spec = "";
	Answer = "11";
	AltAnswer = "eleven";
	break;
	
	case 138:
 	Question = "Which weighs more, a pound of gold, or a pound of feathers?";
 	Answer = "feathers";
	AltAnswer = "a pound of feathers";
	break;
	
	case 139:
 	Question = "A man found a wallet containing 2 dollars. he then had five times as much as he would have had if he had lost 2 dollars. How much money did he have? Use the format  X.XX";
 	Answer = "3.00";
	break;
	
	case 140:
 	Question = "How many square feet of dirt is there in a hole 18 inches square and one foot deep? Use the format X.XX";
 	Answer = "0.00";
	break;
	
	case 141:
 	Title = "Pete, Andy, and The Lampposts";
 	SI = "Pete and Andy were employed by the local town authorities to re-paint the lampposts on Main St.  Pete, an early riser, arrived first on the job and had already painted three on the south side when Andy turned up and pointed out that Pete was supposed to do the north side. So Pete started all over on the north side and Andy continued on the south side. When Andy finished his side he went across the street and painted six posts for Pete. There was an equal number of lampposts on each side of the street.";
 	Question = "Which man painted more lampposts?";
	Spec = "";
	Answer = "andy";
	break;
	
	case 142:
 	Question = "How many more lampposts did he paint?";
 	Answer = "6";
 	AltAnswer = "six";
	break;
	
	case 143:
 	Title = "Hunter and the Bear";
 	SI = "";
 	Question = "A hunter leaves his camp, walking five miles due south. There he encounters a bear and shoots it. He then walks five miles due west and finally five miles north and is back at his camp. What color was the bear?";
	Spec = "";
	Answer = "white";
	break;
	
	case 144:
 	Title = "A Pod of Peas";
 	SI = "";
 	Question = "A hunter leaves his camp, walking five miles due south. There he encounters a bear and shoots it. He then walks five miles due west and finally five miles north and is back at his camp. What color was the bear?";
	Spec = "";
	Answer = "white";
	break;
	
	case 145:
 	Title = "A Pod of Peas";
 	SI = "Solve these puzzles by typing in the word that solves the second part of the puzzle. \n The solution is found by finding a word that has the meaning of the first part of the puzzle, which will always begin with the letter P, removing the first letter P to make a word that has the meaning of the second part of the puzzle. \n Example: Take a pea from 'to purify' and leave 'to insist'. The answer would be: urge ('to purify' would be to purge, take the letter p off to make the answer 'urge' which is the meaning of 'to insist'. \n Look in the question box bor each puzzle. Ready?";
 	Question = "Take a pea from 'position' and leave a 'filmy fabric'";
	Spec = "";
	Answer = "lace";
	break;
	
	case 146:
	Question = "Take a pea from 'to breathe quickly' and leave 'an insect'";
	Answer = "ant";
	break;
	
	case 147:
	Question = "Take a pea from 'to breathe quickly' and leave 'an insect'";
	Answer = "ant";
	break;
	
	case 148:
	Question = "Take a pea from 'to squeeze', and leave 'a measure of length'";
	Answer = "inch";
	break;
	
	case 149:
	Question = "Take a pea from 'to frolic' and leave 'a song or lyric'";
	Answer = "lay";
	break;
	
	case 150:
	Question = "Take a pea from 'an allegory' and leave 'fit for plowing'";
	Answer = "arable";
	break;
	
	case 151:
	Question = "Take a pea from 'certain tropical trees' and leave 'charity'";
	Answer = "alms";
	break;
	
	case 152:
	Question = "Take a pea from 'to argue in support of a claim', and leave 'to conduct'";
	Answer = "lead";
	break;
	
	case 153:
	Question = "Take a pea from 'to spring upon suddenly', and leave 'one sixteenth of a pound'";
	Answer = "ounce";
	break;
	
	case 154:
	Question = "Take a pea from 'caper', and leave 'social or military station'";
	Answer = "rank";
	break;
	
	case 155:
	Question = "Take a pea from 'courage', and leave 'good fortune'";
	Answer = "luck";
	break;
	
	case 156:
 	Title = "The Busy Little Bookworm";
 	SI = "";
 	Question = " When Prof. Van Winkle went to his shelves to get three volumes of a very learned work he had not looked at for 20 years he was dismayed to find that a busy little bookworm had bored a tunnel right through the books, from the first page of Vol. I to the last page of Vol. III. \n The pages of each book were 3 inches thick and each cover was 1/8 of an inch thick. \n With this information can you figure out how long in inches a tunnel the bookworm had bored? \n Use the format X X/X";
	Spec = "";
	Answer = "3 1/2";
	break;
	
	case 157:
 	Title = "Apple Division";
 	SI = "Look in the 'special' box for each individual question.?";
 	Question = " Eight teenagers divided 32 apples among themselves as follows: Ann got one, Beth took two, Kate three, and Dot four. Ed Smith took as many as his sister,Fred Brown twice as many as his sister, George Black three times as many as his, and Jack Robinson four times as many as his.";
	Spec = "What is Ann's last name?.";
	Answer = "black";
	break;
	
	case 158:
    Spec = "What is Beth's last name?";
 	Answer = "robinson";
	break;
	
	case 159:
    Spec = "What is Kate's last name?";
 	Answer = "smith";
	break;
	
	case 160:
    Spec = "What is Dot's last name?";
 	Answer = "brown";
	break;
	
	case 161:
 	Title = "A Cat and Mouse tale";
 	SI = "";
 	Question = " Mahoney's Marvelous Mousers are very well trained. It takes five of these superior cats five minutes to catch five mice. How many cats would Mahoney have to train to catch 100 mice in 100 minutes?";
	Spec = "";
	Answer = "5";
	AltAnswer = "five";
	break;
	
	case 162:
 	Title = "Smokey Baer";
 	SI = "";
 	Question = " Smokey Baer, born under the sign of Cancer, was asked how much he smoked a day. He answered: 'I smoke half as many pipes in the morning as I do cigars and cigarettes combined. In the afternoon, five times as many pipes and cigarettes as cigars. While in the evening, the number of cigars and cigarettes I smoke amounts to three times the number of my pipes. Yet during the day, I smoke the same number of each.' \n How many pipes did he smoke a day?";
	Spec = "";
	Answer = "12";
	AltAnswer = "twelve";
	break;

	case 163:
 	Title = "What Day is it?";
 	SI = "";
 	Question = " Have you ever lost track of time and even forgotten what day of the week it was? /n It happened to Mary Tegrof recently so she turned to her companion and asked him. She didn't find his answer immediately useful but by the time she figured it out, it was the next day and she had to get up to go to work, so she knew what day of the week that was anyway. \n Can you figure out the answer she received? \n Her companion told her: When the day after tomorrow is yesterday, today will be as far from Sunday as today was from Sunday when the day before yesterday was tomorrow. \n What day was it?";
	Spec = "";
	Answer = "sunday";
	break;
	
	case 164:
	Title = "Three Men in a Boat";
 	SI = "";
 	Question = " Three friends, Anderson, Brown, and Cone were on a fishing trip together. One day they were out in a boat when a rifle was fired on shore in their direction. Anderson heard the roport of the gun, Brown saw the smoke, and Cone saw the bullet strike the water.";
	Spec = "Who knew of the shot first?";
	Answer = "brown";
	break;
		
	case 165:
 	Spec = " Who knew of it last?";
	Answer = "cone";
	break;
	
	case 166:
	Title = "Curious Zoological Changes";
 	SI = " Example: Give a new head to a small dog, and make an insect. (Change the first letter from one to make the other)  ANSWER: PUG BUG  /n Be sure to leave one space between each part of the answer. \n Each one appears in the question box.";
 	Question = " Give a new head to a male bovine animal, and make an aquatic bird";
	Spec = "";
	Answer = "bull gull";
	break;
	
	case 167:
	Question = " Give a new head to a male deer, and make a wild or domestic fowl";
	Answer = "buck duck";
	break;
	
	case 168:
	Question = " Give a new head to one kind of deer, and make another kind of deer";
	Answer = "roe doe";
	AltAnswer = "doe roe";
	break;
	
	case 169:
	Question = " Give a new head to an antlered animal once associated with a political party, and make a fowl associated with holidays";
	Answer = "moose goose";
	break;
	
	case 170:
	Question = " Give a new head to a rodent, and make its worst enemy";
	Answer = "rat cat";
	break;
	
	case 171:
	Question = " Give a new head to a popular zoo animal, and make a beast of burden";
	Answer = "monkey donkey";
	break;
	
	case 172:
	Question = " Give a new head to a water animal, and make a water fowl";
	Answer = "seal teal";
	break;
	
	case 173:
	Question = " Give a new head to man's best friend, and make a farm animal";
	Answer = "dog hog";
	break;
	
	case 174:
	Question = " Give a new head to a rodent, and make a parasitic insect";
	Answer = "mouse louse";
	break;
	
	case 175:
	Question = " Give a new head to a wild or domestic swimming bird, and make bird belonging to the rail family";
	Answer = "crake drake";
	break;
	
	case 176:
	Title = "Weigh The Pig";
 	SI = "";
 	Question = " A farmer when asked the weight of his fattest pig, replied: 'One hundred pounds and half his weight.' How many pounds did the pig weigh?";
	Spec = "";
	Answer = "200";
	AltAnswer = "two hundred";
	break;
	
	case 177:
	Title = "Weights Puzzle";
 	SI = "";
 	Question = " Mr. Bachet, manager of a health food store, finds four weights sufficient for the job of weighing his popular mung beans, whole wheat noodles, and other natural foods. It is his policy not to sell in amounts under one pound or over forty, and to sell full pounds only, apparently he finds fractions unhealthy and unnatural. \n Any of the weights may be placed in either of the two scale pans. \n How many pounds is each weight from lightest to heaviest?  Leave a space between each number with no punctuation.";
	Spec = "";
	Answer = "1 3 9 27";
	break;
	
	case 178:
	Title = "An Impish Word Quiz";
 	SI = "All the following definitions lead to words that have an IMP in them. How many can you IMPlement?";
 	Question = " An obstructive imp";
	Spec = "";
	Answer = "impediment";
	break;
	
	case 179:
	Question = "Inaccessible imp";
	Answer = "impenetrable";
	break;
	
	case 180:
	Question = "You can hardly see this imp";
	Answer = "imperceptible";
	break;
	
	case 181:
	Question = "Everyone be, but you and me!";
	Answer = "imperfect";
	break;
	
	case 182:
	Question = "The poor relation";
	Answer = "imprecunious";
	break;
	
	case 183:
	Question = "Unrepentant";
	Answer = "impenitent";
	break;
	
	case 184:
	Question = "Majestic";
	Answer = "imperial";
	break;
	
	case 185:
	Question = "An imp that does not provide for the future";
	Answer = "improvident";
	break;
	
	case 186:
	Question = "The Buster Keaton of imps";
	Answer = "impassive";
	break;
	
	case 187:
	Question = "This imp likes to pretend to be someone else";
	Answer = "impersonator";
	break;
	
	case 188:
	Question = "This one's always in a hurry";
	Answer = "impatient";
	break;
	
	case 189:
	Question = "Well, that's the limit!";
	Answer = "impasse";
	break;
	
	case 190:
	Question = "An ortant imp";
	Answer = "improtant";
	break;
	
	case 191:
	Question = "Objective";
	Answer = "impartial";
	break;
	
	case 192:
	Question = "Nothing upsets this imp";
	Answer = "imperturbable";
	break;
	
	case 193:
	Question = "This imp really isn't impossible";
	Answer = "imperishable";
	break;
	
	case 194:
	Question = "This one isn't very likely either";
	Answer = "impermanent";
	break;
	
	case 195:
	Question = "This one puts his seal on things";
	Answer = "imprimatur";
	break;
	
	case 196:
	Question = "Impertinent";
	Answer = "imprudent";
	break;
	
	case 197:
	Question = "A rude little imp";
	Answer = "impolite";
	break;
	
	case 198:
	Question = "Rather faultless, this imp";
	Answer = "impeccable";
	break;
	
	case 199:
	Question = "At least this one hopes to do better";
	Answer = "improve";
	break;
	
	case 200:
	Question = "A theatrical imp";
	Answer = "impresario";
	break;
	
	case 201:
	Question = "This imp just isn't possible";
	Answer = "impossible";
	break;
	
	case 202:
	Question = "And this one isn't probable";
	Answer = "improbable";
	break;
	
	case 203:
	Question = "This imp is not for drinking";
	Answer = "impotable";
	break;
	
	case 204:
	Question = "This imp brings in things from other countries";
	Answer = "importer";
	break;
	
	case 205:
	Question = "A rather helpless imp";
	Answer = "impotent";
	break;
	
	case 206:
	Question = "Don't trust this one";
	Answer = "imposter";
	break;
	
	case 207:
	Title = "Camels Puzzle";
 	SI = "There was once a Bedouin who had three sons. When he died he left he left his property, consisting of 17 camels to his sons, the oldest to have one half of them, the second son to have one third, and the youngest one ninth. As 17 was a number not divisible by two, three, or nine, the camels could not be divided and the sons were in a delemma. \n Finally, they remembered a neighboring shiek, known for his great wisdom, and called him for consultation. \n When the camels were divided, everyone agreed that they had the correct amount. \n You figure out the shiek's solution and answer:";
 	Question = "How many camels did the oldest son get?";
	Spec = "";
	Answer = "9";
	AltAnswer = "nine";
	break;
	
	case 208:
	Question = "How many camels did the second son get?";
	Answer = "6";
	AltAnswer = "six";
	break;
	
	case 209:
	Question = "How many camels did the youngest son get?";
	Answer = "2";
	AltAnswer = "two";
	break;
	
	case 210:
	Title = "The Missing Syllable";
 	SI = "Here are four words. The same syllable (a common 3 letter word) may be put in front of each of the four words to make four new words. The four words are:";
 	Question = " money \n wheel \n cushion \n feather \n What is this three letter syllable?";
	Spec = "";
	Answer = "pin";
	break;
	
	case 211:
	Title = "Lucky Signs";
 	SI = "The owner of a successful business had a simple formula for success: concentrate on one idea.\n For instance, he made a fortune by just using the word NAILS over his storefront. Each of the former tenants of the shop also retired wealthy by pushing just one specialty. The original dealer had built the store and put up a lucky horse-shoe sign with one word:PANTS. Next came a pub, and that owner advertised PINTS./n Can you figure out the different changes in the sign it took to go from PANTS and PINTS to NAILS? Change one letter at a time, each time making a new word. The names of the business are given in the special box. You have to guess the signs they put up.";
 	Question = "Here is the listing:/nTailor: pants\nPub:    pints\nFlorist?\nPlumber?\nFabrics?\nCarpenter?\nDruggist?\nUndertaker?\nTinware?\nHardware?";
	Spec = "Florist:";
	Answer = "pinks";
	break;
	
	case 212:
	Spec = "Plumber:";
	Answer = "sinks";
	break;
	
	case 213:
	Spec = "Fabrics:";
	Answer = "silks";
	break
	
	case 214:
	Spec = "Carpenter:";
	Answer = "sills";
	break;
	
	case 215:
	Spec = "Druggist:";
	Answer = "pills";
	break
	
	case 216:
	Spec = "Undertaker:";
	Answer = "palls";
	break;
	
	case 217:
	Spec = "Tinware:";
	Answer = "pails";
	break
	
	case 218:
	Spec = "Hardware";
	Answer = "nails";
	break
	
	case 219:
	Title = "How old is Sam?";
 	SI = "";
 	Question = "'I spent one sixth of my years in the old country as a boy,' Sam McLoyd said to his friend with he was talking over old times, 'and then one third in politics, until Jimmy was born. I then went into the computer business. Jimmy enrolled in a college 18 years ago, when he was but one fourth my present age.' How many years old is Sam McLoyd?";
	Spec = "";
	Answer = "72";
	break;
	
	case 220:
	Title = "Absent V-w-ls";
 	SI = "The following definitions (appearing in the question box) are clues to words that share one peculiarity: none of them has any of the vowels A E I O U. Can you guess them?";
 	Question = "Mythological river said to be crossed by the dead";
	Spec = "";
	Answer = "styx";
	break;
	
	case 221:
	Question = "To shed tears";
	Answer = "cry";
	break;
	
	case 222:
	Question = "Vault under a church";
	Answer = "crypt";
	break;
	
	case 223:
	Question = "Crafty";
	Answer = "sly";
	break;
	
	case 224:
	Question = "Member of a vagabond race";
	Answer = "gypsy";
	break;
	
	case 225:
	Question = "To soar through the air";
	Answer = "fly";
	break;
	
	case 226:
	Question = "An appointed meeting place";
	Answer = "tryst";
	break;
	
	case 227:
	Question = "To cook in oil";
	Answer = "fry";
	break;
	
	case 228:
	Question = "Fable of legend";
	Answer = "myth";
	break;
	
    case 229:
	Question = "To obtain secret information";
	Answer = "spy";
	break;
	
	case 230:
	Question = "To attempt";
	Answer = "try";
	break;
	
	case 231:
	Question = "Enclose for swine";
	Answer = "sty";
	break;
	
	case 232:
	Question = "Fierce feline animal";
	Answer = "lynx";
	break;
	
	case 233:
	Question = "Dwarf";
	Answer = "pygmy";
	break;
	
	case 234:
	Question = "Song of praise";
	Answer = "hymn";
	break;
	
	case 235:
	Question = "To apply oneself";
	Answer = "ply";
	break;
	
	case 236:
	Question = "An aromatic substance with Biblical associations";
	Answer = "myrrh";
	break;
	
	case 237:
	Question = "To try to raise or move";
	Answer = "pry";
	break;
	
	case 238:
	Question = "Nimble";
	Answer = "spry";
	break;
	
	case 239:
	Question = "Picture of hieroglyph";
	Answer = "glyph";
	break;
	
	case 240:
	Question = "Arid";
	Answer = "dry";
	break;
	
	case 241:
	Question = "Forest goddess";
	Answer = "nymph";
	break;
	
	case 242:
	Question = "Beautiful slender young maiden";
	Answer = "slyph";
	break;
	
	case 243:
	Title = "Age Puzzles";
 	SI = "";
 	Question = "When my mother was 31, I was 8. Now she is twice as old as I am. How many years old am I?";
	Spec = "";
	Answer = "23";
	break;
	
	case 244:
	Question = "One day some boys asked Ed Smith how old his sister Kate and her pet dog were. Ed replied: 'Two years ago Kate was just one fourth my age and the dog was just one half as old as she was and one eighth as old as I was. Three years ago Kate was one fifth as old as I, the dog one third as old as she, and one fifteenth as old as I.'\n Look in the special box for each question part.";
	Spec = "How many years old is Ed?";
	Answer = "18";
	break;
	
	case 245:
	Spec = "How many years old is Kate?";
	Answer = "6";
	break;
	
	case 246:
	Spec = "How many years old is the dog?";
	Answer = "4";
	break;
	
	case 247:
	Title = "Matchmates: Nouns and Verbs";
 	SI = "";
 	Question = "Find the noun which corresponds to each of the following verbs. \nExample: ALLEGE - ALLEGATION \n Look in the special box for each part.";
	Spec = "Deprive";
	Answer = "deprivation";
	break;
	
	case 248:
	Spec = "Repeat";
	Answer = "repetition";
	break;
	
	case 249:
	Spec = "Suffice";
	Answer = "sufficiency";
	break;
	
	case 250:
	Spec = "Reveal";
	Answer = "revelation";
	break;
	
	case 251:
	Spec = "Testify";
	Answer = "testimony";
	break;
	
	case 252:
	Spec = "Endure";
	Answer = "endurance";
	break;
	
	case 253:
	Spec = "Demolish";
	Answer = "demolition";
	break;
	
	case 254:
	Spec = "Exist";
	Answer = "existence";
	break;
	
	case 255:
	Spec = "Live";
	Answer = "life";
	break;
	
	case 256:
	Spec = "Respond";
	Answer = "response";
	break;
	
	case 257:
	Spec = "Maintain";
	Answer = "maintenance";
	break;
	
	case 258:
	Spec = "Remove";
	Answer = "removal";
	break;
	
	case 259:
	Spec = "Render";
	Answer = "rendition";
	break;
	
	case 260:
	Spec = "Contend";
	Answer = "contention";
	break;
	
	case 261:
	Spec = "Eulogize";
	Answer = "eulogy";
	break;
	
	case 262:
	Spec = "Witness";
	Answer = "witness";
	break;
	
	case 263:
	Spec = "Persue";
	Answer = "persuit";
	break;
	
	case 264:
	Spec = "Analyze";
	Answer = "analysis";
	break;
	
	case 265:
	Spec = "Different";
	Answer = "difference";
	break;
	
	case 266:
	Spec = "Diagnose";
	Answer = "diagnosis";
	break;
	
  }
}

function EndOfGame()
{
if (((NumRight / (NumRight + NumWrong)) * 100)>74) {
// winner! 
	playSound(3); 
	var WinWin = window.open("boggleform.htm");

alert("You have earned " + NumRight + " correct points and \n" +  NumWrong + " incorrect points for a score of \n" + ((NumRight / (NumRight + NumWrong)) * 100) + " percent, \nwhich is enough to join our winner's circle!\nTo post your name in the winner's circle,\nsimply enter your name or screen name in the\nfollowing form and click the submit button!");   


// these values are visible to the user	
var TodayBlock = WinWin.document.WINFORM.MYTODAY;
var QuestAmountBlock = WinWin.document.WINFORM.NUMQUESTIONS;
var CorrectBlock = WinWin.document.WINFORM.CORRECT;
var IncorrectBlock = WinWin.document.WINFORM.INCORRECT;
var PercentBlock = WinWin.document.WINFORM.PERCENT;
var ScreennameBlock = WinWin.document.WINFORM.SCREENNAME;
var hQuestAmountBlock = WinWin.document.WINFORM.hNUMQUESTIONS;
var hCorrectBlock = WinWin.document.WINFORM.hCORRECT;
var hIncorrectBlock = WinWin.document.WINFORM.hINCORRECT;
var hPercentBlock = WinWin.document.WINFORM.hPERCENT;

// these values are visible to the user	
 	TodayBlock.value = new Date();
	QuestAmountBlock.value = (NumRight + NumWrong);
	CorrectBlock.value = NumRight;
	IncorrectBlock.value = NumWrong;
	PercentBlock.value = ((NumRight / (NumRight + NumWrong)) * 100);
// these values are invisible to the user (hidden) these will be the correct
// values, even if the user cheats and changes the original values he can see before submiting!
	hQuestAmountBlock.value = (NumRight + NumWrong);
	hCorrectBlock.value = NumRight;
	hIncorrectBlock.value = NumWrong;
	hPercentBlock.value = ((NumRight / (NumRight + NumWrong)) * 100);
	ScreennameBlock.focus();


	window.close();
	
}
	 else {
// loser!
		playSound(4);
		alert("You have earned " + NumRight + " correct points and \n" +  NumWrong + " incorrect points for a score of \n" + ((NumRight / (NumRight + NumWrong)) * 100) + " percent, \nwhich is not enough to join our winner's circle.\nYou'll need at least 75% correct.\nTry again soon!");   

		 
		window.close(); }
}


// ************************************************************************
// set up initial control values
txtAmt.value = AmtQuestions;
txtCur.value = "0";
txtCorrect.value = "0";
txtIncorrect.value = "0";
txtQuestion.value = "";

// start it off
CurQuestion = 1;
changequestion();
postdata();
txtAnswer.focus();
















