<!--
function trim(strText) {
    //leading spaces
    while (strText.substring(0,1) == ' ') 
        strText = strText.substring(1, strText.length);

    //trailing spaces
    while (strText.substring(strText.length-1,strText.length) == ' ')
        strText = strText.substring(0, strText.length-1);

   return strText;
}

function chkForm(formul){
 var fill;
 var val;
 for (i=0;i<formul.length;i++){
  formul.elements[i].value = trim(formul.elements[i].value);
  if (formul.elements[i].name.indexOf("chk_") == 0 && !formul.elements[i].value){
   if(!fill) fill=formul.elements[i].name.substr(4);
   else fill = fill + ", "  + formul.elements[i].name.substr(4);
  }
 }
 if (fill) alert("Bitte die Felder " + fill + " ausfüllen!");
 else formul.submit();
}

function popup(a, bild, txt){
 a.href='#';
 a.target='';
 var w = document.body.offsetWidth;
 var e = "px";
 var breite, hoehe;
 var bild1 = new Image();
 function openbild() 
 {
   breite = bild1.width;
   hoehe  = bild1.height;
   var x_ = (w - breite) / 2;
   if (x_ < 0) x_ = 0;
   document.getElementById('oekotronik_popup').style.left = x_+ e;
   document.getElementById('oekotronik_popup').style.width = 26+breite+e;
 }
 bild1.onload = openbild;
 bild1.src    = bild;
 document.getElementById('popup_txt').innerHTML = txt;
 document.getElementById('popup_img').src = bild;
 document.getElementById('oekotronik_popup').style.visibility = 'visible';
}

function setPos(){
 e = "em";
 document.getElementById('Druckversion').style.right = -15+e;
}
//document.onload = setPos;

function getIE6 () {
//|| navigator.userAgent.search(/MSIE 5/) != -1
 if (navigator.userAgent.search(/MSIE 6/) != -1) {
 screenX=0;
 screenY=0;
 document.body.style.width = 1200+"px";
 document.body.style.height = 800+"px";
 var o = document.getElementById('schlussstrich').offsetTop + 242;
 document.getElementById('oekotronik_fuss').style.padding = 0;
 document.getElementById('oekotronik_fuss').style.margin = 0;
 document.getElementById('oekotronik_fuss').style.width = "100%";
 document.getElementById('oekotronik_inhalt').style.height = "100%";
//document.getElementById('oekotronik_fuss').style.position = "absolute";
//document.getElementById('oekotronik_fuss').style.top = o +"px";
//document.getElementById('oekotronik_fuss').style.left = 0 +"px";
// document.getElementById('oekotronik_fuss').style.visibility = 'hidden';
//  window.resizeTo(850, 500);
 }
}

function newsLaden(jahr){
 location.replace('index.dhtml___nav-4_sel_year-'+this.value+'.dhtml');
}

function getVgwort (VGURL) {
 zp = new Image();
 zp.src = VGURL;
}
-->
