function wechseln (id)
{
   if (document.getElementById(id).className == "normal")
   {
      document.getElementById(id).className = "extra";
   }
   else
   {
      document.getElementById(id).className = "normal";
   }
}

function dolink(url)
{
   location.href=url;
}

function printText ()
{
   var nm = "fsg";
   var at = "@";
   var ad = "goecklingen.de";
   document.write(nm+at+ad);
}

// argument winName darf lein Leerzeichen beinhalten IE fehler
//                  und kein Sonderzeichen Konqueror Fehler ?
//function viewImg(url, winName, width, height) {
//  var opts = "directories=0,height="+height+",width="+width;
//  opts += ",hotkeys=0,location=0,menubar=0,resizable=1,screenX=150,screenY=10";
//  opts += ",left=150,top=10,scrollbars=1,status=1,titlebar=0,toolbar=0";
//  var win = window.open(url,winName,opts);
//  win.focus();
//};

//function insertImage(srck, srcg, pictName, or, wt, ww)
//{
//   document.write('<img src="' + srck + '" alt="' + pictName + '" border="2" ');
//   if (wt > 0 ) { document.write('width="'+wt+'"'); }
//   if ( or == 'center' )  document.write(' align="center"');
//   else if ( or != '' ) document.write(' align="'+or+'" hspace="4" vspace="4"');
//   document.write(' title="Klicken zum Vergr&ouml;&szlig;ern" ');
//   document.write('onclick="viewImg(\''+srcg+'\', \''+pictName+'\','+ww+','+ww+')" >');
//
//}

function viewImg(ImageName, ImageTitle, ImageWidth, ImageHeight)
{
   /******		Allgemeine Variablendeklaration									*/
   var scroll = 'no';
   var SpacingLeft = (screen.availWidth - ImageWidth) / 2;
   var SpacingTop =  (screen.availHeight - ImageHeight) / 2;


   /*****		Aktivieren des Scrollbars und Neuausrichtung		*/
   /*****		falls Bild groesser als Bildschirm ist					*/
   if (SpacingLeft < 0) 
   { 
      SpacingLeft = 0; 
      ImageWidth = screen.availWidth -6; 
      scroll = 1;
   }
   if (SpacingTop < 0) 
   { 
      SpacingTop = 0; 
      ImageHeight = screen.availHeight - 32; 
      scroll = 1;
   }

   /*****		Definition des zu oeffnenden Fensters						*/
   winprops = 'height='+ImageHeight+',width='+ImageWidth+',top='+SpacingTop+',left='+SpacingLeft+',scrollbars='+scroll+',resizable=no';

   /*****		Neues Fenster oeffnen														*/
   win = window.open('', ImageTitle, winprops);
   win.document.open();

   /*****		Folgenden Inhalt im Fenster anzeigen					*/
   win.document.write('<html>\n <head>\n');
   win.document.write('  <title>'+ImageTitle+'</title>\n </head>\n');
   win.document.write(' <body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onClick="window.close()" onBlur="window.close()">\n');	
   win.document.write('  <img src="'+ImageName+'" alt="'+ImageTitle+'" title="'+ImageTitle+'" border="0" >\n');
   win.document.write(' </body>\n</html>\n');

   /*****		Neues Fenster schliessen												*/	
   win.document.close();
   if (parseInt(navigator.appVersion) >= 4) 
   {
      win.window.focus(); 
   }
}

function insertImage(srck, srcg, pictName, or, wt, gw, gh)
{
   document.write('<img src="' + srck + '" alt="' + pictName + '" border="2" ');
   if (wt > 0 ) { document.write('width="'+wt+'"'); }
   if ( or == 'center' )  document.write(' align="center"');
   else if ( or != '' ) document.write(' align="'+or+'" hspace="4" vspace="4"');
   document.write(' title="Klicken zum Vergr&ouml;&szlig;ern" ');
   document.write('onclick="viewImg(\''+srcg+'\', \''+pictName+'\','+gw+','+gh+')" >');

}



