
function checkParam(){
  if (window.location.search != "") {
    var strParams = window.location.search;
    var strSatzung = "";
    var intCount = 0;
    var intMax = 0;
    
    strParams = strParams.substring(1, strParams.length);
    //wg. IE ;
    strParams = strParams.replace(/%26/, "&");
    
    arrParams = strParams.split("&");
    intMax = arrParams.length;
    
    for (intCount = 0; intCount < intMax; intCount++) {
      arrCheck = arrParams[intCount].split('=');
      if (arrCheck[0].toLowerCase() == "prmstg") {
        strSatzung = arrCheck[1];
        intCount = intMax + 1;
      }
    }
    
    if (strSatzung != "") {
      /*
        strSatzung = "vgbellheim.html";
        strSatzung = "bellheim.html";
        strSatzung = "knittelsheim.html";
        strSatzung = "ottersheim.html";
        strSatzung = "zeiskam.html";
      */
      
      strSatzung = "../vg-bellheim/satzungen/" + strSatzung + ".html";
      window.frames.menu.location.replace("home/menu_rathaus.html");
      window.frames.home.location.replace(strSatzung);
    }
  }
  
  return "";
}

