function searchOnSubmit(url, w, h) {
  wname='popup';
  var popupForm;
  
  if(document.layers){
    sword = escape(document.search.sword.value);
    stype = escape(document.search.stype.value);
    locationData = escape(document.search.locationData.value);
    scols = escape(document.search.scols.value);
  }else{
    sword = escape(document.search.sword.value);
    stype = escape(document.search.stype.value);
    locationData = escape(document.search.locationData.value);
    scols = escape(document.search.scols.value);
  }
  url = url + '&sword=' + sword + '&stype=' + stype + '&locationData=' + locationData + '$scols=' + scols + '&submit=1';
  popupwin = window.open(url, wname, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+580+',height='+500);
  
  
  
  var i = 0;
  var z = 0;
  
  
  if (document.layers){
    while(popupwin.document.forms.length <1){
      ;
    }
  }else{
    while(popupwin.document.forms.length <1){
      ;
    }
  }
  
  popupForm = popupwin.document.forms[0];
  
  
  if (popupwin.location.href != url){
  	popupwin.location.href = url;
  }
  popupwin.window.focus();
  
  /* hier triit der Fehler auf... (bei Aral-Energie klappt's aber seltsamerweise)
  popupwin.document.forms[0].submit();
  */
  
  /*
  popupForm.submit();
  
    if (document.layers){
    popupwin.document.height = 1000;
  
    popupForm.submit();    
  }else{
    popupForm.submit();
  
  }
  
  
  popupwin.window.focus();
  */
  
}