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();
}
MM_reloadPage(true);

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function checkAGBOD() {
if(document.artikelSearch.s_agb_id.value.length < 1) {
alert("Bitte bestaetigen Sie die Agb!")
return false;
		}
}

function checkAGB() {
if(document.artikelSearch.s_agb_id.value.length < 1) {
alert("Bitte bestaetigen Sie die Agb!")
return false;
		}
if(document.artikelSearch.s_agb_id.value.length > 0) {
window.location.href = "Warenkorb_no_reg_Ausdruck.php";	
		}
}

function checkAGBReg() {
if(document.artikelSearch.s_agb_id.value.length < 1) {
alert("Bitte bestaetigen Sie die Agb!")
return false;
		}
if(document.artikelSearch.s_agb_id.value.length > 0) {
window.location.href = "Warenkorb_reg_Ausdruck.php";
		}
}

 function CheckAnfrageEing(form) {
 if(form) {
   if (form.von_Name.value <= " "
   || form.von_Email.value <= " ") {
     alert("Bitte Name, E-Mail o. Telefon Nr. eingeben!");
     form.von_Name.focus();
     return false;
    } else {
     return true;
    }
  }
}

function tmt_resizeBy(altez, larg) {
    self.resizeTo(altez, larg);
} 