/* (c) http://webdesign.weisshart.de */
var newWindow="";
function OpenNewWindow(Picture,Breit,Hoch,Alttext) {
   var xsize = Breit+1;
   var ysize = Hoch+25;

   var ScreenWidth = screen.width;
   var ScreenHeight = screen.height;

   var xpos = (ScreenWidth/2)-(xsize/2);
   var ypos = (ScreenHeight/2)-((ysize+50)/2);

   if (!newWindow.closed && newWindow.location) {newWindow.close();}

   var html = ('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"><head><title>Forth Hovercraft Link - '+Alttext+'</title><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" /><style type="text/css">html, body, p, img, a {margin:0px; padding:0px; border:none; font-family: Verdana,Arial,sans-serif; color:#fff; text-align: center;} a:hover {color:#eee;} body {font-size:100.01%; background:#555555;} p {font-size: 0.8em;}</style></head><body onload="focus()"><p><img src="'+Picture+'" alt="'+Alttext+'" width="'+Breit+'" height="'+Hoch+'" /><br /><a href="javascript:self.close()">Close window</a></p></body></html>');

   newWindow=window.open("","Picture","height="+ysize+",width="+xsize+",resizable=yes,top="+ypos+",left="+xpos+"");

   newWindow.document.open("text/html", "replace")
   newWindow.document.write(html)
   newWindow.document.close()

   return false;
}

function toggleQ2(nr) {
   if (nr == "1") {
      for (var i=1; i<9; i++) {
         eval("document.survey.q2_"+i+".disabled=true");
         eval("document.survey.q2_"+i+".checked=false");
      }
   }
   else {
      for (var i=1; i<9; i++) {
         eval("document.survey.q2_"+i+".disabled=false");
      }
   }
}

function toggleQ12(nr) {
   for (var j=1; j<document.survey.q12.length; j++) {
      for (var i=0; i<eval("document.survey.q12_sub"+j+".length"); i++) {
         if (j != nr) {
            eval("document.survey.q12_sub"+j+"["+i+"].disabled=true");
            eval("document.survey.q12_sub"+j+"["+i+"].checked=false");
         }
         else {
            eval("document.survey.q12_sub"+j+"["+i+"].disabled=false");
         }
      }
   }
   if (nr != 0) {
      eval("document.survey.q12_sub"+nr+"[0].checked=true");
   }
}