function clickButton( buttonID )
{
	var button = document.getElementById( buttonID );
	if ( button )
	{
		button.focus();
		button.click();
	}
}

function LimitValueLength(obj, maxlen)
{
	if(obj.value.length > maxlen) obj.value = obj.value.substring(0, maxlen);
}

function OnPageLoad()
{
}

function openCenteredWindowEx(url, name, width, height, scrollbars)
{
	var left = ((window.top.screen.width - width) / 2);
	var top = ((window.top.screen.height - height) / 2);
	
	if (scrollbars)
		var newWindow = window.open(url, name, 'height=' + height + ',width=' + width + ',left=' + left + ',top=' + top + ',menubar=no,resizable=no,toolbar=no,directories=no,scrollbars=yes');
	else
		var newWindow = window.open(url, name, 'height=' + height + ',width=' + width + ',left=' + left + ',top=' + top + ',menubar=no,resizable=no,toolbar=no,directories=no');
	newWindow.focus()
}

function SearchBlur(input, msgSearch)
{
	if (input.value == '') { input.value = msgSearch; input.style.color = "#999999"; }
}

function SearchFocus(input, msgSearch)
{
	if (input.value == msgSearch) { input.value = ''; input.style.color = "#000000"; }
}

function SpecLinkFocus(link)
{
	link.style.color = "#990033";
}

function SpecLinkBlur(link)
{
	link.style.color = "#003199";
}
