var theid;
var infoid;
$(document).ready(function() {
  //For the forms:
  $(".form").hide();
  if(camefrom.length > 0) {
    theid = "#" + camefrom;
    $(theid).show();
  }
  $(".clickable").click(function() {
    $(".info").hide();
    theid = "#" + $(this).attr("name");
    $(".form").hide();
    $(theid).show();
  });

  //For additional student information:
  $(".info").hide();
  $(".clickable_2").click(function() {
    if($(this).attr("name")=="x_x")
      $(".info").show();
    else {
      infoid = "#" + $(this).attr("name");
      //alert("showing "+infoid);
      $(".info").hide();
      $(infoid).show();
    }
  });

  $(".err").hide();
  if($(".err").html().trim()!="")
    $(".err").show();

  $(".err").click(function() {
    $(this).slideUp(500);
  });
});

