<!-- Begin to hide script contents from old browsers
function checkForNull (str)
   {
   // If the string is null, then return a blank string else returned the string trimmed
   if (str == null)
      {
      return("");
      }
   else
      {
      return(Trim(str));
      }
   }

function Trim (orgString)
   {
   return LTrim(RTrim(orgString))
   }

function LTrim (orgString)
   {
   return orgString.replace(/^\s+/,'')
   }

function RTrim(orgString)
   {
   return orgString.replace(/\s+$/,'')
   }
// End the hiding here -->
