//<!--
function popWin(sFile, iWidth, iHeight){
	window.open(sFile,"","directories = no, width="+iWidth+",height ="+iHeight+", left=100,top=100,menubar=no,status=no,toolbar = no,location=no");	
}

function xGetElementById(e){if(typeof(e)!='string') return e;if(document.getElementById) e=document.getElementById(e);else if(document.all) e=document.all[e];else e=null;return e;}

function submitQuestions(){
		var oYesRadio = xGetElementById('yes');
		var oNoRadio = xGetElementById('no');
		if (oYesRadio.checked || oNoRadio.checked){
			if (oNoRadio.checked){sAnswer="no";}else{sAnswer="yes";}
			popWin("http://yeowid.brinkster.net/opr/chp/MAKE_THE_RIGHT_TURN/quick.php?answer="+sAnswer,460,410);
		}		
}
function submitForm(sID){
	var oForm = xGetElementById(sID);
	oForm.submit();
}
function checkAllAnswered(){
	var oOne = xGetElementById('oneAnswered');
	var oTwo = xGetElementById('twoAnswered');
	var oThree = xGetElementById('threeAnswered');
	var oFour = xGetElementById('fourAnswered');
	var oFive = xGetElementById('fiveAnswered');
	//alert(oOne.value+'\n'+oTwo.value+'\n'+oThree.value+'\n'+oFour.value+'\n'+oFive.value);
	if (oOne.value=='true' && oTwo.value=='true' && oThree.value=='true' && oFour.value=='true' && oFive.value=='true')
	{
		//alert('tryin');
		//submitForm('quizForm');
		//var oForm = xGetElementById('mainQuiz');
		//alert(oForm.name);
		//oForm.submit();
		return true;
		}
	else{
		return false;
		}
}
function setAnswered(sID){
	var ohiddenInput = xGetElementById(sID);
	ohiddenInput.value='true';
	//alert(ohiddenInput.value);
	return;
}

// -->
