function fToggleDiv( vCheckVal, vDivID, vFocusID )
{
	if( vCheckVal )
	{
		document.getElementById( vDivID ).style.display = 'block';
		document.getElementById( vFocusID ).focus();
	}
	else
	{
		document.getElementById( vDivID ).style.display = 'none';
	}
}

function fTrim( vText )
{
	vText = fLtrim( vText );
	return fRtrim( vText );
}

function fLtrim( vText )
{
	var vMatch = /^\s+/;
	return vText.replace( vMatch, '' );
}

function fRtrim( vText )
{
	var vMatch = /\s+$/;
	return vText.replace( vMatch, '' );
}
function filledTextBox( currentElement, nextElement, maxsize, eventobject )
{
	var the_browser_name = navigator.appName;
	if( eventobject.keyCode >= 48 && currentElement.value.length >= maxsize )
		nextElement.focus();
}

