function incrementPage(pg) {
  document.form.nextpage.value=pg;
  document.form.submit();
}
function decrementPage() {
  if (document.form.nextpage.value > 1)
    document.form.nextpage.value--;
  document.form.submit();
}
function reviewPage() {
  document.form.nextpage.value="8";
  document.form.submit();
}
function askRemove(val) {
  if (confirm('Are you sure you want to remove this item?')) {
    document.form.del.value = val;
    document.form.submit();
    return true;
  }
  return false;   
}
var myWind;
function addEvent(event) {
  if (myWind && !myWind.closed)
    myWind.close();
  myWind = window.open('event.jsp?event='+event+'&nonav','addEvent','HEIGHT=160,WIDTH=500,left='+(screen.width/2-250)+',top='+(screen.height/2-100)); 
}
function modEvent(event,id) {
  if (myWind && !myWind.closed)
    myWind.close();
  myWind = window.open('event.jsp?event='+event+'&id='+id+'&nonav','addEvent','HEIGHT=160,WIDTH=500,left='+(screen.width/2-250)+',top='+(screen.height/2-100)); 
}
