function setStatus(msg){
      if(msg == undefined){
            window.status = "";
      } else {
            window.status = msg;
      }
}