function hideModDesc(radio, textbox)
{
	j = radio.length
	chosen = ''
	for ( i = 0; i < j; i++)
	{
		if(radio[i].checked) 
			chosen = radio[i].value
	}
	if(chosen == 'm' || chosen == 'N')
	{
		textbox.style.visibility = 'visible';
	} else
	{
		textbox.style.visibility = 'hidden';
	}

}

function hideCheckboxDesc(box, textbox)
{
	if(!box.checked) 
	{
		textbox.style.visibility = 'hidden';
	} else
	{
		textbox.style.visibility = 'visible';
	}

}

function hideOtherDescAndMenu(select, textbox, othervalue, model, modelText, modelValue)
{
	hideOtherDesc(select, textbox, othervalue);
	modelMenu(select, textbox, model, modelText, modelValue, false);
}

function hideOtherDesc(select, textbox, othervalue)
{
	j = select.length
	chosen = 0
	for (i = 0; i < j; i++)
	{
		if(select.options[i].selected)
			chosen = select.options[i].value			
	}
	if(chosen == othervalue)
		textbox.style.visibility = 'visible';
	else
		textbox.style.visibility = 'hidden';
}

function AddToTemplate(text, textarea)
{
	textarea.value = textarea.value + text;
}

function switchUseDefault()
{
	document.registration.submit();
}
