
function testFileType(filename) {
  alert(filename);
  if (!fileName) return false;
  parts = filename.toLowerCase().split(".");
  if (!parts[parts.length-1].equals("pdf"))
    alert("Please upload a pdf.");
    return false;
  return true;
}

var last_bio = '';
function toggleVisibility(id) {

  el = document.getElementById(id);

  if(el.style.display == "none")  {
	el.style.display = "block";
  	if(last_bio != '' && last_bio != el) {
		last_bio.style.display ="none";
		last_bio = '';
 	}
	last_bio = el;
  } else {
	el.style.display = "none";
  	if(last_bio != '' && last_bio != el) {
		last_bio.style.display ="none";
		last_bio = '';
 	}
  }

}
