function show(id)
{
  if (document.getElementById)  
  {
    document.getElementById(id).style.display = 'block'
  }
}

//---------------------------------

function hide(id)
{
  if (document.getElementById)  
  {
    document.getElementById(id).style.display = 'none';
  }
}

//---------------------------------

function showhide(id)
{
  if (document.getElementById)  
  {
    if (document.getElementById(id).style.display != 'block')  document.getElementById(id).style.display = 'block'
    else                                                       document.getElementById(id).style.display = 'none';
  }
}

//---------------------------------

function popup(link, width, height)
{
  var externalWindow;

  externalWindow = window.open(link,"external",'toolbar,location,directories,status,menubar,scrollbars,resizable,left=0,top=0,width='+width+',height='+height);
 // externalWindow.resizeTo(width,height);
  externalWindow.focus();
}

//---------------------------------

function openPhoto(link, width, height)
{
  var photoWindow;

  photoWindow = window.open(link,"photoviewer",'toolbar=0,location=0,directories=0,status,menubar=0,scrollbars=0,resizable=0,left=0,top=0,width='+width+',height='+height);
  photoWindow.resizeTo(width,height);
  photoWindow.focus();
}

//---------------------------------

function newImage(arg) 
{
  if (document.images) 
  {
    rslt = new Image();
    rslt.src = arg;
    return rslt;
  }
}

//---------------------------------

function changeImages() 
{
  if (document.images) 
  {
    for (var i=0; i < changeImages.arguments.length; i+=2) 
    {
      document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
    }
  }
}

//---------------------------------