<!--//
function fenster(url) {
	msg=open(url,"NewWindow","toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,height=460,width=600");
}
function call(url) {
	msg=open(url,"NewWindow","toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,height=360,width=500");
}
function available(url) {
	msg=open(url,"NewWindow","toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,height=250,width=400");
}
function reminder(url) {
	msg2=open(url,"NewWindow2","toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,height=250,width=350");
}
function lexikon(url) {
msg=open(url,"NewWindow","toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,height=600,width=510");
}
function bestellung(url) {
msg=open(url,"NewWindow","toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,height=800,width=800");
}
function pioneer(url) {
msg=open(url,"NewWindow","toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,height=800,width=850");
}
function datenschutz(url) {
msg=open(url,"NewWindow","toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,height=700,width=650");
}
function datenschutz_no_buttons(url) {
msg=open(url,"NewWindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,height=700,width=650");
}
function aus()
{
parent.window.close()
}
function agb(url) {
var msg=open(url,"NewWindow","toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=no,height=600,width=900");
msg.focus();
}
function lieferkosten(url) {
msg=open(url,"NewWindow","toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=no,height=600,width=660");
}
function bezahlung(url) {
msg=open(url,"NewWindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,height=400,width=600");
}
function garantie(url) {
msg=open(url,"NewWindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,height=400,width=600");
}
function liefer(url) {
msg=open(url,"NewWindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,height=400,width=650");
}
function finanz(url) {
msg=open(url,"NewWindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,height=500,width=620");
}
function ausland(url) {
msg=open(url,"NewWindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,height=400,width=650");
}
function wie(url) {
msg=open(url,"NewWindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,height=600,width=400");
}

// Standard-Popup
function popup(url,p_name,w,h,s) {
  var popup = window.open(url,p_name,'toolbar=,location=,directories=,status=,menubar=,scrollbars=yes,resizable=,fullscreen=,width='+w+',height='+h);
  popup.focus();
}

//Centered PopUp
function centerPopup(url,p_name,w,h,s) {
  //var w = 500;
  //var height = 300;
  var positionX=((screen.availWidth / 2) - w / 2);
  var positionY=((screen.availHeight / 2) - h / 2);

  var popup = window.open(url,p_name,'toolbar=,location=,directories=,status=,menubar=,scrollbars=,resizable=,fullscreen=,width='+w+',height='+h+',top='+positionY+',left='+positionX+',scrollbars='+s);
  popup.focus();	
  popup.moveTo(positionX,positionY);
  
}

function checkInput(fv,minl){
 // Variablen:
 // fv = String Objekt das auf Länge zu prüfen ist
 // minl = Mindestlänge von fv
 //
 // Benutzung:
 // onSubmit="return checkInput(document.FORMULAR.FELDNAME.value,0);">
 //
 // Beispiele:
 //    Mindestlänge 2 Zeichen 
 //       onSubmit="return checkInput(document.forms[0].suchbegriff.value,2);">
 //    Keine Mindestlänge
 //       onSubmit="return checkInput(document.forms[0].suchbegriff.value,0);">

 fv1=fv.replace(/^[\s]+/g,"");  //entferne Leerzeichen am Begin von fv
 fv2=fv1.replace(/[\s]+$/g,""); //entferne Leerzeichen am Ende von fv 
	if(fv2.length<minl){
		alert("Bitte geben Sie einen Suchbegriff aus\nmindestens " +minl+ " Zeichen ein.\nLeerzeichen am Anfang und Ende werden ignoriert.")
		return false;
		}
		else{return true;
	}
}
//-->

