function setIdProperty( id, property, value )
{

        var styleObject = document.getElementById( id );
        if (styleObject != null)
        {
            styleObject = styleObject.style;
            styleObject[ property ] = value;
        }
        
        /*
        styleObject = getStyleBySelector( "#" + id );
        if (styleObject != null)
        {
            styleObject[property] = value;
        }
        */

}
function subnav( item )
{
    setIdProperty( "tsubnav", "display", "none" );
    setIdProperty( "rsubnav", "display", "none" );
    setIdProperty( "isubnav", "display", "none" );
    setIdProperty( "csubnav", "display", "none" );
    setIdProperty( "lfsubnav", "display", "none" );
    setIdProperty( item, "display", "inline" );

}

function StripOutWhiteSpace(inString) {
	var outString = "";
	var firstNonWhite = 0;
	for (j = inString.length-1; j >= 0; j--)	{
		if (inString.charCodeAt(j) != 13 &&
inString.charCodeAt(j) != 10 && inString.charCodeAt(j) != 9)
			firstNonWhite = 1;
		if (firstNonWhite==1)
			outString = inString.charAt(j) + outString;
		}
	return outString;
}