//<!--
function trim(item)
{
  var tmp = "";
  var item_length = item.length;
  var item_length_minus_1 = item.length - 1;
  for (index = 0; index < item_length; index++)
  {
    if (item.charAt(index) != ' ')
    {
      tmp += item.charAt(index);
    }
    else
    {
      if (tmp.length > 0)
      {
        if (item.charAt(index+1) != ' ' && index != item_length_minus_1)
        {
          tmp += item.charAt(index);
        }
      }
    }
  }
  return tmp;
}
//-->