function setFocus()
{
	if(document.optionsForm.user_name)
		document.optionsForm.user_name.focus();
}
function goOn()
{
	if(document.optionsForm)
		document.optionsForm.submit();
}
function confirmAction(message)
{
	if(confirm(message))
		return true;
	return false;
}
function changeSelect(obj, url)
{
    var val = obj.value;
	url += val;
    location.replace(url);
}
// Bookmark this page
// copyright 12th February 2005, 21st June 2006
// Stephen Chapman, http://javascript.about.com
// Updated for Opera 9
// You have permission to copy and use this javascript provided that
// the copyright notice is included with the script
function addToFavorite()
{
	var chr = 'CTRL-D';
	var agt = navigator.userAgent.toLowerCase();
	if(agt.substr(agt.indexOf('opera')+6,1) < 9) chr = 'CTRL-T';
	if(document.all) 
		window.external.addFavorite(self.location, document.title);
	else
		alert('Press ' + chr + ' to bookmark this page.');
	//if (window.external) document.write('<a href="javascript:window.external.AddFavorite(self.location,document.title)">Add to Favorites<\/a>');
	//else document.write('Press ' + chr + ' to bookmark this page.');
}

function printPage()
{
	window.print();
}
function showControl(id)
{
	var elm = document.getElementById(id);
	elm.style.display = '';
}
function hideControl(id)
{
	var elm = document.getElementById(id);
	elm.style.display = 'none';
}
function toggleControl(id)
{
	var elm = document.getElementById(id);
	if(elm.style.display)
	{
		elm.style.display = '';
	}
	else
	{
		elm.style.display = 'none';
	}
}
function toggleInfo(link_id,info_id)
{
	var link = document.getElementById(link_id);
	if(link.innerHTML == "+")
	{
		link.innerHTML = "-";
	}
	else
	{
		link.innerHTML = "+";
	}
	toggleControl(info_id)
}
