function showPic(picName) {
  popUpWindow = window.open('','','height=600,resizable=1,scrollbars=1,width=710');
  popUpWindow.document.write('<body style="background-color:#000000;"><div align="center" style="padding-top:20px; padding-bottom:20px; background-color:#666666;"><img src="'+picName+'" alt="" /><br/></div><div style="text-align:center;margin-top:20px;"><input type=button value="Close window" style="font-size:0.7em;color:#ffffff;background-color:#333333;border:2px outset #666666;" onclick=window.close()></div></body>');
}

function toggleDiv(divName) {
  var thisDiv = document.getElementById(divName);
  if (thisDiv.style.display=="inline") {
    thisDiv.style.display="none";
  }
  else {
  thisDiv.style.display="inline";
  }
}