
//radio mode needs this function
function Result()
	{
		for (i=0; i<TotalNoOfQuestions; i++) 
		{
			for (j=0; j<TotalNoOfOptions; j++)
			{
				obj =eval("document.forms[0].radiobutton" +(i)+ "[j]");
				if (obj.checked == true)
				{
					result[i] = obj.value;
					break;
				}
			}
		}
	}



function checkfillin_radiobuttonMode(page)
{
	
	var pass = true;
	var output = "";
	for (i=0; i<result.length; i++)
	{
		if (result[i] == "" || result[i]==null)
		{	
			pass = false;
			alert("Please fill in all the questions first!");
			break;
		}
		
	}
	
	if (pass == true)
	{		
		gotoAnotherPage(page);
	}
	
	return pass
}

function checkselected(which, quename, queval) {
		document.cookie = quename+"="+queval
}
