var content_c = function()
{
	this.element_o = {};
	this.name_s = '';

	/**/

	this.setContent = function(content_s)
	{
		this.element_o.innerHTML = content_s;
	};

	this.setOnGetContentResponse = function(state_i, status_i, content_s)
	{
		if ((state_i == 4) && (status_i == 200))
		{
			this.setContent(content_s);
			this.onContentResponse();
		}
	};

	/**/

	this.setElement = function(id_s)
	{
		this.element_o = document.getElementById(id_s);
	};

	this.getContent = function(name_s, argument_o)
	{
		var ajax_o = new ajax_c();
			ajax_o.setPath('/website/content.php');
			ajax_o.setArgument('name', name_s);

			for (var index_s in argument_o)
				ajax_o.setArgument(index_s, argument_o[index_s]);

			ajax_o.setListener(this, 'setOnGetContentResponse');
			ajax_o.setRequest();

		this.name_s = name_s;
	};

	this.getName = function()
	{
		return this.name_s;
	};

	this.onContentResponse = function() { };
};

function setExtra(select_o, value_s, field_s)
{
	document.getElementById(field_s).style.display = 'none';
	var value_u = select_o.options[select_o.selectedIndex].value;

	if (value_u == value_s)
	{
		document.getElementById(field_s).style.display = '';
	}
};