function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}


function Bestellen(url, string) {
 var x = window.open(url,"AWW_Warenkorb","width=740,height=550,left=0,top=0,scrollbars=yes,status=yes,toolbar=no");
 var z = window.open("warenkorb.php?" + string,"Bestätigung","width=100,height=50,left=750,top=0,scrollbars=no,status=no,toolbar=no");
 }

function Warenkorb(string) {
// var z = window.open("warenkorb.php?" + string,"Warenkorb","innerwidth=100,innerheight=10,left=750,top=0,scrollbars=no,status=no,toolbar=no");
}

function popup(ext_url) {
 var x = window.open(ext_url,"","width=740,height=550,left=0,top=0,scrollbars=yes,status=yes,toolbar=no,resizable=yes");
 x.focus();
 return x;
}

function popup_hilfe(seite) {
 var x = window.open("inc/"+seite,"Info","width=300,height=350,left=200,top=400,scrollbars=yes,status=no,toolbar=no,resizable=yes");
 x.focus();
 return x;
}


function limitInput(input, maxInput) {
    if (input.value.length>maxInput){
        alert("Es können maximal "+maxInput+" Zeichen eingegeben werden!");
        input.value = input.value.substring(0,maxInput);
    } else {
        document.bewertung.output.value = maxInput - input.value.length;
    }
}

function check() {  

  if(document.abo.email.value == ''){alert('Bitte Email angeben!'); document.abo.email.focus(); return false }

}
// Firefox Suchmaschine
function addEngine()
{
  if ((typeof window.sidebar == "object") && (typeof
  window.sidebar.addSearchEngine == "function"))
  {
    
    window.sidebar.addSearchEngine(
      "http://www.aww-brandenburg.de/plugins/awwsearch.src",
      "http://www.aww-brandenburg.de/plugins/awwsearch.gif",
      "Studienbriefe",
      "General");
  }
 
}

function sf() {document.form.aww_suche.focus();
				}
				
