

//  set message bar 
//  Usage:  setMsg('text')
function setMsg(msg)  {
	window.status = msg;
	return true;
}

function dm(msgStr) {
  document.returnValue = false;
  if (document.images) { 
     window.status = msgStr;
     document.returnValue = true;
  }
}
var showMsg = navigator.userAgent != "Mozilla/4.0 (compatible; MSIE 4.0; Mac_PowerPC)";
function dmim(msgStr) {
  document.returnValue = false;
  if (showMsg) { 
    window.status = msgStr;
    document.returnValue = true;
  }

}



// spawn new window with locationbar, toolbar, statusbar.  Scrollbar optional.
// Usage:  newWindow('page URL', width in pixels, height in pixels, 'HTML window name', 'yes' or 'no' for scroll bar)
function newWindow(myUrl,w,h,winName,scroll) {
        self.name = "main"; 
        newWin=eval('window.open(\''+myUrl+'\',\''+winName+'\',"toolbar=yes,scrollbars='+scroll+',top=100,left=100,width='+w+',height='+h+',menubar=yes,statusbar=yes,location=yes,resizable=yes,copyhistory=no");');
		newWin.focus();
}


// spawn new window without locationbar, toolbar, statusbar.  Scrollbar optional
// Usage:  popUp('page URL', width in pixels, height in pixels, 'HTML window name', 'yes' or 'no' for scroll bar)
function popUp(myUrl,w,h,winName,scroll) {
        self.name = "main"; 
		if (myUrl.indexOf("?") < 0) myUrl += "?suppressLinks=1"
		else myUrl += "&suppressLinks=1";
        newWin=eval('window.open(\''+myUrl+'\',\''+winName+'\',"toolbar=no,scrollbars='+scroll+',top=100,left=100,width='+w+',height='+h+',menubar=no,statusbar=no,location=no,copyhistory=no");');
		newWin.focus();
}

