<!--

function howMany(){

if ((isQuest1()) && (isQuest2()) && (isQuest3())){           

win()

return false

		}

		else{return false}

}



function isQuest1(){

var question1 = document.forms[0].elements[0].value; 

if (question1 == "S"){      



		alert("\nOpps, you forgot to enter an answer for the FIRST thing to prevent roaches in your home.")      



		document.forms[0].elements[0].focus();      



		return false;      



	}   



if ((question1 !="Starve") && (question1 != "starve")){

alert("\nOpps, try again."); 

return false;

}

return true;

}





function isQuest2(){

var question2 = document.forms[0].elements[1].value; 



if (question2 == "D"){      



		alert("\nOpps, you forgot to enter an answer for the SECOND thing to prevent roaches in your home.")      



		document.forms[0].elements[1].focus();      



		return false;      



	}   



if ((question2 != "Dry") && (question2 != "dry")){

alert("\nOpps, try again."); 

return false;

}

return true;

}





function isQuest3(){

var question3 = document.forms[0].elements[2].value; 



if (question3 == "K"){      



		alert("\nOpps, you forgot to enter an answer for the THIRD thing to prevent roaches in your home.")      



		document.forms[0].elements[2].focus();      



		return false;      



	}   



if ((question3 != "Keep") && (question3 != "keep")){

alert("\nOpps, try again."); 

return false;

}

return true;

}





function win() {

var Launch1=window.open("../winner/won.htm","portfolio_win",'width=340,height=340,left=250,directories=no,status=yes,location=no,toolbar=no,scrollbars=no,resize=no,menubar=no,copyhistory=no');

  //Launch1.creator = top.self;

}





function theAnswers(){

msg='Having some trouble?\n\nHere are the answers:\n1.  Starve\n2.  Dry\n3.  Keep\n\nTry it again!';

alert(msg)

}





// -->