
function enlargeGifPicture(newWindow,pname,pwidth,picname)
  {
   //width must be expressed as a percentage without percent sign (e.g. 40 = 40%)
  var newdata = "<html><head><title>" + pname + "</title></head><body>";
  newdata += "<img src='" + newWindow + ".gif' width='" + pwidth + "% ' />;";
  var temp =  window.location.href + "#";
  temp = temp.substring(0,temp.indexOf("#"));
  newdata += "<a href='" + temp + "#" + picname + " '>";
  newdata += "<img src='../cpictures/RETURN.jpg' width='100' /></a>;";
  newdata += "</body></html>";
  document.write(newdata);
  document.close();
  }
	
function enlargeJpgPicture(newWindow,pname,pwidth,picname)
  {
  //width must be expressed as a percentage without percent sign (e.g. 40 = 40%)
  var newdata = "<html><head><title>" + pname + "</title></head><body>";
  newdata += "<img src='" + newWindow + ".jpg' width='" + pwidth + "% ' />;";
  var temp =  window.location.href + "#";
  temp = temp.substring(0,temp.indexOf("#"));
  newdata += "<a href='" + temp + "#" + picname + " '>";
  newdata += "<img src='../cpictures/RETURN.jpg' width='100' alt='RETURN' /></a>;";
  newdata += "</body></html>";
  document.write(newdata);
  document.close();
  }
	
function enlargeJpgPictureLevel0(newWindow,pname,pwidth,picname)
  {
  //width must be expressed as a percentage without percent sign (e.g. 40 = 40%)
  var newdata = "<html><head><title>" + pname + "</title></head><body>";
  newdata += "<img src='" + newWindow + ".jpg' width='" + pwidth + "% ' />;";
  var temp =  window.location.href + "#";
  temp = temp.substring(0,temp.indexOf("#"));
  newdata += "<a href='" + temp + "#" + picname + " '>";
  newdata += "<img src='cpictures/RETURN.jpg' width='100' alt='RETURN' /></a>;";
  newdata += "</body></html>";
  document.write(newdata);
  document.close();
  }
	
function enlargeJpgPictureLevel2(newWindow,pname,pwidth,picname)
  {
  //width must be expressed as a percentage without percent sign (e.g. 40 = 40%)
  var newdata = "<html><head><title>" + pname + "</title></head><body>";
  newdata += "<img src='" + newWindow + ".jpg' width='" + pwidth + "% ' />;";
  var temp =  window.location.href + "#";
  temp = temp.substring(0,temp.indexOf("#"));
  newdata += "<a href='" + temp + "#" + picname + " '>";
  newdata += "<img src='../../cpictures/RETURN.jpg' width='100' alt='RETURN' /></a>;";
  newdata += "</body></html>";
  document.write(newdata);
  document.close();
  }

