function chooseTournament(obj,redirecturl){
  if(obj.value!=''){
    document.location=redirecturl+'&tid='+obj.value;
  }
  return false;
}

function deleteEntrant(redirecturl){
  var x=confirm("Really delete this entrant?");
  if(x){
    document.location=redirecturl;
  }else{
    return false;
  }

}

function deleteTournament(redirecturl){
  var x=confirm("Really delete this Tournament?");
  if(x){
    document.location=redirecturl;
  }else{
    return false;
  }

}

function updateFromSpecies(x, id, tid, tcat, fid){

  switch(x){
  	case 'min_weight':
  		document.location="index.php?op=editcategory&tid="+tid+"&id="+id+"&tcatid="+tcat+"&update_field=1&fid="+fid;
  		break;
  		
  	case 'points_per_qualifying_fish':
  		document.location="index.php?op=editcategory&tid="+tid+"&id="+id+"&tcatid="+tcat+"&update_field=2&fid="+fid;
  		break;
  		
  	case 'points_per_landed_fish':
  		document.location="index.php?op=editcategory&tid="+tid+"&id="+id+"&tcatid="+tcat+"&update_field=3&fid="+fid;
  		break;
  		
	case 'points_per_lb':
  		document.location="index.php?op=editcategory&tid="+tid+"&id="+id+"&tcatid="+tcat+"&update_field=4&fid="+fid;
  		break;
  }
	
}