function updateVote1(radioObject){	
		// The name is what is commonly shared between all of the items.
		var radioName = f1.decor1.value;
		if (f1.decor2.checked)
{f1.decor1.className = 'act';}
else
{f1.decor1.className = '';}
		f1.t1.value  = radioName;
		
	
var radioName1 = f1.food1.value;
		if (f1.food2.checked)
{f1.food1.className = 'act';}
else
{f1.food1.className = '';}
		f1.t2.value  = radioName1;
		
	

}



function updateVote(radioObject){	
		// The name is what is commonly shared between all of the items.
		var radioName = radioObject.name;
		
		// Select all options that actually have the same name that was just selected.
		var radioOptions = document.getElementsByName(radioName);
			
		// Iterate through all of the options.
		for (var i = 0; i < radioOptions.length; i++)
		{
			// The state of the image will depend on whether this was the item
			// that was just clicked.
			if (radioOptions[i].id == radioObject.id)
			{
				// Pull all the labels.
				var labels = document.getElementsByTagName('label');				
				// Find the label that matches.
				for (var j = 0; j < labels.length; j++)
				{				
					// 'for' is for all browsers except ie, 'htmlFor is for ie.
					var forAttribute = (labels[j].getAttribute('for') || labels[j].getAttribute('htmlFor'));					
					if (forAttribute == radioObject.id){labels[j].className = 'act';
					if(radioName == 'locationvote')
					{
					f1.location.value = radioOptions[i].value;
					}
					if(radioName == 'bargainvote')
					{
					f1.bargain.value = radioOptions[i].value;
					}

					if(radioName == 'organizationvote')
					{
					f1.organization.value = radioOptions[i].value;
					}

					if(radioName == 'assortmentvote')
					{
					f1.assortment.value = radioOptions[i].value;
					}
} // Set it to the active class.
				}				
			}
			else
			{
				var labels = document.getElementsByTagName('label');
				for (var j = 0; j < labels.length; j++)
				{					
					var forAttribute = (labels[j].getAttribute('for') || labels[j].getAttribute('htmlFor')); // 'for' is for all browsers except ie, 'htmlFor is for ie.									
					if (forAttribute == radioOptions[i].id){labels[j].className = '';} // Set it to no class (inactive).
				}	
			}
		}						
	}



function valForm()
{
er = 1;
msg ="Please rate \n-------------- \n";
if(document.f1.location.value =='')
{
msg = msg + 'Location \n';
er = 0;
}

if(document.f1.bargain.value =='')
{
msg = msg + 'Bargain \n';
er = 0;
}

if(document.f1.organization.value =='')
{
msg = msg + 'Organization \n';
er = 0;
}

if(document.f1.assortment.value =='')
{
msg = msg + 'Assortment \n';
er = 0;
}

if (er == 0)
{
alert(msg);
return false;
}

}
