/*
	SetFocus will look for the first form input text element and set it's focus.
	This way, the user does not have to select the box first.
*/
function SetFocus()
{
	if (document.forms[0])
	{
		var form = document.forms[0];
		var length = form.elements.length;
		
		for (i = 0; i < length; i++)
		{
			var element = form.elements[i];
			if (element.type == "text")
			{
				element.focus();
				return ;
			}
		}
	}
	
	if ( parent )
		parent.window.scroll(0, 0);
}

function OnLoadProcedures()
{
	SetFocus();
}

window.onload = OnLoadProcedures;
