// copyright: sven meyer, germany
// date: october 10th 2003
// e-mail: webmaster@svenmeyer.net

var popUpWin=0;
function showPicture(url,title,width,height,left,top) {
  if(navigator.javaEnabled()) {
    // Parameteruebergabe an die Funktionsvariablen
    var source=url, name=title, xWin=width, yWin=height, xPos=left, yPos=top;
    // Festlegen der Optionen fuer das zu oeffnende Fenster (inkl. uebergebene Parameter)
    var options	= "resizable=yes,scrolling=no,toolbar=no,directories=no,status=no,left=" + xPos + ",top=" + yPos + ",width=" + xWin + ",height=" + yWin;
    if (popUpWin) { 
		if(!popUpWin.closed) popUpWin.close();
    }
    popUpWin = window.open("", "_blank", options);	// oeffnen des Browserfensters
    if (popUpWin != null) {
      with (popUpWin.document) {
        open()
        write("<html>")
        write("<head>")
        write("<title>" + name + "</title>")
        write("<style>html,body{padding:0;margin:0;}</style>")        
        write("</head>")        
        write("<body")
        write("<img src='" + url + "' width='" + xWin + "' height='" + yWin + "' border='0' alt='" + title + "'>")
        write("</body>")
        write("</html>")         
        close()
      }
    }  
    if (popUpWin.focus) popUpWin.focus();
  }
  else alert("In order to use this function, you have to activate the Java-Script support of your browser!");
}