function winstatus(str) {
    window.status = str;
}

function trim(text) {
    var newstr = text.replace(/^\s*/, "");
    newstr = newstr.replace(/\s*$/, "");
   
    return newstr;
}

function openWindow(url, help, feature) {

  if (typeof(popupWin) != "object") 
	popupWin = window.open(url, help, feature);
  else {
    if (!popupWin.closed) 
      popupWin.location.href = url;
    else 
	  popupWin = window.open(url, help, feature);
  }	  
}
