var currentSpecies = gup('species');

function speciesSelect(selected) {
    currentSpecies = selected;
    
    
}
function loadURL(urlText) {
    window.location = urlText+'.jsp?species='+currentSpecies;
}

function gup( name )
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return 'barley';
  else
    return results[1];
}