// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
function showSample( sample_id ) {
  if($('item').firstDescendant() != null)
    $('items').insert($('item').firstDescendant());
  $('item').update($(sample_id));
}

function showInstructions() {
  if($('item').firstDescendant() != null)
    $('items').insert($('item').firstDescendant());
  $('item').update($('instructions'))
}