function SwitchPage( strForm, strSelect )
{
    strURL = eval( "document." + strForm + "." + strSelect + ".options[document." + strForm + "." + strSelect + ".selectedIndex].value" );
    location = strURL;
}
function PopUpkinder( strURL )
{
    objNewWindow = window.open( "http://www.dkhw.de/aktiv/themen/spielraum/kinderundstadt/anmeldungen/KinderundNatur.html", "popup", "width=576,height=550,scrollbars=yes,menubar=no,status=yes,resizable=yes, left=200, top=100, screenX=200, screenY=100" );
}
function PopUpmaterial( strURL )
{
    objNewWindow = window.open( "http://www.dkhw.de/infomaterial/hinweis.html", "popup", "width=250,height=200,scrollbars=auto,menubar=no,status=yes,resizable=yes, left=200, top=100, screenX=200, screenY=100" );
}
function PopUp( strURL )
{
    objNewWindow = window.open( strURL, "popup", "width=576,height=550,scrollbars=yes,menubar=no,status=yes,resizable=yes, left=200, top=100, screenX=200, screenY=100" );
}

function PopUp1( strURL )
{
    objNewWindow = window.open( strURL, "popup", "width=1010,height=670,scrollbars=auto,menubar=no,status=no,resizable=yes, toolbar=no, left=0, top=0, screenX=0, screenY=0" );
}

function PopUp2( strURL )
{
    objNewWindow = window.open( "../spenden/bildung.html", "popup", "width=270,height=450,scrollbars=auto,menubar=no,status=no,resizable=no, toolbar=no, left=0, top=0, screenX=0, screenY=0" );
}


function genMailURL(name) 
{
      window.open("mailto:"+name+"@"+"dkhw.de");
}


var version = true;
if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion.substring(0,1)) <= 3)) {
     version = false
    }
if ((!top.frames.header) && (version == true)) {
      query = '' + document.location;
      query = query.substring(7);
      qlength=(query.indexOf('/'));
      query = query.substring(qlength);
      if (query=="/nav.php") { query="./main/main.html" }
      top.location="/index.html?a="+query  
   }