// JavaScript Document

function neuesfenster(w,h,url) {

var einmitten = window.open(url,'New_Window','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h);

einmitten.moveTo(screen.availWidth/2-(w/2),screen.availHeight/2-(h/2));

einmitten.focus()

}

function popUpImg(w,h,img) {
   
   var imgWin = window.open('','New_Window','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h);
   
   with (imgWin.document) {
      open();
      write('<HTML>');
      write(' <HEAD>');
      write(' <title>Produktebild</title>');
      write(' </HEAD>');
      write(' <BODY style="margin: 0px;" onLoad="self.focus();">');
      write(' <a href="" onClick="JavaScript:self.close()">')
      write(' <img src="' + img + '" alt="popUpImage" title="popUpImage" border="0"></a>');
      write(' </BODY>');
      write('</HTML>');
      close();
   }
   
   imgWin.moveTo(screen.availWidth/2-(w/2),screen.availHeight/2-(h/2));

   imgWin.focus()
} 

function change_color (id, klasse) {
	document.getElementById(id).className = klasse;
}
	
function setback_color (id,klasse) {
	document.getElementById(id).className = klasse;
}