var obj = null;
var picobj = null;
var piclarge = null;
var width = null;

function changeDetail(objectID, doc)
  {
  doc = doc +".htm";
  obj = document.getElementById(objectID);
  obj.src = doc;
  }

function changePicture(objectID, picture, largepic)
  {
  picobj = document.getElementById(objectID);
  picobj.src = picture;
  if (largepic != null)
    { 
    piclarge = largepic;
    document.getElementById('largepopupimage').style.visibility = "visible";
    }
  else removeLargeLink();
  }

function removeLargeLink()
  {
  document.getElementById('largepopupimage').style.visibility = "hidden";
  }

function showlargepic()
  {
  if (piclarge != null)
    {
    newWindow = window.open("", "newWindow", "left=30,top=250");
    newWindow.document.open();
    newWindow.document.write("<html><title>Click to Close</title><style type='text/css'>img {position: absolute;left: 0px;top: 0px;}</style><script language='JavaScript' type='text/javascript'>function resize() {resizeTo(this.document.lpic.width,this.document.lpic.height+30);}</script><body onLoad='resize()' onClick='self.close()' onBlur='self.close()'><img src='"+piclarge+"'name='lpic'></body></html>");
    newWindow.document.close();
    newWindow.focus();
    }
  }

function indexfocus()
  {
  parent.focus();
  }

