function fenster(URL1,breite,hoehe,kamera,objektiv,brennweite,zeit,blende,iso,stativ,kabel,spiegel,beleuchtung)

{
/*

Wird von mozilla ignoriert
//Niedrige Auflösung: ganzen Bildschirm ausfüllen 
if (screen.Width == "800" || screen.Width == "1024")
	{
	breite=screen.availWidth-10;
	hoehe=screen.availHeight-30;

	links = 0;
	oben = 0;
	}


//Höhere Auflösung: Bild zentrieren		 
else 
	{	
	links= (screen.width - breite) / 2;
	oben = (screen.height - hoehe) / 2;
	}
*/


breite=screen.availWidth-10;
hoehe=screen.availHeight-30;

links = 0;
oben = 0;



F1=open("","","width="+breite+",height="+hoehe+",top="+oben+",screenY="+oben+",left="+links+",screenX="+links+",scrollbars=yes,resizable=yes")
F1.document.open();
F1.document.write('<html>\n');
F1.document.write('<head>\n');
F1.document.write('<meta http-equiv="Content-Language" content="de">\n');
F1.document.write('<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">\n');
F1.document.write('<link rel="stylesheet" type="text/css" href="style.css">\n');
F1.document.write('<title>Homepage von Sebastian Stumpf</title>\n');
F1.document.write('</head>\n');
F1.document.write('<body link="#C0C0C0" vlink="#C0C0C0" alink="#C0C0C0" text="#FFFFFF" bgcolor="#333333">\n');
F1.document.write('<div align="center">\n');
F1.document.write('  <center>\n');
F1.document.write('<table border="0" cellpadding="1" cellspacing="0" bgcolor="#000000">\n');
F1.document.write('    <tr>\n');
F1.document.write('      <td width="100%">\n');
F1.document.write('      <table border="0" cellpadding="15" cellspacing="0" bgcolor="#FFFFFF">\n');
F1.document.write('        <tr>\n');
F1.document.write('          <td width="100%">\n');
F1.document.write('             <table border="0" cellpadding="1" cellspacing="0" bgcolor="#000000">\n');
F1.document.write('               <tr>\n');
F1.document.write('                 <td width="100%">\n');
F1.document.write('                    <a href="javascript:self.close()" title="Fenster schließen"><img src="'+URL1+'"></a></td></tr>\n');
F1.document.write('             </table>\n');        
F1.document.write('	     </td></tr>\n');
F1.document.write('      </table>\n');
F1.document.write('      </td>\n');
F1.document.write('    </tr>\n');
F1.document.write('  </table>\n');
F1.document.write('  </center>\n');
F1.document.write('<font face="Verdana" size="1">&copy; Sebastian Stumpf</font>\n');
F1.document.write('</div><br><br>\n');




//EXIF Info
if(kamera == 1)
	{
	kamera = "Canon EOS 10D";
	brennweiteKB = Math.round(brennweite * 1.6);
	}
else if (kamera == 2)
	{
	kamera = "Minolta Dimage 7";
	brennweiteKB = Math.round(brennweite * 3.9);
	}
else if (kamera == 3)
	{
	kamera = "Canon Powershot S30";
	brennweiteKB = Math.round(brennweite * 4.9);
	}
else if (kamera == 4)
	{
	kamera = "Minolta 7000";
	brennweite = "?";
	brennweiteKB = brennweite;
	}

else	{
	kamera = "k.A.";
	brennweiteKB = "k.A.";
	brennweite = "k.A.";
	}


if(objektiv == 1)
	objektiv = "Sigma 70-200/2.8 EX APO HSM";
else if (objektiv == 2)
	objektiv = "Canon 300/4 EF L IS USM";
else if (objektiv == 3)
	objektiv = "Canon 50/1.8 EF II";
else if (objektiv == 4)
	objektiv = "Canon 28-70/2.8 EF L USM";
else if (objektiv == 5)
	objektiv = "Canon 17-40/4 EF L USM";
else if (objektiv == 6)
	objektiv = "Canon 100/2.8 EF USM Macro";
else if (objektiv == 7)
	objektiv = "Canon 100/2.8 EF USM Macro<br>Kenko PRO 300 2x";
else if (objektiv == 8)
	objektiv = "Sigma 70-200/2.8 EX APO HSM<br>Kenko PRO 300 2x";
else if (objektiv == 9)
	objektiv = "Canon 300/4 EF L USM IS<br>Kenko PRO 300 2x";
else if (objektiv == 10)
	objektiv = "Canon 28-135/3.5-5.6 EF IS USM";
else if (objektiv == 11)
	objektiv = "Canon 400/2.8 EF L IS USM";
else if (objektiv == 12)
	objektiv = "Canon 70-200/2.8 EF L USM + Zwischenring";
else if (objektiv == 13)
	objektiv = "Canon 100/2.8 EF USM Macro + Canon 50/1.8 EF II in Retrostellung";
else if (objektiv == 14)
	objektiv = "Canon MP-E 65/2.8 1-5x";
else if (objektiv == 15)
	objektiv = "Canon 70-200/2.8 L IS USM";
else if (objektiv == 16)
	objektiv = "Canon 70-200/2.8 L IS USM<br>Kenko PRO 300 2x";
else if (objektiv == 17)
	objektiv = "Canon 70-200/2.8 L IS USM<br>Canon Extender 1.4x";
else if (objektiv == 18)
	objektiv = "Canon 300/4 EF L USM IS<br>Canon Extender 1.4x";
else 	
	objektiv = "k.A.";

	

if(stativ == 0)
	stativ = "freihand";
else if (stativ == 1)
	stativ = "Manfrotto 055 SSB <br>Manfrotto 410 Junior Geared Head";
else if (stativ == 2)
	stativ = "Vanguard VT-950";
else if (stativ == 3)
	stativ = "Mini Alustativ";
else if (stativ == 4)
	stativ = "Ja";
else if (stativ == 5)
	stativ = "Manfrotto 681B<br>Manfrotto 234RC";
else
	stativ = "k.A.";

	

if(spiegel == 0)
	spiegel = "nein";

else
	spiegel = "ja";

	
if(kabel == 0)
	kabel = "nein";
else
	kabel = "ja";


if(typeof beleuchtung == "undefined" || beleuchtung == 0)
	beleuchtung = "Umgebungslicht";
else if (beleuchtung == 1)
	beleuchtung = "Canon Speedlite 550EX<br>als Aufhellblitz";
else if (beleuchtung == 2)
	beleuchtung = "Canon Speedlite 550EX<br>als primäre Lichtquelle";
else if (beleuchtung == 3)
	beleuchtung = "Baustrahler 500 Watt";
else if (beleuchtung == 4)
	beleuchtung = "Baustrahler 500 Watt<br>Diffusor";
else if (beleuchtung == 5)
	beleuchtung = "Umgebungslicht<br>goldener Reflektor";
else if (beleuchtung == 6)
	beleuchtung = "Baustrahler 500 Watt<br>Schreibtischlampe"; 
else if (beleuchtung == 7)
	beleuchtung = "Canon MT-24Ex";



F1.document.write('<div align="center">\n');
F1.document.write('  <center>\n');
F1.document.write('  <table class="EXIF">\n');
F1.document.write('    <tr>\n');
F1.document.write('      <td class="EXIFhead">Kamera</td>\n');
F1.document.write('      <td class="EXIFdesc">'+kamera+'</td>\n');
F1.document.write('    </tr>\n');
F1.document.write('    <tr>\n');
F1.document.write('      <td class="EXIFhead">Objektiv</td>\n');
F1.document.write('      <td class="EXIFdesc">'+objektiv+'</td>\n');
F1.document.write('    </tr>\n');
F1.document.write('    <tr>\n');
F1.document.write('      <td class="EXIFhead">Brennweite</td>\n');
F1.document.write('      <td class="EXIFdesc">'+brennweite+'mm (ca. '+brennweiteKB+'mm KB)</td>\n');
F1.document.write('    </tr>\n');
F1.document.write('     <tr>\n');
F1.document.write('      <td class="EXIFhead">Belichtungszeit</td>\n');
F1.document.write('      <td class="EXIFdesc">'+zeit+'</td>\n');
F1.document.write('    </tr>\n');
F1.document.write('     <tr>\n');
F1.document.write('      <td class="EXIFhead">Blende</td>\n');
F1.document.write('      <td class="EXIFdesc">'+blende+'</td>\n');
F1.document.write('    </tr>\n');
F1.document.write('     </tr>\n');
F1.document.write('     <tr>\n');
F1.document.write('      <td class="EXIFhead">ISO</td>\n');
F1.document.write('      <td class="EXIFdesc">'+iso+'</td>\n');
F1.document.write('    </tr>\n');
F1.document.write('      <tr>\n');
F1.document.write('      <td class="EXIFhead">Beleuchtung</td>\n');
F1.document.write('      <td class="EXIFdesc">'+beleuchtung+'</td>\n');
F1.document.write('    </tr>\n');
F1.document.write('      <tr>\n');
F1.document.write('      <td class="EXIFhead">Stativ</td>\n');
F1.document.write('      <td class="EXIFdesc">'+stativ+'</td>\n');
F1.document.write('    </tr>\n');
F1.document.write('      <tr>\n');
F1.document.write('      <td class="EXIFhead">Kabelauslöser</td>\n');
F1.document.write('      <td class="EXIFdesc">'+kabel+'</td>\n');
F1.document.write('    </tr>\n');
F1.document.write('      <tr>\n');
F1.document.write('      <td class="EXIFhead">Spiegelvorauslösung</td>\n');
F1.document.write('      <td class="EXIFdesc">'+spiegel+'</td>\n');
F1.document.write('    </tr>\n');
F1.document.write('  </table>\n');
F1.document.write('  </center>\n');
F1.document.write('</div>\n');

F1.document.write('</body>\n');
F1.document.write('</html>\n');
F1.document.close();
}




function openWindow(url) 
	{
	breite=screen.availWidth-10;
	hoehe=screen.availHeight-30;

	links = 0;
	oben = 0;
		
	fenster=window.open(url, "window", "width="+breite+",height="+hoehe+",top="+oben+",screenY="+oben+",left="+links+",screenX="+links+",scrollbars=yes,resizable=yes");
	fenster.focus();
	}

	
function generatetmbURL()
	{
	var picture_URL = document.pictureinfo.picture_Path.value;
	var backslashpos = picture_URL.indexOf('\\images') + 1;
	
	picture_URL = picture_URL.substr(backslashpos, picture_URL.length);   //get path at abgestumpft.de
	var t = /\\/g;
	picture_URL = picture_URL.replace(t, '/');	//replace \ with /
	
	var imagestart = 0;
	
	while(picture_URL.indexOf('/', imagestart + 1) != -1)
		imagestart = picture_URL.indexOf('/', imagestart + 1);
	
	var tmb_URL = picture_URL.substr(0, imagestart + 1) + 'tmb_' + picture_URL.substr(imagestart + 1, picture_URL.length);	
	
	document.pictureinfo.picture_URL.value = picture_URL;		
	document.pictureinfo.tmb_URL.value = tmb_URL;
	}
	
function selectLens()
	{
	var lensID = document.pictureinfo.fk_lens_ID.value;	
	
	switch(lensID)
		{
		//Sigma 70-200
		case '1':
		document.pictureinfo.focal_length.value = '200';
		document.pictureinfo.aperture.value = '2.8';
		break;
		
		//Canon 300
		case '2':
		document.pictureinfo.focal_length.value = '300';
		document.pictureinfo.aperture.value = '4';
		break;
		
		//Canon 50
		case '3':
		document.pictureinfo.focal_length.value = '50';
		document.pictureinfo.aperture.value = '1.8';
		break;
		
		//Canon 28-70
		case '4':
		document.pictureinfo.focal_length.value = '70';
		document.pictureinfo.aperture.value = '2.8';
		break;
		
		//Canon 17-40
		case '5':
		document.pictureinfo.focal_length.value = '17';
		document.pictureinfo.aperture.value = '4';
		break;
		
		//Canon 100 makro
		case '6':
		document.pictureinfo.focal_length.value = '100';
		document.pictureinfo.aperture.value = '2.8';
		break;
		
		//Canon 100 makro + kenko 2x
		case '7':
		document.pictureinfo.focal_length.value = '200';
		document.pictureinfo.aperture.value = '5.6';
		break;
		
		//Sigma 70-200 + kenko 2x
		case '8':
		document.pictureinfo.focal_length.value = '400';
		document.pictureinfo.aperture.value = '5.6';
		break;
		
		//Canon 300 + Kenko 2x
		case '9':
		document.pictureinfo.focal_length.value = '600';
		document.pictureinfo.aperture.value = '8';		
		break;
		
		//Canon 28-135
		case '10':
		document.pictureinfo.focal_length.value = '28';
		document.pictureinfo.aperture.value = '5.6';
		break;
		
		//Canon 400
		case '11':
		document.pictureinfo.focal_length.value = '400';
		document.pictureinfo.aperture.value = '2.8';
		break;
		
		//Canon 70 -200 + zwischenring
		case '12':
		document.pictureinfo.focal_length.value = '200';
		document.pictureinfo.aperture.value = '2.8';
		break;
		
		//Canon 100 Makro + 50 retro
		case '13':
		document.pictureinfo.focal_length.value = '100';
		document.pictureinfo.aperture.value = '2.8';
		break;
		
		//Canon 64 MPE
		case '14':
		document.pictureinfo.focal_length.value = '65';
		document.pictureinfo.aperture.value = '11';
		break;
		
		//Canon 70-200 IS
		case '15':
		document.pictureinfo.focal_length.value = '200';
		document.pictureinfo.aperture.value = '2.8';
		break;
		
		//Canon 70-200 + kenko 2x
		case '16':
		document.pictureinfo.focal_length.value = '400';
		document.pictureinfo.aperture.value = '5.6';
		break;
		
		//Canon 70-200 + 1,4x
		case '17':
		document.pictureinfo.focal_length.value = '280';
		document.pictureinfo.aperture.value = '4';
		break;
		
		//Canon 300 + 1,4x
		case '18':
		document.pictureinfo.focal_length.value = '420';
		document.pictureinfo.aperture.value = '5.6';
		break;
		
		
		default:
		document.pictureinfo.focal_length.value = '200';
		document.pictureinfo.aperture.value = '2.8';
		}
	}