﻿// Removes whitespace characters from the ends of the specified string. Equivalent of .Net System.String.Trim() method.
function trim( str )
{
   return str.replace(/^\s*|\s*$/g, '' );
}


// Used by web.sitemap links that need to open in a new window.
function openLink(url, target, attributes) {
    if (attributes == null)
        attributes = '';
    window.open(url, target, '');
}
