
// fiene,horn
// javascript basic

// build 0004, 20.04.2007

// realisierung:              
// fiene,horn. Buero fuer Medien und Kommunikation
//             www.fienehorn.de




// funktion: bild-pop-up

// strDateiname			relativ ab dem rootpfad anzugeben ('/verzeichnis/bild.jpg')
// strUeberschrift		einfacher string
// intBreite			breite des angezeigten bildes
// intHoehe				hoehe des angezeigten bildes
// strHintergrund		hintergrundfarbe

function fctPopupImage(strDateiname, strUeberschrift, intBreite, intHoehe, strHintergrund)
{

	// deklarationen
	var objPopup;
	
	// funktion
	objPopup = window.open("", "popupimagefenster", "height=" + (intHoehe + 10) + ", innerHeight=" + (intHoehe + 10) + ", innerWidth=" + (intBreite + 10) + ", left=150, location=no, menubar=no, resizable=no, scrollbars=no, status=no, toolbar=no, top=120, width=" + (intBreite + 10));
	objPopup.document.writeln("<html>");

	objPopup.document.writeln("<head>");
	objPopup.document.writeln("<title>" + strUeberschrift + "</title>");
	objPopup.document.writeln("</head>");

	objPopup.document.writeln("<body style=\"background-color: " + strHintergrund + "; margin: 0px; text-align: center;\">");
	objPopup.document.writeln("<a href=\"javascript:window.close();\"><img alt=\"" + strUeberschrift + "\" src=\"" + strDateiname + "\" style=\"border: 0px; height: " + intHoehe + "px; width: " + intBreite + "px; margin-top: 5px;\"></a>");
	objPopup.document.writeln("</body>");

	objPopup.document.writeln("</html>");
	objPopup.focus();

}

