// JavaScript Document
function fnclick(id)
{
	for (var i=0; i < document.form2.rdostyle.length; i++) 
	{
	   if (document.form2.rdostyle[i].checked)
	   {
	   	  var color = document.form2.rdostyle[i].value;
		  if(color == document.getElementById(id).value){
		  	document.form2.rdostyle[i].checked = false;		  
			document.getElementById(id).value = '';
		  } else {
		  	document.getElementById(id).value = color;			
		  }
	   }
	}
}

/*toggle radio button*/
var radios = new Array;
function Toggle(radio) 
{
    if (radios[radio.name] == radio.value) 
    {
        radio.checked = false;
		radios[radio.name] = "";
    }
    else 
    {
        radio.checked = true;
        radios[radio.name] = radio.value;
    }
}