function selPage(targ, selObj, restore) {
 keyval0 = selObj.selectedIndex;
 keyval1 = selObj.options[keyval0].value;
 if(keyval1.search("/") != -1) window.open(keyval1);
 else {
  if(restore != 0) keyval0 = 0;
  else {
   if(keyval1=='none' || keyval1=='') eval(targ+".location.reload()");
   else eval(targ+".location.href='"+keyval1+"'");
  }
 }
}

function new_window(content,width,height,left,top,bars) {
 if(bars=="all") bars = ",location=yes,menubar=yes,resizable=yes,scrollbars=yes,status=yes,toolbar=yes";
 if(bars=="none") bars = "";
 window.open(content,'','width='+width+',height='+height+',left='+left+',top='+top+bars+'');
}

function popup(content,width,height) {
 new_window(content,width,height,20,20,"none");
}

function event_info(eventID) {
 this_event = 'events.php?infopg=1&ID='+eventID;
 window.open(this_event,'','width=350,height=450,left=80,top=80,scrollbars=yes');
}
