<!--

function testforms(){

if ( (isQuest1()) && (isQuest2()) && (isQuest3()) && (isQuest4()) && (isQuest5())){           

win()

return false

		}

		else{return false}

}



function isQuest1(){

var question1 = document.forms[0].elements[0].value; 

if (question1 == ""){      



		alert("\nOops, you forgot to enter an answer for Question 1.")      



		document.forms[0].elements[0].focus();      



		return false;      



	}   



if (question1 !=3){

alert("\nOops, try again. Check your answers."); 

return false;

}

return true;

}





function isQuest2(){

var question2 = document.forms[0].elements[1].value; 



if (question2 == ""){      



		alert("\nOops, you forgot to enter an answer for Question 2.")      



		document.forms[0].elements[1].focus();      



		return false;      



	}   



if ((question2 != (4000)) && (question2 != ("4,000"))){

alert("\nOops, try again. Check your answers."); 

return false;

}

return true;

}





function isQuest3(){

var question3 = document.forms[0].elements[2].value; 



if (question3 == ""){      



		alert("\nOops, you forgot to enter an answer for Question 3.")      



		document.forms[0].elements[2].focus();      



		return false;      



	}   



if (question3 != 6){

alert("\nOops, try again. Check your answers."); 

return false;

}

return true;

}





function isQuest4(){

var question4 = document.forms[0].elements[3].value; 



if (question4 == ""){      



		alert("\nOops, you forgot to enter an answer for Question 4.")      



		document.forms[0].elements[3].focus();      



		return false;      



	}   



if (question4 != 40){

alert("\nOops, try again. Check your answers. Check your answers."); 

return false;

}

return true;

}





function isQuest5(){

var question5 = document.forms[0].elements[4].value; 



if (question5 == ""){      



		alert("\nOops, you forgot to enter an answer for Question 5.")      



		document.forms[0].elements[4].focus();      



		return false;      



	}   



if (question5 != 300){

alert("\nOops, try again. Check your answers."); 

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;

}

// -->