function picPopup(_link, _attr) {

	mywindow = window.open("","newWindow",_attr);	
	mywindow.document.open();
	mywindow.document.write('<html><title>Vollbild</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">');
	mywindow.document.write('<img src=\"' + '/' + _link +'\" alt=\"schliessen\" onClick=\"javascript:self.close()\">');
	mywindow.document.write('</body></html>');
	mywindow.document.close();
	mywindow.focus();	

}

/*
 * resize iframe window height
 */


function resize_iframe( element )
{
	try
	{
// alert( 'Browser: ' + navigator.appName + ', scrollHeight: ' + doc.body.scrollHeight + ', offsetHeight: ' + doc.body.offsetHeight );

		switch( navigator.appName )
		{
			case "Microsoft Internet Explorer":
				var minheight = document.getElementById(element.id).style.height;
				var zeichen = minheight.length - 2;
				minheight = minheight.substr(0, zeichen);
				hsize = document.getElementById(element.id).Document.body.scrollHeight;

				if(hsize > minheight)
				{
					document.getElementById(element.id).style.height = (hsize) + 20 + 'px';
				}
				else
				{
					document.getElementById(element.id).style.height = minheight + 'px';
				}
			case "Konqueror":
			case "Safari":
				return;
			case "Netscape":
			case "Opera":
			default:
				var minheight = element.style.height;
				var zeichen = minheight.length - 2;
				minheight = minheight.substr(0, zeichen);
				doc = element.contentDocument.document || element.contentWindow.document;
				hsize = doc.body.scrollHeight;

				if( hsize > 0 && minheight > 0 )
				{
					if(hsize > minheight)
					{
						element.style.height = (hsize) + 'px';
					}
					if(hsize < minheight)
					{
						element.style.height = minheight + 'px';
					}
				}
		}
	}
	catch( e ) { /*	alert( 'Error' ); */ }
}