var count;
var requiredOptionList = new Array();

count = 0;
for(i=0; i<document.forms[0].length; i++)
{
	if(((document.forms[0].elements[i].name).substring(0,3)) == "REQ")
	{	
		var myName	= (document.forms[0].elements[i].name);					//used to find the option id
		var myID	= myName.substring((myName.length-1),myName.length);	//used to find the option id
		
		//This will only get option 2 or 3 which is bagcolor1 or bagcolor2
		if(myID == "2" || myID == "3")
		{
			//Get Default Values For Option Requirements
			requiredOptionList[count] = new Array()
			requiredOptionList[count][0] = document.forms[0].elements[i].name;
			requiredOptionList[count][1] = document.forms[0].elements[i].value;
			
			count++;
		}
	}
}

//Turn Required Options Off
function OptionsRequiredOff()
{
	for(i=0; i<requiredOptionList.length; i++)
	{
		document.forms[0].elements[requiredOptionList[i][0]].value = "N";
	}
}

//Turn Required Options Back On
function OptionsRequiredOn()
{
	for(i=0; i<requiredOptionList.length; i++)
	{
		document.forms[0].elements[requiredOptionList[i][0]].value = requiredOptionList[i][1];
	}
}

/*
//Write To Screen
for(j=0; j<requiredOptionList.length; j++)
{
	document.writeln(document.forms[0].elements[requiredOptionList[j][0]].name  + ' = ' + document.forms[0].elements[requiredOptionList[j][0]].value);
}
*/

