// JavaScript Document
function UnCheckAny(refControlArray,strAny,strname){
	var formIndex;
	var arraylen = refControlArray.length
	if(strname == strAny)
    {
		for (formIndex = 0; formIndex < arraylen; formIndex++)
		{
			if (refControlArray[formIndex].value==strAny)
			{
				refControlArray[formIndex].checked = true;
			}
			else
			{
				refControlArray[formIndex].checked = false;
			}
		}
    }
	else
	{
	   for (formIndex = 0; formIndex < arraylen; formIndex++)
		{
			if (refControlArray[formIndex].value==strname)
			{
				refControlArray[formIndex].checked = false;
			}
		}		
	}
}

var ie = false;
if (document.all) { ie = true; }

function getObj(id) {
if (ie) { return document.all[id]; } 
else {	return document.getElementById(id);	}
}
	 
function enableText(refControlArray,strAny,strname,enblid,ids,otherOption){
	var formIndex;
	var arraylen = refControlArray.length
	var divTagId = getObj(ids);
	if(strname == strAny)
    {
		for (formIndex = 0; formIndex < arraylen; formIndex++)
		{
			
			if (refControlArray[formIndex].value==strAny)
			{
				if(otherOption==1 && refControlArray[0].type=='radio')
				{
					enblid.disabled = false;
					divTagId.style.display = 'block';
				}
				refControlArray[formIndex].checked = true;
			}
			else
			{
				refControlArray[formIndex].checked = false;
			}
		}
    }
	else
	{
	   if(otherOption==1 && refControlArray[0].type=='radio')
	   {
	  	 enblid.disabled = true;
   	   	 divTagId.style.display = 'none';
	   }
	   for (formIndex = 0; formIndex < arraylen; formIndex++)
		{
			if (refControlArray[formIndex].value==strname)
			{
				refControlArray[formIndex].checked = false;
			}
		}		
	}
}
