var KF;
var buch;


function Buchanzeige(url){
        var widt = 750;
        var wi = (screen.availWidth/2)-(widt/2);
        var hi = 0;

        if (navigator.appName == "Microsoft Internet Explorer"){
                        heig = screen.availHeight-150;
                         var sFea = 'width=' + widt + ',height=' + heig + ',scrollbars,left=' + wi + ',top=' + hi + ',resizable=yes,menubar=yes,toolbar=yes,location=yes,status=yes';
                        buch = window.open(url, 'buch', sFea);
                        }
                        else {
                                //alert(navigator.userAgent.indexOf("Netscape6")!="-1");

                        if(navigator.userAgent.indexOf("Netscape6")!="-1"){
                                heig = screen.availHeight-90;
                                }else{
                                heig = screen.availHeight-150;
                                }

                        var sFea = "width=" + widt + ",height=" + heig + ",scrollbars,screenX=" + wi + ",screenY=" + hi + ',resizable=yes,toolbar=yes,location=yes,status=yes';
                        buch = window.open(url, "buch", sFea);
                        }
        buch.focus();
        }

/*function focus(){

	if(window.document.forms[0].elements[0]){window.document.forms[0].elements[0].focus();}

	}*/

function Hilfe(url){
        var widt = 750;
        /*var wi = (screen.availWidth/2)-(widt/2);*/
   	    var wi = (screen.availWidth)-770;
        var hi = 0;
        var heig = 550;

        if (navigator.appName == "Microsoft Internet Explorer"){
                         var sFea = 'width=' + widt + ',height=' + heig + ',scrollbars,left=' + wi + ',top=' + hi + ',resizable=yes,menubar=yes,toolbar=yes,location=yes,status=yes';
                        hilfe = window.open(url, 'hilfe', sFea);
												hilfe.focus();
                        }
                        else {
                        var sFea = "width=" + widt + ",height=" + heig + ",scrollbars,screenX=" + wi + ",screenY=" + hi + ',resizable=yes,toolbar=yes,location=yes,status=yes';
	                      hilfe = window.open(url, 'hilfe', sFea);
												hilfe.focus();
                        }
        }

function Druckfenster(bilddatei){
        var widt = 1;
        var wi = (screen.availWidth/2)-(widt/2);
        var heig = 1;
        var hi = (screen.availHeight/2)-(heig/2);

        if (navigator.appName == "Microsoft Internet Explorer"){
                         var sFea = 'width=' + widt + ',height=' + heig + ',scrollbars=no,left=' + wi + ',top=' + hi + ',resizable=no,menubar=no,toolbar=no,location=no,status=no';
	                       drucken = window.open('drucken.asp?bild='+bilddatei, 'drucken', sFea);
                         } else {
                         var sFea = "width=" + widt + ",height=" + heig + ",scrollbars=no,screenX=" + wi + ",screenY=" + hi + ',resizable=no,menubar=no,toolbar=no,location=no,status=no';
                         drucken = window.open('drucken.asp?bild='+bilddatei, 'drucken', sFea);
                         }
        }

function linkdropdown(){
	if(this.options[this.selectedIndex].value != '')
		{window.location.href = this.options[this.selectedIndex].value}
	}

/*
function formcheck() {
// Prüft, ob die Jahreszahleingabe aus Zahlen besteht
var zahl = document.Expertensuche.JahrVon.value;

for (var i = 0; < zahl.length; i++){
        var abc = zahl.substring(i,i + 1);
        if(abc < "0" || "9" < abc){
                alert("\nBitte im Feld: Jahr(von) nur Zahlen eingeben!");
                document.Expertensuche.JahrVon.select();
                document.Expertensuche.JahrVon.focus();
                return false;
                }
}

var zahl = document.Expertensuche.JahrBis.value;

for (var i = 0; < zahl.length; i++){
        var abc = zahl.substring(i,i + 1);
        if(abc < "0" || "9" < abc){
                alert("\nBitte im Feld: Jahr(bis)nur Zahlen eingeben!");
                document.Expertensuche.JahrVon.select();
                document.Expertensuche.JahrVon.focus();
                return false;
                }
        }
}*/