function trimAll(str)
{
  if (str!=null)
  {
    while (str.length > 0 &&
      "\n\r\t ".indexOf(str.charAt(str.length - 1)) != -1)
      str = str.substring(0, str.length - 1);
    while (str.length > 0 &&
      "\n\r\t ".indexOf(str.charAt(0)) != -1)
      str = str.substring(1, str.length);
  }
  return str;
}

function isEmpty(str)
{
  if (str==null || str=="")
    return true;
  return false;
}

var windowHandle = '';
function popOpen(url,name,attributes)
{
	windowHandle = window.open(url,name,attributes);
}