function NewWindow(mypage, myname, w, h, scroll){
  var winl = (screen.width - w) / 2;
  var wint = (screen.height - h) / 2;
  winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
  win = window.open(mypage, myname, winprops)
  if (parseInt(navigator.appVersion) >= 4){ 
    win.window.focus(); 
    }
  }

var submitcount=0;
function submitonce()
  { 
  if (submitcount == 0)
    {
    submitcount++;
    return true;
    }
  else
    {
    alert("This form has already been submitted.  Thanks!");
    return false;
    }
  }

function confirmSubmit(){
var agree=confirm("Are you sure you wish to continue?");
if (agree)
  return true ;
else
  return false ;
}

function confirmDel(entrytext){
var agree=confirm(entrytext);
if (agree)
  return true ;
else
  return false ;
}

