        function openUrl(url) {
 			var win = window.open (url, "Fenster", winPosString(650, 500, "center", "center")
        	 + ",toolbar=no,status=no,scrollbars=yes,resizable=yes,location=no,menubar=yes");
		    win.focus();
	    	return false;
		}
    function zoomImage(url, w, h) {
       // 20 Pixel dazu Rand
       w = w + 20;
      // 20 Pixel dazu Rand, 20 Pixel Fuss, 70 Titel und close
      h = h + 110;
      showImage(url, w, h);
    }

    function showImage (url, w, h)
    {
      var win = window.open (url, "popup", winPosString(w,h,"center", "center") + ",toolbar=no,status=no,scrollbars=yes,resizable=yes,location=no,menubar=no");
      win.focus();
   }

	function winPosString(w, h, hpos, vpos) {
		  var x = 100;
		  var y = 100;
		  w = w + 20;
		  h = h + 20;
		  maxW = 0;
		  maxH = 0;
		  if (screen.availWidth && screen.availHeight) {
			    maxW = screen.availWidth - 24;
    	  		maxH =  screen.availHeight - 24;
		    } else if (screen.width && screen.height) {
      			maxW = screen.width - 24;
			    maxH = screen.height - 24;
	    	} else {
      			maxW = 760;
    	  		maxH = 550;
	    	}
    		w = Math.min(w, maxW);
    		h = Math.min(h, maxH);
	    	if (hpos == "left") {
      			x = 1;
    		} else if (hpos == "right") {
    	  		x = maxW - w;
	    	} else {
      			x = (maxW - w) / 2;
    		}
	    	if (vpos == "top") {
      			y = 1;
    		} else if (vpos == "bottom") {
      		y = maxH - h;
	    	} else {
      			y = (maxH - h) / 2;
    		}
    		return "left=" + x + ",top=" + y + ",width=" + w +",height="+h;
		}

		
    function showDiv(id) {
    	var o = document.getElementById(id);
    	if (o) {
    		o.style.display = "block";
    	}
    }
 
    function hideDiv(id) {
    	var o = document.getElementById(id);
    	if (o) {
    		o.style.display = "none";
    	}
    }
    
    

    function swapimage (id, obj) { 
     if (document.images[id] && document.images[id] != null) {
       window.document.images[id].src = obj.src;
       //window.alert (id + " = " + document.images[id].src + " [" + id.length + "]");
       return true;
     }
     return false;
    }
    function submitVote () {
      var checked = false;
      if (document.forms["vote"].elements) {
        ch = document.forms["vote"].choice;
        for (i = 0; i < ch.length; i++) {
           if (ch[i].checked) {
              checked = true;
           }
        }
      }

      if (checked) {
         return true;
      } else {
         alert ("Bitte markieren Sie eine Antwort");
         return false;
      }
    }

    function openPrintWin(url) {
         var win = window.open(url, "Druckansicht", "menubar=yes,status=no,resizable=yes,scrollbars=yes,width=500,height=600");
         return false;
    }

    
		