function wordsStr(What) {

// This function is used to create 2 (or more) string with words and assign each word to a element of the corresponding array 
// Depending on the value of "What" The function returns one of the arrays
// It's main use is to allow the Hangman game to be played with different types of words 
// And also to use the "+=" operation on the string variable so we can include as many words as we want in each particular type
// The words in the string must be divided by space so the function can work properly.


if (What==1) {
// Nouns !!!
	var wordArr2 = new Array();
	var wordStr2="";


// All these nouns thanks to: 
// http://esl.about.com/library/vocabulary/bl1000_list_noun1.htm			and 
// http://en.wikipedia.org/wiki/Most_common_nouns_in_English				and
// http://www.esldesk.com/esl-quizzes/irregular-nouns/irregular-nouns.htm


wordStr2+="addendum alga alumna alumnus analysis antenna apparatus appendix axis bacillus bacterium basis beau buffalo bureau bus cactus ";
wordStr2+="calf corpus crisis criterion curriculum datum die dwarf diagnosis echo elf ellipsis embargo emphasis erratum fireman focus foot formula ";
wordStr2+="fungus genus goose half hero hippopotamus hoof hypothesis index knife leaf life loaf louse plural addenda algae alumnae alumni analyses ";
wordStr2+="antennas antennae apparatuses appendices appendixes axes bacilli bacteria bases beaux bison buffalos buffaloes bureaus busses buses ";
wordStr2+="cactuses cacti calves children corps corpora corpuses crises criteria curricula data deer dice dwarfs dwarves diagnoses echoes elves ";
wordStr2+="ellipses embargoes emphases errata firemen fish fishes focuses feet formulas fungi funguses genera geese halves heroes hippopotami ";
wordStr2+="hippopotamuses hoofs hooves hypotheses indices indexes knives leaves lives loaves lice singular man matrix medium memorandum ";
wordStr2+="millennium moose mosquito mouse nebula neurosis nucleus oasis octopus ovum ox paralysis parenthesis person phenomenon potato ";
wordStr2+="radius scarf self sheep shelf stimulus stratum syllabus symposium synthesis synopsis tableau that thesis thief this tomato tooth torpedo ";
wordStr2+="vertebra veto vita watch wife wolf woman zero men matrices means media memoranda millenniums end enemy energy mosquitoes ";
wordStr2+="mice nebulae nebulas neuroses nuclei oases octopi octopuses ova oxen paralyses parentheses people phenomena potatoes radii ";
wordStr2+="radiuses scarves selves series shelves scissors species stimuli strata syllabi syllabuses symposia symposiums syntheses synopses ";
wordStr2+="tableaux those theses thieves these tomatoes teeth torpedoes vertebrae vetoes vitae watches wives wolves women zeros zeroes ";
wordStr2+="age air anger animal answer apple area arm art atom baby back ball band bank bar base bat bear beauty bell bird bit block blood ";
wordStr2+="blow board boat body bone book bottom box boy branch bread break brother call camp capital captain car card care case cat ";
wordStr2+="cause cell cent century chair chance change character chick chief child chord circle city class climb clock cloud coast coat cold colony ";
wordStr2+="color column company condition consonant continent copy corn cost cotton country course cover cow crop cross crowd cry current ";
wordStr2+="cut dad dance danger day dead deal death decimal degree design dictionary division doctor dog dollar door double draw dream dress ";
wordStr2+="drink drive drop duck ear earth ease east edge effect egg eight element word time water side part place year name help line hand land ";
wordStr2+="kind house mother world father head school plant eye thought tree press night example group mile river friend idea mountain horse face ";
wordStr2+="girl list wind question ship rock fire problem king hour hold travel war pattern rain notice voice unit power town fly fall machine plan ";
wordStr2+="pound minute tail fact wheel moon island system test game paint language heart material weight count reason region bed ride forest ";
wordStr2+="train mount wish joy winter instrument glass grass visit gas month hope flower village metal cook floor hill phrase sand finger value ";
wordStr2+="lie son method organ surprise experiment key hole trip mouth symbol tone rise oil touch garden control ring insect period radio ";
wordStr2+="history corner process wing poem sight planet desert rose term shoe shoulder truck nose sugar guide experience evening feed ";
wordStr2+="tool valley seat track slave instant market dear support motion path liquid ";


var tempStr="";	

	var count=0
	var count1=-1;
	for (count=0; count<wordStr2.length; count++) {
		if (wordStr2.charAt(count)!=" ") {
			count1++;
			wordArr2[count1]="";
		}

		while (wordStr2.charAt(count)!=" " && count<wordStr2.length) {
			wordArr2[count1]+=wordStr2.charAt(count);
			count++
		}
	}

/* These 2 checks below were already performed and will be marked as note to make the game faster!
   I am leaving them here so later they can be re-used if adding more words. 

	for (count=0; count<wordArr2.length; count++) {
		if (wordArr2[count].length>(document.Game.word.size/2)) {
			alert("The word:\n>>"+wordArr2[count]+"<<\n is too big to fit in the text box.\nAnd will be excluded from the game");
			wordArr2.splice(count,1);
			count-=1;
		}
	}

	for (count=0; count<wordArr2.length; count++) {
		for (count1=count+1; count1<wordArr2.length; count1++) {
			if (wordArr2[count]==wordArr2[count1]) {
				alert("The word:\n>>"+wordArr2[count]+"<<\n is repeated.\nAnd will be excluded from the game");
				wordArr2.splice(count1,1);
				count1-=1;
			}
		}
	}

_________________________________________________________End of Check Note */

return wordArr2;
}



if (What==2) {

// Verbs

	var wordArr2 = new Array();
	var wordStr2="";


// All these verbs thanks to http://www.logosconjugator.org !!!


wordStr2+="damage dampen dance dandify dap dapple dare daresay darken dash date daub daunt dawdle ";
wordStr2+="dawn dazzle deactivate deafen deal debar debase debate debilitate debrief debug debunk ";
wordStr2+="decamp decant decapitate decarburize deceive decelerate decentralize decertify decide ";
wordStr2+="decimalize decimate decipher deck declaim declare declass declassify decline decoct decode ";
wordStr2+="decollate decolonize decolorize decommission decompose decompress decongest deconsecrate ";
wordStr2+="deconstruct decontaminate decontrol decorate decorticate decouple decrease decree ";
wordStr2+="decriminalize decry dedicate deduce deduct deepen deface defalcate defame defang default ";
wordStr2+="defeat defecate defend defenestrate defer defibrillate defile define deflagrate deflate ";
wordStr2+="abandon abase abash abate abbreviate abdicate abduct abet abhor abide abjure abnegate ";
wordStr2+="abolish abominate abort abound abrade abreact abridge abrogate abscond absolve absorb ";
wordStr2+="abstain abstract abuse abut accede accent accentuate accept accessorize acclaim acclimate ";
wordStr2+="acclimatize accommodate accompany accomplish accost account accouter accredit accrete ";
wordStr2+="accrue accumulate accuse accustom acerbate acetify achieve achromatize acidify acidulate ";
wordStr2+="acknowledge acquaint acquiesce acquire acquit act activate actuate adapt add addict address ";
wordStr2+="adduce adduct adhere barbarize bard bare barf bargain bark barrack barricade base basify bask ";
wordStr2+="batch bate batfowl bath bathe batten battle baulk bawl bay be beam bear beat beatify beautify ";
wordStr2+="becloud become bedevil bedew bedight bedim bedizen bedraggle befall befog befool befoul ";
wordStr2+="befriend befuddle beg beget begin begrime begrudge beguile behave behead behold belabor ";
wordStr2+="beleaguer belie believe belittle bellow belong bemire bemoan bench bend benumb bequeath ";
wordStr2+="berate bereave beseech beset besiege besmear besmirch besot bespatter bespeak bestow ";
wordStr2+="bestride bet betake bethink betoken betray betroth bastardize baste bat ";
wordStr2+="catalyze catapult catch catechize categorize caterwaul catheterize catholicize caulk cause ";
wordStr2+="cauterize cave cavil cavort cease cede ceil celebrate cense censor center centralize centre ";
wordStr2+="cerebrate certificate certify chafe chain chalk challenge champ chance chant char characterize ";
wordStr2+="charbroil charge charter chase chasten chastise chat chatter cheapen cheat check cheek cheep ";
wordStr2+="faradize farebeat fart fascinate fast fast-talk fasten fatten fawn faze fear feast feather feature ";
wordStr2+="fecundate federalize federate feed feel feign fell felt feminize fend ferment fertilize fess fester ";
wordStr2+="festoon cheer excuse execrate execute know mutter muzzle mystify null nullify number ";
wordStr2+="grease greaten greet grieve grind grip gripe grizzle groan groom grope grouch ground group ";
wordStr2+="grovel grow growl grub grumble guarantee guess guide gulp down gurgle gussy gut guzzle gyrate ";
wordStr2+="evaluate evanesce evaporate eventuate evict evidence evince eviscerate evoke evolve ";
wordStr2+="exacerbate exaggerate exalt examine exasperate excavate exceed excel except exchange ";
wordStr2+="excise excite exclaim exclude excogitate excommunicate excoriate excrete excruciate exculpate ";
wordStr2+="incubate inculcate inculpate incur indemnify indent index indicate indict indispose individualize ";
wordStr2+="individuate indoctrinate indorse induce induct indulge industrialize inebriate infatuate infect infer ";
wordStr2+="infest infiltrate inflame inflate inflect inflict influence inform infract infringe infuse ingest ingratiate ";
wordStr2+="jabber jail jam jam-pack jaywalk jellify jeopardize jerk jerrybuild jest jib join ";
wordStr2+="keel keelhaul keep kibitz kick kidnap kill kindle kink kiss knap knead kneel knell knit knock knot ";
wordStr2+="label labialize lace lacerate lack lacquer lactate lag laicize lambaste lament loose loosen lop lose ";
wordStr2+="lout love lower lubricate lucubrate lumber lump lunch lurch lurk lustrate luxuriate lynch lyophilize ";
wordStr2+="magnetize magnify maim maintain make malinger maltreat manage mangle manhandle manifest ";
wordStr2+="manipulate manufacture manumit murder murmur muse muss must muster mutate mute mutilate ";
wordStr2+="necessitate need neglect negotiate nest nip nitrify nominate normalize note notice notify nourish ";
wordStr2+="overdevelop overdo overdraw overeat overemphasize overestimate overexert overexpose ";
wordStr2+="overhang overhaul overhear overheat overlap overlay overlie overload overlook overmaster ";
wordStr2+="overmedicate overpay overprint override overrun oversee oversell overshoot oversleep overtake ";
wordStr2+="overthrow overwhelm ovulate own obey object objectify oblige obliterate observe obsolesce ";
wordStr2+="obstruct obtain obtrude obtund obvert obviate occupy occur offer officiate ";
wordStr2+="privatize privilege probate probe proceed process proclaim procrastinate procreate produce ";
wordStr2+="profess profile program progress prohibit project prolong promise promote pronounce proofread ";
wordStr2+="propagate propel propose prorate pace pacify pack paint palletize pamper pan pant parade parry ";
wordStr2+="parse part partake participate particularize party pass renumber reopen ";
wordStr2+="qualify quantify quench query question queue quit quiz quote transplant transport ";
wordStr2+="rely remain remake remand remember remilitarize remind reminisce remise remit remodel ";
wordStr2+="remove remunerate rename rend render renegotiate renew renormalize renounce renovate rent ";
wordStr2+="sync synchronize syncopate synopsize systematize systemize sabotage sacrifice sadden sag sail ";
wordStr2+="salute salve sample sanctify sand sand-cast sandblast sanitize sate satirize satisfy saturate save ";
wordStr2+="savor saw say scale scamp scan scandalize scarf unclog unclothe uncoil uncork uncover ";
wordStr2+="traduce train traipse tranquillize transcribe transect transfer transfigure transfix transform ";
wordStr2+="transfuse transgress transistorize transit translate transliterate transmigrate transmit transmogrify ";
wordStr2+="unveil unwind unwrap unzip upbraid upchuck update upgrade uphold upholster uplift upload ";
wordStr2+="upraise uproot upset upspring ululate unarm unbar unbend unbind unblock unbolt unbridle ";
wordStr2+="unburden unchain uncloak vouchsafe vow voyage vulcanize vulgarize ";
wordStr2+="vaccinate vacillate validate valorize valuate value vamoose vandalize vanish vanquish vaporize ";
wordStr2+="variegate varnish veer vegetate veil venerate ventilate verge verify verse vex vibrate victimize vie ";
wordStr2+="view vilify vilipend vindicate violate visit visualize vitalize vitiate vivify vociferate volatilize vomit ";
wordStr2+="wag wail wait waive wake walk wander wane want warm up warn warp warrant wash waste ";
wordStr2+="watch water wave wax waylay weaken wean wear weatherize weave wed wedge weep weigh ";
wordStr2+="welcome weld welsh westernize wet wet-nurse wheeze whelm whine whip whisk whistle whiten ";
wordStr2+="widen wield will wilt win wind vote vouch yaw yawn yearn yell yield zap zip zoom zoon ";

	var count=0
	var count1=-1;
	for (count=0; count<wordStr2.length; count++) {
		if (wordStr2.charAt(count)!=" ") {
			count1++;
			wordArr2[count1]="";
		}

		while (wordStr2.charAt(count)!=" " && count<wordStr2.length) {
			wordArr2[count1]+=wordStr2.charAt(count);
			count++
		}
	}


/* These 2 checks below were already performed and will be marked as note to make the game faster!
   I am leaving them here so later they can be re-used if adding more words. 

	for (count=0; count<wordArr2.length; count++) {
		if (wordArr2[count].length>(document.Game.word.size/2)) {
			alert("The word:\n>>"+wordArr2[count]+"<<\n is too big to fit in the text box.\nAnd will be excluded from the game");
			wordArr2.splice(count,1);
			count-=1;
		}
	}

	for (count=0; count<wordArr2.length; count++) {
		for (count1=count+1; count1<wordArr2.length; count1++) {
			if (wordArr2[count]==wordArr2[count1]) {
				alert("The word:\n>>"+wordArr2[count]+"<<\n is repeated.\nAnd will be excluded from the game");
				wordArr2.splice(count1,1);
				count1-=1;
			}
		}
	}

_________________________________________________________End of Check Note */

return wordArr2;
}

// etc...

}