/**

Simple javascript used to prevent user from selecting more
than one subscription option.

**/

function SubscriptionOptions()
{
	this.options = new Array();
	/**
	add a form element checkbox to the options list.
	**/
	this.addOption = function(option)
	{
		this.options.push(option);
	}
	
	/**
	select option with the supplied name.
	**/
	this.selectOption = function(optionName)
	{
		for(var i=0;i<this.options.length;i++)
		{
			if (this.options[i]) {
				if (this.options[i].name != optionName)
					this.options[i].checked = false;
				else
					this.options[i].checked = true;
			}
		}
	}
}
