var transImg = new Image();
transImg.src="sp.gif";
var defaultHeight, defaultWidth;
var image;

function writeEmail(name,dummyparam,domain)
{
  document.write('<a href=\"mailto:' + name + '@' + domain + '\">');
  document.write(name + '@' + domain + '<\/a>');
}
function hideImg(nr)
{
  window.document.images[nr].src=transImg.src;
}

function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function showImage(name,hochformat,widthParam,heightParam)
{
  var width, height;
  
  if (widthParam)
    width=widthParam;
  else if (defaultWidth)
    width=defaultWidth;
  else
    width=640;
    
  if (heightParam)
    height=heightParam;
  else if (defaultHeight)
    height=defaultHeight;
  else
    height=480;
  
  if(hochformat)
  {
    var ddd=height;
    height=width;
    width=ddd;
  }
  
  if ( image && !image.closed ) {
    if ( image.innerWidth && image.innerWidth != width ) {
      image.close();
    }
  }
  image = window.open('imagelarge.html?'+name,'ImageLarge','width='+width+',height='+height+',resizable=yes,toolbar=no,location=no,directories=no,scrollbars=no,status=no,menubar=no');
  return;
}
