// togglediv macht switch von vis nach invis, rsp umgekehrt, num gibt
// an, wieviele id elemente es gibt, flagit ob anzeigen =1 oder hide = 0
		function togglediv(id,flagit) {
      //for (var i=1; i=num; i++)  {
        ctcid='ctc';
        if (flagit=="1"){
  				if (document.all) {
  					document.all[''+id+''].style.visibility = "visible";
                                        document.all[''+ctcid+''].style.visibility = "hidden";
  				}
  				else if (document.getElementById) {
  					document.getElementById(''+id+'').style.visibility = "visible";
                                        document.getElementById(''+ctcid+'').style.visibility = "hidden";
  				}
  			}
  			else if (flagit=="0"){
  				if (document.all) {
  		 			document.all[''+id+''].style.visibility = "hidden";
                                        document.all[''+ctcid+''].style.visibility = "visible";
  					}
  				else if (document.getElementById) {
  					document.getElementById(''+id+'').style.visibility = "hidden";
                                        document.getElementById(''+ctcid+'').style.visibility = "visible";
  				}
  			}
      //}
		}


// togglediv2 macht switch von vis nach invis, rsp umgekehrt, num gibt
// an, wieviele id elemente es gibt, flagit ob anzeigen =1 oder hide = 0
		function togglediv2(id,flagit) {
    if (!(document.captureEvents  && document.documentElement)) {
      /*if (flagit=="1"){
  				if (document.all) {
  					document.all[''+id+'2'].style.zIndex = "21";
  				}
  				else if (document.getElementById) {
  					document.getElementById(''+id+'2').style.zIndex = "21";
  				}
  			}
  			else if (flagit=="0"){
  				if (document.all) {
  		 			document.all[''+id+'2'].style.zIndex = "1";
  					}
  				else if (document.getElementById) {
  					document.getElementById(''+id+'2').style.zIndex = "1";
  				}
  			}*/
        // IE shut up!!
    } else {
    /*
        if (flagit=="1"){
  				if (document.all) {
  					document.all[''+id+''].style.visibility = "visible";
  				}
  				else if (document.getElementById) {
  					document.getElementById(''+id+'').style.visibility = "visible";
  				}
  			}
  			else if (flagit=="0"){
  				if (document.all) {
  		 			document.all[''+id+''].style.visibility = "hidden";
  					}
  				else if (document.getElementById) {
  					document.getElementById(''+id+'').style.visibility = "hidden";
  				}
  			}*/
     }

		}

    function bildfenster(adress, width, height) {
    loc = "./img/img.php?view="+adress;
    width = width + 20;
    height = height +20;
    imgwin = window.open(loc,"Bild","width=" + width + ",height=" + height+",top=100,left=100,screenX=0,screenY=0, toolbar=no, menubar=no, location=no, status=no");
    imgwin.focus();
    imgwin.self=imgwin;
    }


