
//-----------------------------------------------------------------------------
// aDIS/BMS OPAC Funktionen
// © by |a|S|tec| GmbH München und Berlin, http://www.astec.de, AMG 20070314
//
//-----------------------------------------------------------------------------
{
var version         = 5;                //aDIS-Serverversion s.a.regpfad
var servicename		= "w3_p"             
var httpd         = "";
var syskl			= "LS";
var kdid			= "stabi"
var crtbib			= "";	
var bezirk			= "none"	
var maxausl			= 30;
var maxtreffer		= 100;
var cgistr          = "/cgi-bin/aDISCGI/";
if(httpd == "ap2")
    cgistr          = "/cgi-bin/aDISCGI.exe/";
var cgistring		=  cgistr + servicename;
var pfad			= "/lib/adis.htm";
var regpfad			= "/lib/rgmain.htm";
var regpfad2		= "/lib/adisrg.htm";
var verbund			= "n";
var browser			= 0;
var selv2			= new Array("leer");
var batchbeg		= 0;
var batchend		= 0;
var batchsize		= 20;
var xb2r          =new Array(parent.batchsize);
var doubleorder		= false;
var kifrmnm         = " ";
var gifrmnm         = " ";
var ctrl1		    = " ";
var ctrl2		    = " ";
var ctrlk3		    = " ";
var ctrlb1          = " ";
var wktnr           = new Array();
var wktnm           = new Array();
var prolurl			="";
var reurl			="";
var SLSTRZ			= "";
var machost			= "";
var nrblk			= "";
var rgpgno			= 0; 
var ctrlv1	="<tr><!--td>&nbsp;</td--><td class=\"button\">&nbsp;</td><td class=\"button\" align=\"center\"><a class=\"button\" onMouseOut=\"self.status=''\" onMouseOver=\"self.status='Zum Anfang der Trefferliste'; return true\" href=\"javascript:parent.gesamtinfo('first')\"><img src=\"/images/btn_doppelpfeil_zurueck.gif\" alt=\"Zum Anfang der Trefferliste\" width=\"22\" height=\"18\" border=\"0\"></a> <a class=\"button\" onMouseOut=\"self.status=''\" onMouseOver=\"self.status='Eine Seite zurück'; return true\" href=\"javascript:parent.gesamtinfo('prev')\"><img src=\"/images/pfeil_suche_links.gif\" alt=\"Eine Seite zurück\"  border=\"0\"></a> <a class=\"button\" onMouseOut=\"self.status=''\" onMouseOver=\"self.status='Eine Seite vor'; return true\" href=\"javascript:parent.gesamtinfo('next')\">&nbsp;&nbsp;<img src=\"/images/pfeil_suche_rechts.gif\" alt=\"Eine Seite vor\"  border=\"0\"></a> <a class=\"button\" onMouseOut=\"self.status=''\" onMouseOver=\"self.status='Zum Ende der Trefferliste'; return true\" href=\"javascript:parent.gesamtinfo('last')\"><img src=\"/images/btn_doppelpfeil_weiter.gif\" alt=\"Zum Ende der Trefferliste\" width=\"21\" height=\"18\" border=\"0\"></a></td></tr><tr><!--td>&nbsp;</td--><td class=\"button\"><a class=\"button\" href=\"javascript:parent.back2ki(anzzie)\"><img src=\"/images/pfeil_suche_links.gif\" alt=\"Zurück zur Trefferliste\"  border=\"0\"></a></td><td class=\"button\">&nbsp;<a class=\"button\" onMouseOut=\"self.status=''\" onMouseOver=\"self.status='Zurück zur Trefferliste'; return true\" href=\"javascript:parent.back2ki(anzzie)\">Zur&uuml;ck zur Trefferliste</a></td></tr>";
//Netzwandercontrols <tr><td>&nbsp;</td><td class=\"button\"><a href=\"javascript: parent.netzwandern(parent.adisinfo.nwactiveindex)\" onmouseout=\"self.status=''\" onmouseover=\"self.status='Verknüpfte Informationen'; return true\"><img src=\"/images/pfeil_suche_rechts.gif\" alt=\"Verknüpfte Informationen\"  border=\"0\"></a></td><td class=\"button\">&nbsp;<a class=\"button\" href=\"javascript: parent.netzwandern(parent.adisinfo.nwactiveindex)\" onmouseout=\"self.status=''\" onmouseover=\"self.status='Verknüpfte Informationen'; return true\">Verkn&uuml;pfte Informationen</a></td></tr>";
var ctrlk1		="<tr><!--td>&nbsp;</td--><td class=\"button\" align=center><a href=\"javascript: parent.gesamtinfo('first')\" onmouseout=\"self.status=''\" onmouseover=\"self.status='Vollanzeige'; return true\"><img src=\"/images/pfeil_suche_rechts.gif\" alt=\"Vollanzeige\"  border=\"0\"></a></td><td class=\"button\"><a class=\"button\" href=\"javascript: parent.gesamtinfo('first')\" onmouseout=\"self.status=''\" onmouseover=\"self.status='Vollanzeige'; return true\">Vollanzeige</a></td></tr><tr><!--td>&nbsp;</td--><td class=\"button\">&nbsp;</td><td class=\"button\" align=\"center\"><a href=\"javascript:parent.getbatch('first')\" onmouseout=\"self.status=''\" onmouseover=\"self.status='Anfang der Liste'; return true\"><img src=\"/images/btn_doppelpfeil_zurueck.gif\" alt=\"Anfang der Liste\" width=\"22\" height=\"18\" border=\"0\"></a> <a href=\"javascript:parent.getbatch('prev')\" onmouseout=\"self.status=''\" onmouseover=\"self.status='Eine Seite zurück'; return true\"><img src=\"/images/pfeil_suche_links.gif\" alt=\"Eine Seite zurück\"  border=\"0\"></a> <a href=\"javascript:parent.getbatch('next')\" onmouseout=\"self.status=''\" onmouseover=\"self.status='Eine Seite vor'; return true\">&nbsp;&nbsp;<img src=\"/images/pfeil_suche_rechts.gif\" alt=\"Eine Seite vor\"  border=\"0\"></a> <a href=\"javascript:parent.getbatch('last')\" onmouseout=\"self.status=''\" onmouseover=\"self.status='Ende der Liste'; return true\"><img src=\"/images/btn_doppelpfeil_weiter.gif\" alt=\"Ende der Liste\" width=\"22\" height=\"18\" border=\"0\"></a></td></tr>";
var ctrlv2	= "";
//var ctrlv2	= "<tr><td>&nbsp;</td><td class=\"button\"><a href=\"javascript:parent.switchformat('BLDAKI');\" onmouseout=\"self.status=''\" onmouseover=\"self.status='Zitierform'; return true\"><img src=\"/images/pfeil_suche_rechts.gif\" alt=\"Zitierform\"  border=\"0\"></a></td><td class=\"button\">&nbsp;<a class=\"button\" href=\"javascript:parent.switchformat('BLDAKI');\" onmouseout=\"self.status=''\" onmouseover=\"self.status='Zitierform'; return true\"\">Zitierform</a></td></tr>";
var ctrlv2a = "";
//var ctrlv2a	= "<tr><!--td>&nbsp;</td--><td class=\"button\"><a href=\"javascript:parent.switchformat('BLDAK1')\"><img src=\"/images/pfeil_suche_rechts.gif\" alt=\"Standardform\"  border=\"0\"></a></td><td class=\"button\">&nbsp;<a class=\"button\" href=\"javascript:parent.switchformat('BLDAK1')\">Standardform</a></font></strong></td></tr>";
var ctrlk3a		= "<tr><!--td>&nbsp;</td--><td class\=\"button\"><a href\=\"javascript:parent.treffermerk('bib',vorbe)\" onmouseout=\"self.status=''\" onmouseover=\"self.status='Treffer in Rechercheliste aufnehmen'; return true\"><img src\=\"/images/pfeil_suche_rechts.gif\" alt\=\"Treffer in Rechercheliste aufnehmen\" border\=\"0\"></a></td><td class\=\"button\">&nbsp;<a class=\"button\" href\=\"javascript:parent.treffermerk('bib',vorbe)\" onmouseout=\"self.status=''\" onmouseover=\"self.status='Treffer in Rechercheliste aufnehmen'; return true\">Treffer in Rechercheliste aufnehmen</a></td></tr>";
//var ctrlk3a = "";
var ctrlk4a		= "<tr><!--td>&nbsp;</td--><td class=\"button\"><a class=\"button\" href=\"javascript:parent.treffermerk('order',vorbe)\" onMouseOut=\"self.status=''\" onMouseOver=\"self.status='In die Bestellliste aufnehmen.'; return true\"><img src=\"/images/pfeilo.gif\" alt=\"In die Bestellliste aufnehmen\"  border=\"0\"></a><td class=\"button\"><a class=\"button\" href=\"javascript:parent.treffermerk('order',vorbe)\" onMouseOut=\"self.status=''\" onMouseOver=\"self.status='In die Bestellliste aufnehmen'; return true\">&nbsp;In die Bestellliste aufnehmen</a></td></td></tr>";
var ctrlk4b		= "<tr><!--td>&nbsp;</td--><td class=\"button\"><a class=\"button\" href=\"javascript:parent.getitems(crntisn,adisdb)\" onMouseOut=\"self.status=''\" onMouseOver=\"self.status='Alle Exemplare anzeigen.'; return true\"><img src=\"/images/pfeil_suche_rechts.gif\" alt=\"Alle Exemplare anzeigen\"  border=\"0\"></a><td class=\"button\"><a class=\"button\" href=\"javascript:parent.getitems(crntisn,adisdb)\" onMouseOut=\"self.status=''\" onMouseOver=\"self.status='Alle Exemplare anzeigen'; return true\">&nbsp;<script type=\"text/javascript\" language=\"JavaScript\">document.writeln(\"Weitere \" + exanz + \" Exemplare im Leihverkehr\");</script></a></td></td></tr>";
var orderpage1 =	"<!doctype html public \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\"><html><head><META HTTP-EQUIV=\"Expires\" CONTENT=\"0\"><!--aDIS/BMS OPAC-Bestellung © by |a|S|tec| GmbH München und Berlin, http://www.astec.de 5/2000 --><link rel=\"stylesheet\" type=\"text/css\" href=\"/lib/main.css\" title=\"Style Sheet\"><title>aDIS/BMS Dienste</title></head>";
var ctrlblm		="<form name=\"x\" action=\"\" onSubmit=\"javascript:return false;\"><table width=\"70%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"LEFT\" valign=\"BOTTOM\" nowrap><tr><td class=\"button\"><a href=\"javascript:opener.parent.orderend()\" class=\"button\" OnMouseOut=\"opener.status=''\" OnMouseOver=\"opener.status='Klicken Sie hier, um die Bestellung zu bestätigen.'; return true\"> OK </a></td><td class=\"button\"><a href=\"javascript:opener.parent.repeatorder()\" class=\"button\" OnMouseOut=\"opener.status=''\" OnMouseOver=\"opener.status='Zurück.'; return true\"> Zur&uuml;ck </a></td></tr></table></form>";
//<td class=\"button\"><a href=\"javascript:opener.parent.druck()\" class=\"button\" onMouseOut=\"opener.status=''\" onMouseOver=\"opener.status='Klicken Sie hier, um zu drucken.'; return true\"> Drucken </a></td></tr></table></form>";
var ctrlblv		="<form name=\"x\" action=\"\" onSubmit=\"javascript:return false;\"><table width=\"70%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"LEFT\" valign=\"BOTTOM\" nowrap><tr><td>&nbsp;</td><td class=\"button\"><a href=\"javascript:opener.parent.closeovl()\" class=\"button\" onMouseOut=\"opener.status=''\" onMouseOver=\"opener.status='Klicken Sie hier, um die Bestellung zu bestätigen.'; return true\">OK</a></td><td class=\"button\"><a href=\"javascript:opener.parent.resetorderlist('ja')\" class=\"button\" onMouseOut=\"opener.status=''\" onMouseOver=\"opener.status='Klicken Sie hier, um die Bestellung abzubrechen.'; return true\">Abbrechen</a></td></tr></table></form>";
var ctrlblb     ="<form name=\"x\" action=\"\" onSubmit=\"javascript:return false;\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"LEFT\" valign=\"BOTTOM\" nowrap><tr><td class=\"button\"><a href=\"javascript:opener.parent.ovlbk()\" class=\"button\" OnMouseOut=\"opener.status=''\" OnMouseOver=\"opener.status='Zurück'; return true\">Zur&uuml;ck</a></td><td class=\"button\">&nbsp;</td><td class=\"button\"><a href=\"javascript:opener.parent.druck()\" class=\"button\" onMouseOut=\"opener.status=''\" onMouseOver=\"opener.status='Klicken Sie hier, um das Benutzerkonto zu drucken.'; return true\">Drucken &nbsp;</a></td><td class=\"button\"><a href=\"javascript:opener.parent.closeovl()\" class=\"buttonb\" onMouseOut=\"opener.status=''\" onMouseOver=\"opener.status='Klicken Sie hier, um das Fenster zu schliessen.'; return true\">OK</a></td></tr></table>";
}

var trefferlist = new Array(maxtreffer)
for(x=0; x< maxtreffer; x++)
	{
	trefferlist[x] = new Array(2);
	trefferlist[x][0] = "0";
	trefferlist[x][1] = "0"; 
	}
var orderlist = new Array(maxausl)
for(x=0; x< maxausl; x++)
	{
	orderlist[x] = new Array(4);
	orderlist[x][0] = "0";
	orderlist[x][1] = "0";
	orderlist[x][2] = "0";
	orderlist[x][3] = "0";
	}
var giisns;
function initgiisns(anzzie,suerg,adisdb,a0001)
{
parent.giisns = new Array(anzzie);
for(x=0; x< parent.giisns.length; x++)
    {
    parent.giisns[x]    = new Array(1);
    parent.giisns[x][0] = "0"; 
    parent.giisns[x][1] = "0"; 
    }
if(suerg == "E")
    {
    parent.giisns[0][0] = a0001;
    parent.giisns[0][1] = adisdb;
    }
for(x=0;x<parent.batchsize;x++) {
  parent.xb2r[x]=-1;
} 
}
var nwisns;
function initnwisns(formlaenge)
{
if(formlaenge == 0)
    formlaenge++;
parent.nwisns = new Array(formlaenge);
for(x=0; x< parent.nwisns.length; x++)
    {
    parent.nwisns[x]    = new Array(1);
    parent.nwisns[x][0] = "0"; 
    parent.nwisns[x][1] = "0"; 
    }
parent.adisinfo.nwactiveindex = 0;
}

var zerodbl = new Array()
for(x=0; x< zerodbl.length; x++)
    {
    zerodbl[x]   = new Array(1)
    zerodbl[x][0] = "0"; 
    zerodbl[x][1] = "0";
    }
var zero = new Array();

function resetgiisns()
{
parent.giisns	= parent.zerodbl;
parent.selv2	= parent.zero;	
adisinfo.currentki = "";
}
function resetnwisns()
{
parent.nwisns	= parent.zerodbl;
//parent.adisinfo.nwactiveindex = 0;
}

//-----------------------------------------------------------------------------
adisinfo = new regstat("nein", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "","","");

//-----------------------------------------------------------------------------
function regstat
(
status,			// Status Registermaske
wwrgkz,			// Registerkennzeichen
regtit,			// Registerbezeichnung
regbeg,			// Aufsatzpunkt Register
regend,			// Endpunkt Register
selind,			// selektierter Index Register
gotit,			// Status bei Regiterübernahmen
such1,			// Teilstring cgi
such2,			// Teilstring cgi
selection,		// Registerauswahl
fieldname,		// aDIS Feldname
adisdb,			// aDIS Datenbestand
giactiveindex,	// Aktiver Index Gesamtinfo
nwactiveindex,	// Aktiver Index Netzwandern
currentisn,		// aktuelle Satznummer 
currentki,		// aktuelle Kurzinfo
currentgi,		// aktuelle Gesamtinfo
currenttitreg,	// aktueller Titel
prolongstat,	// Status Prolongbox Register
currentwadbez,	// Bezirksname
currentwvben1,	// Bezirksnummer
currentwlbn,    // Alle Bibliotheken 
currentwlbb,     // Alle Sigel
currentwlbne,    // Alle Express-Bibliotheken 
currentwlbbe,     // Alle Express-Sigel
currentformat   // Gesamtinfo/Kurzinfo
)

{
this.status		 	= status;
this.wwrgkz 		= wwrgkz;
this.regtit		 	= regtit;
this.regbeg 		= regbeg;
this.regend 		= regend;
this.selind 		= selind;
this.gotit 			= gotit;
this.such1 			= such1;
this.such2 			= such2;
this.selection 		= selection;
this.fieldname		= fieldname;
this.adisdb			= adisdb;
this.giactiveindex	= giactiveindex;
this.nwactiveindex	= nwactiveindex;
this.currentisn		= currentisn;
this.currentki		= currentki;
this.currentgi		= currentgi;
this.currenttitreg	= currenttitreg;
this.prolongstat	= prolongstat;
this.currentwadbez	= currentwadbez;
this.currentwvben1	= currentwvben1;
this.currentwlbn    = currentwlbn;
this.currentwlbb    = currentwlbb;
this.currentwlbne   = currentwlbne;
this.currentwlbbe   = currentwlbbe;
this.currentformat  = currentformat;
}

//-----------------------------------------------------------------------------
if((navigator.userAgent.indexOf("Mozilla/4") != -1) ||
   (navigator.userAgent.indexOf("Mozilla/5") != -1) ||
   (navigator.userAgent.indexOf("Mozilla/6") != -1)) 
   	browser = 1;
if(navigator.userAgent.indexOf("AOL") != -1)
	browser = 2;
if(((navigator.userAgent.indexOf("Mac") != -1) && (navigator.userAgent.indexOf("MSIE 5") != -1)) || ((navigator.userAgent.indexOf("Opera/6") != -1)))
	browser = 3;
if(browser < 1)
	alert("Dieser OPAC ist für Netscape oder MS Internet Explorer ab der Version 4, icab 2.71  und Opera 6 optimiert.");
if(browser == 2)
	alert("Bei Verwendung von Browsern, die durch AOL modifiziert wurden, kann die volle Funktionalität des OPACs nicht garantiert werden.");
if(browser == 3)
	{
	if(document.location.port!="")
		machost  = document.location.protocol + "\/\/" + document.location.hostname + ":" + document.location.port;
	if(document.location.port=="")
		machost  = document.location.protocol + "\/\/" + document.location.hostname;
	}


//-----------------------------------------------------------------------------
function gehbeiseit(wo)
{
parent.stopscroll = 1;
parent.frames[1].history.go(wo);
}

//-----------------------------------------------------------------------------
function go2(url1,target1,url2,target2)
{
parent.stopscroll = 1;
regout();
if(target1 == "main")
	parent.frames[1].location.href = url1;
if(target1 == "function")
	parent.frames[0].location.href = url1;
if(target1 == "_top")
	window.location.href = url1;
if(target2 == "main")
	parent.frames[1].location.href = url2;
if(target2 == "function")
	parent.frames[0].location.href = url2;
if(target2 == "_top")
	window.location.href = url2;
}

//-----------------------------------------------------------------------------
function setfocus(which,action)
{
if(action== "reset")
	parent.frames[1].document.forms[0].reset();
parent.frames[1].document.forms[0].elements[which].focus();
parent.frames[1].document.forms[0].elements[which].select();
}

//-----------------------------------------------------------------------------
function help(key,adisdb)
{
var url = "", nulls = new String("00000000");
key = nulls.substr(1, 8 - key.length) + key;
url = cgistring + pfad + "?ADISDB=" + adisdb + "&WEB=JA&ADISOI=" + key;
helpwindow = window.open (url, "help", "scrollbars=yes,menubar=no,status=no,width=640,height=450");
}

//-----------------------------------------------------------------------------
function testjahr(eingabe)
{
var fehler	= false;
var pruefmenge = new Array("1","2","3","4","5","6","7","8","9","0","-","*","x","X")
if(parent.frames[1].document.forms[0].NUMMES.value != eingabe)
	pruefmenge = pruefmenge.slice(0,10);
for(var k=0; k < eingabe.length; k++)
	{
	if(fehler == true)
		break;
	var chr = eingabe.charAt(k);
	for(var l=0; l < pruefmenge.length; l++)
		{
		if(chr != pruefmenge[l])
			fehler = true;
		else
		if(chr == pruefmenge[l])
			{
			fehler = false;
			break;
			}
		}
	}
if(fehler == true)
	{
	alert("Für dieses Feld sind nur numerische Eingaben zulässig.");
	if(parent.frames[1].document.forms[0].GEJAHR.value==eingabe)
		{
		parent.frames[1].document.forms[0].GEJAHR.focus();
		parent.frames[1].document.forms[0].GEJAHR.select();
 		}
 	if(parent.frames[1].document.forms[0].GEJAHB.value==eingabe)
		{
  		parent.frames[1].document.forms[0].GEJAHB.focus();
   		parent.frames[1].document.forms[0].GEJAHB.select();
   		}
 	if(parent.frames[1].document.forms[0].GEJAHV.value==eingabe)
   		{
  		parent.frames[1].document.forms[0].GEJAHV.focus();
   		parent.frames[1].document.forms[0].GEJAHV.select();
   		}
	if(parent.frames[1].document.forms[0].NUMMES.value==eingabe)
   		{
   		parent.frames[1].document.forms[0].NUMMES.focus();
   		parent.frames[1].document.forms[0].NUMMES.select();
		} 
	}
}

//-----------------------------------------------------------------------------
function processform()
{
parent.stopscroll = 1;
regout();
var fehler = "";
autor 	= new String (parent.frames[1].document.forms[0].AUTOR.value);
autor2 	= new String (parent.frames[1].document.forms[0].AUTOR2.value);
koerp 	= new String (parent.frames[1].document.forms[0].KOERP.value);
autor4 	= new String (parent.frames[1].document.forms[0].AUTOR4.value);
titel 	= new String (parent.frames[1].document.forms[0].TITEL.value);
thema1 	= new String (parent.frames[1].document.forms[0].THEMA1.value);
thema2 	= new String (parent.frames[1].document.forms[0].THEMA2.value);
nummes 	= new String (parent.frames[1].document.forms[0].NUMMES.value);
//optionale Felder/
//w3swk 	= new String (parent.frames.main.document.forms[0].W3SWK.value);
//autore 	= new String (parent.frames.main.document.forms[0].AUTORE.value);
//koerpe 	= new String (parent.frames.main.document.forms[0].KOERPE.value);
//nortit 	= new String (parent.frames.main.document.forms[0].NORTIT.value);
//titele 	= new String (parent.frames.main.document.forms[0].TITELE.value);
gsign 	= new String (parent.frames.main.document.forms[0].GSIGN.value);
//autor3 	= new String (parent.frames[1].document.forms[0].AUTOR3.value);

var au1	= autor.length -1;
var au2	= autor2.length -1;
var au4	= autor4.length -1;
var ksc	= koerp.length -1;
var tit	= titel.length -1;
var th1	= thema1.length -1;
var th2	= thema2.length -1;
var num	= nummes.length -1;
//optionale Felder
//var w3s	= w3swk.length -1;
//var aue	= autore.length -1;
//var kse	= koerpe.length -1;
//var nor	= nortit.length -1;
//var tie	= titele.length -1;
var sig	= gsign.length -1;
//var au3	= autor3.length -1;

if((parent.frames[1].document.forms[0].AUTOR.value == "") &&
  (parent.frames[1].document.forms[0].AUTOR2.value == "") &&
  (parent.frames[1].document.forms[0].AUTOR4.value == "") &&
  (parent.frames[1].document.forms[0].KOERP.value == "") &&
  (parent.frames[1].document.forms[0].TITEL.value =="") &&
  (parent.frames[1].document.forms[0].THEMA2.value =="") &&
  (parent.frames[1].document.forms[0].NUMMES.value =="") &&
//optionale Felder
//  (parent.frames.main.document.forms[0].W3SWK.value == "") &&
//  (parent.frames.main.document.forms[0].AUTORE.value == "") &&
//  (parent.frames.main.document.forms[0].KOERPE.value == "") &&
//  (parent.frames.main.document.forms[0].NORTIT.value =="") &&
//  (parent.frames.main.document.forms[0].TITELE.value =="") &&
  (parent.frames.main.document.forms[0].GSIGN.value =="") &&
//  (parent.frames[1].document.forms[0].AUTOR3.value == "") &&
//Ende optionale Felder
	(parent.frames[1].document.forms[0].THEMA1.value =="") && ((parent.frames[1].document.forms[0].MEDIUM.selectedIndex == 0) ||  (parent.frames[1].document.forms[0].MEDIUM.selectedIndex == 3)))
  	fehler = "Bitte füllen Sie die Suchfelder aus! \n\Eine Suche nur nach  Erscheinungsjahr, Erscheinungsort, Verlag, Medienart \"Buch\" oder Sprache ist nicht zulässig.";
else
	if(((parent.frames[1].document.forms[0].AUTOR.value.length < 4) &&
		(parent.frames[1].document.forms[0].AUTOR.value != "") &&
		(autor.substr(au1,1) == "*"))||
  ((parent.frames[1].document.forms[0].AUTOR2.value.length < 4) &&
		(parent.frames[1].document.forms[0].AUTOR2.value != "") &&
		(autor2.substr(au2,1) == "*"))||
    ((parent.frames[1].document.forms[0].AUTOR4.value.length < 4) &&
		(parent.frames[1].document.forms[0].AUTOR4.value != "") &&
		(autor2.substr(au4,1) == "*"))||
    ((parent.frames[1].document.forms[0].KOERP.value.length < 4) &&
		(parent.frames[1].document.forms[0].KOERP.value != "") &&
		(autor2.substr(ksc,1) == "*"))||
	((parent.frames[1].document.forms[0].TITEL.value.length < 4) &&
		(parent.frames[1].document.forms[0].TITEL.value != "") &&
		(titel.substr(tit,1) == "*")) ||
	((parent.frames[1].document.forms[0].THEMA2.value.length < 4) &&
		(parent.frames[1].document.forms[0].THEMA2.value != "") &&
		(titel.substr(th2,1) == "*")) ||
	((parent.frames[1].document.forms[0].NUMMES.value.length < 4) &&
		(parent.frames[1].document.forms[0].NUMMES.value != "") &&
		(nummes.substr(num,1) == "*")) ||
  	//optionale Felder
	//((parent.frames.main.document.forms[0].W3SWK.value.length < 4) &&
	//	(parent.frames.main.document.forms[0].W3SWK.value != "") &&
	//	(w3swk.substr(num,1) == "*")) ||
	//((parent.frames.main.document.forms[0].AUTORE.value.length < 4) &&
	//	(parent.frames.main.document.forms[0].AUTORE.value != "") &&
	//	(autore.substr(num,1) == "*")) ||
	//((parent.frames.main.document.forms[0].KOERPE.value.length < 4) &&
	//	(parent.frames.main.document.forms[0].KOERPE.value != "") &&
	//	(koerpe.substr(num,1) == "*")) ||
	//((parent.frames.main.document.forms[0].NORTIT.value.length < 4) &&
	//	(parent.frames.main.document.forms[0].NORTIT.value != "") &&
	//	(nortit.substr(num,1) == "*")) ||
	//((parent.frames.main.document.forms[0].TITELE.value.length < 4) &&
	//	(parent.frames.main.document.forms[0].TITELE.value != "") &&
	//	(titele.substr(num,1) == "*")) ||
    ((parent.frames.main.document.forms[0].GSIGN.value.length < 4) &&
		(parent.frames.main.document.forms[0].GSIGN.value != "") &&
		(titele.substr(sig,1) == "*")) ||
    //((parent.frames[1].document.forms[0].AUTOR3.value.length < 4) &&
	//	(parent.frames[1].document.forms[0].AUTOR3.value != "") &&
	//	(autor3.substr(au3,1) == "*"))||
  ((parent.frames[1].document.forms[0].THEMA1.value.length < 4) &&
		(parent.frames[1].document.forms[0].THEMA1.value != "") &&
		(thema1.substr(th1,1) == "*")))
  	fehler = "Bitte belegen Sie die Suchfelder für Person, Körperschaft, Titel, Schlagwörter, Freitextsuche und Nummern mit mindestens 3 Zeichen für trunkierte Suchen!";
else
	{
	if((autor.substr(0,1) == "*") ||
	  (autor2.substr(0,1) == "*") ||
      (autor4.substr(0,1) == "*") ||
      (koerp.substr(0,1) == "*") ||
	  (thema2.substr(0,1) == "*") ||
	  (nummes.substr(0,1) == "*") ||
      //optionale Felder
	//  (w3swk.substr(0,1) == "*") ||
	//  (autore.substr(0,1) == "*") ||
	// (koerpe.substr(0,1) == "*") ||
	//  (nortit.substr(0,1) == "*") ||
      (gsign.substr(0,1) == "*") ||
	//  (titele.substr(0,1) == "*") ||
    //  (autor3.substr(0,1) == "*") ||
	  (titel.substr(0,1) == "*"))
	  fehler = "Linkstrunkierung ist nur den Suchfeldern für Schlagwörter und Freitext zulässig.";
	}
if(fehler == "")
	{
	frames[1].document.forms[0].action = parent.cgistring + parent.pfad;
	var count = parent.frames[1].document.forms[0].NNORRQ.selectedIndex;
	parent.batchsize = parent.frames[1].document.forms[0].NNORRQ.options[count].value;
	var count = parent.frames[1].document.forms[0].SLSTRZ.selectedIndex;
	parent.SLSTRZ = parent.frames[1].document.forms[0].SLSTRZ.options[count].value;	
	if(parent.kdid =="mu")
		{
		parent.crtbib = parent.frames[1].document.forms[0].WLB1[parent.frames[1].document.forms[0].WLB1.selectedIndex].value;
		if(parent.crtbib != "")
			{
			parent.bezirk = "int";
			parent.frames[1].document.forms[0].BEZIRK.value = "";
			}
		else
			{
			parent.bezirk = "ext";
			parent.frames[1].document.forms[0].BEZIRK.value = "J";
			}
		}
	adisinfo.adisdb = parent.frames[1].document.forms[0].ADISDB.value;
	parent.frames[1].document.forms[0].submit();
	}
else
	{
	alert(fehler);
	fehler = "";
	}
}

//-----------------------------------------------------------------------------
//Kurzinfo Gesamtinfo 
//-----------------------------------------------------------------------------
function getisns(selvz, adisdb)
{
var nulls 	= new String("00000000");
var current;
selv1 = new String (selvz);
parent.selv2 = selv1.split("@");
parent.selv2[0] = adisdb;
adisinfo.adisdb = adisdb;
for(x=1; x <= parent.selv2.length - 1; x++)
	{
	current = nulls.substr(1, 8 - parent.selv2[x].length) + parent.selv2[x];
	parent.selv2[x] = current;
	}
parent.batchbeg = 1;
parent.batchend = parent.selv2.length;
}

//-----------------------------------------------------------------------------
// 
function getbatch(richtung)
{
parent.stopscroll = 1;
var prenxt 		= "JA";
var batchend	= 0;
var satznr;
var url;
parent.batchbeg 	= parseInt(parent.batchbeg);
parent.batchsize 	= parseInt(parent.batchsize);
parent.batchend 	= parseInt(parent.batchend);
batchend 			= parseInt(batchend);
if (richtung == "next")
	{
	parent.batchbeg = parent.batchbeg + parent.batchsize;
	if(parent.batchbeg >= parent.batchend)
		{
		richtung = "nix";
		parent.batchbeg = parent.batchbeg - parent.batchsize;
		alert("Ende der Liste erreicht.");
		}
	}
if (richtung == "prev")
	{
	parent.batchbeg = parent.batchbeg - parent.batchsize;
	if(parent.batchbeg < 1)
		{
		richtung = "nix";
		alert("Anfang der Liste erreicht.");
		parent.batchbeg = parent.batchbeg + parent.batchsize;
		}
	}
if (richtung == "first")
	parent.batchbeg = 1;

if (richtung == "last")
	{
	parent.batchbeg = parent.batchend - parent.batchsize;
	if (parent.batchbeg < 1)
		{
		richtung= "nix";
		alert ("Ende der Liste erreicht.");
		parent.batchbeg = parent.batchbeg + parent.batchsize;
		}
	}
batchend = parent.batchbeg + parent.batchsize;
if(parent.batchend < batchend)
	batchend = parent.batchend;
if(richtung != "nix")
	{
	currentbatch = parent.selv2.slice(parent.batchbeg,batchend);
	satznr = currentbatch.join("+");
	url = cgistring + pfad + "?WEB=JA&ADISDB=" + adisinfo.adisdb + "&SATZNR=" + satznr + "&PRENXT=" + prenxt + "&$FRMNM=" + parent.kifrmnm + "&SLSTRZ=" + parent.SLSTRZ + "&%23RSETS=" + batchbeg;
	//kdid=mu
	if(parent.kdid == "mu")
		{
		if(parent.crtbib != "")
			{
			parent.bezirk	= "int";
			url = url + "&WLB1=" + parent.crtbib; 
			}
		else
			url = url + "&BEZIRK=J";
		}
	parent.frames[1].location.href = url;
	}
var z=0;
for(x=0;x<parent.giisns.length; x++) {
  if(parent.giisns[x][0] != "0") {
    for(y=0;y<currentbatch.length;y++) {
      if(parent.giisns[x][0]==currentbatch[y]) {
         parent.xb2r[z]=y;
         z++;
      }
    }
  }
  else
    break;
}
}

//-----------------------------------------------------------------------------
// 
function adismt(direction)
{
parent.stopscroll = 1;
way 			= new String (direction);
var adisdb      = way.substr(0,2);
var adisoi		= way.substr(2,8);
var first;
var second;
var loesch;
var m           = 0;
var k;
if(parent.adisinfo.currentformat != "Vollanzeige")
    {
    k 		= parent.giisns.length;
    //loeschen
    for(x = 0; x < k; x++)
    	{
        if(parent.giisns[x][0] != "0")
            {
            m = x +1;
    	    if((parent.giisns[x][0] == adisoi) && (parent.giisns[x][1] == adisdb))
    		    {
    		    first 	= parent.giisns.slice(0,x);
    		    y = x + 1;
                third   = parent.giisns.slice(x,y);
                third[0][0] = "0";
                third[0][1] = "0";
    		    second	    = parent.giisns.slice(y,k);
    		    halfway   = first.concat(second);
    		    parent.giisns = halfway.concat(third);
                loesch	= "ja";
                //alert("Treffer aus der Auswahlliste entfernt.");
    		    break;
    		    }
            }
        else
            break;
    	}
    //eintragen
    if(loesch != "ja")
        {
    	parent.giisns[m][0] = adisoi;
        parent.giisns[m][1] = adisdb;
        }
    }
else
    {
    k = parent.nwisns.length;
    //loeschen
    for(x = 0; x < k; x++)
    	{
        if(parent.nwisns[x][0] != "0")
            {
            m = x +1;
    	    if((parent.nwisns[x][0] == adisoi) && (parent.nwisns[x][1] == adisdb))
    		    {
    		    first 	= parent.nwisns.slice(0,x);
    		    y = x + 1;
                third   = parent.nwisns.slice(x,y);
                third[0][0] = "0";
                third[0][1] = "0";
    		    second	    = parent.nwisns.slice(y,k);
    		    halfway   = first.concat(second);
    		    parent.nwisns = halfway.concat(third);
                loesch	= "ja"
    		    break;
    		    }
            }
    	}
    if(m >= k)
        {
        parent.resetnwisns();
        parent.initnwisns(parent.frames[1].document.forms[0].elements.length);
        loesch = "ja";
        parent.adismt(direction);
        }
    //eintragen
    if(loesch != "ja")
        {
    	parent.nwisns[m][0] = adisoi;   
        parent.nwisns[m][1] = adisdb;
        }
    }
}

//-----------------------------------------------------------------------------
// 
function gesamtinfo(go2)
{
parent.stopscroll = 1;
//Default interne Ausleihe
parent.bezirk	= "int";
var i = 0;
var k = parent.giisns.length  - 1;
for(x = 1; x < parent.giisns.length; x++)
    {
    if(parent.giisns[x][0] == "0")
        {
        k = x -1;
        break;
        }
    }
if(parent.giisns[0][0] == 0)
	{
    for(x=1; x<parent.selv2.length; x++)
        {
        y = x-1;
	    parent.giisns[y][0] = parent.selv2[x];
        parent.giisns[y][1] = parent.selv2[0];
        }
	i = 0;
	}
else
	{
	if(go2 == "first")
		i = 0;
	if(go2 == "next")
		i = adisinfo.giactiveindex + 1;
	if(go2 == "prev")
		i = adisinfo.giactiveindex - 1;
	if(go2 == "last")
		i = k;
	}
if((i < 0) || (i > k))
	alert("Alle Treffer wurden angezeigt.");
else
	{
	//kdid=stabi
//	if(kdid == "stabi")
//		{
//		if(parent.giisns[i][1] == "PE")
//			parent.gifrmnm = "BLDPE0";
//		else parent.gifrmnm = "";
//		}		
	var url = cgistring + pfad + "?WEB=JA&ADISDB=" + parent.giisns[i][1]+ "&ADISOI=" + parent.giisns[i][0] + "&$SYSKL=" + parent.syskl + "&$FRMNM=" + parent.gifrmnm;
	adisinfo.currentisn = parent.giisns[i][0];
	adisinfo.giactiveindex = i;
	parent.upperctrl	= parent.ctrlk1;
    parent.adisinfo.currentgi = "";
	//kdid=mu
	if(parent.kdid == "mu")
		{
		if(parent.crtbib != "")
			{
			parent.bezirk	= "int";
			url = url + "&WLB1=" + parent.crtbib; 
			}
		else
			url = url + "&BEZIRK=J";
		}
    parent.frames[1].location.href = url;
	}
}

//-----------------------------------------------------------------------------
//  
function netzwandern(go2)
{
parent.stopscroll = 1;
var k = parent.nwisns.length  - 1;
for(x = 1; x < parent.nwisns.length; x++)
    {
    if(parent.nwisns[x][0] == "0")
        {
        k = x-1;
        break;
        }
    }
if(parent.nwisns[0][0] == 0)
	{
    parent.resetnwisns();
    parent.initnwisns(parent.frames[1].document.forms[0].elements.length);
	}
else
	{
    var url;
    if((go2 < 0) || (go2 > k))
        {
        url = adisinfo.currentgi;
        adisinfo.currentgi = "";
        parent.resetnwisns();
        parent.upperctrl	= parent.ctrlk1;
        }
    else
	    {
	    url = cgistring + pfad + "?WEB=JA&ADISDB=" + parent.nwisns[go2][1]+ "&ADISOI=" + parent.nwisns[go2][0];
        // + "&$SYSKL=" + parent.syskl;
	    adisinfo.currentisn = parent.nwisns[go2][0];
	    adisinfo.nwactiveindex = go2 + 1;
	    parent.upperctrl	= parent.ctrlk1;
        }
	//kdid=mu
	if(parent.kdid == "mu")
		{
		if(parent.crtbib != "")
			{
			url = url + "&WLB1=" + parent.crtbib; 
			parent.bezirk	= "int";
			}
		else
			url = url + "&BEZIRK=J";
		}
    parent.frames[1].location.href = url;
    }
}

//----------------------------------------------------------------------------- 
function back2ki(anzzie)
{
parent.stopscroll = 1;
if((adisinfo.currentki == "") || (anzzie==1))
	alert("Sie hatten nur einen Treffer. Es ist keine Trefferliste vorhanden.");
else
    {
	//kdid=mu
	if(parent.kdid == "mu")
		{
		if(parent.crtbib != "")
			{
			parent.bezirk	= "int";
			currentki = currentki + "&WLB1=" + parent.crtbib; 
			}
		else
			currentki = currentki + "&BEZIRK=J";
		}
	parent.frames[1].location.href = adisinfo.currentki;
    parent.adisinfo.currentgi = "";
	for(x=0; x< parent.giisns.length; x++)
    	{
    	parent.giisns[x][0] = "0"; 
    	parent.giisns[x][1] = "0"; 
    	}
    }
}

//-----------------------------------------------------------------------------
function makeformcontrol(a0001,frmnm,adisdb)
{
parent.adisinfo.currentisn 	= a0001;
parent.adisinfo.adisdb 		= adisdb;
if((frmnm == "") || (frmnm == "BLDAK1"))
	{
	parent.ctrl2 = parent.ctrlv2;
	}
else
	parent.ctrl2 = parent.ctrlv2a;
}

//-----------------------------------------------------------------------------
// 
function switchformat(frmnm)
{
var rurl = cgistring + pfad + "?WEB=JA&ADISDB=" + adisinfo.adisdb + "&ADISOI=" + adisinfo.currentisn + "&$FRMNM=" + frmnm;
parent.stopscroll = 1;
//kdid=mu
if(parent.kdid == "mu")
	{
	if(parent.crtbib != "")
		{
		parent.bezirk = "int";
		rurl = rurl + "&WLB1=" + parent.crtbib; 
		}
	else
		rurl = rurl + "&BEZIRK=J";
	}
parent.frames[1].location.href = rurl;
}

//-----------------------------------------------------------------------------
// Bestellung und Trefferliste 
//-----------------------------------------------------------------------------
//Verbundbestellung kdid=mu
function getitems (crntisn,adisdb)
{
var url = cgistring + pfad + "?ADISDB=" + adisdb + "&WEB=JA&BEZIRK=J&ADISOI=" + crntisn;
parent.frames.main.location.href=url;
parent.bezirk = "ext";
}
//-----------------------------------------------------------------------------
function makelistcontrol(a0001,titreg,was,wadbez,wvben1,vorbe,exanz)
{
if(titreg == "")
	titreg = "Datensatz ohne Titel";
parent.adisinfo.currenttitreg = titreg;
if(was == "bib")
	parent.ctrlk3 = parent.ctrlk3a;
if(was == "order")
	{
    parent.ctrlk4 = parent.ctrlk4a;
	//kdid=mu
	if((parent.kdid == "mu") && (exanz > 0) && (parent.bezirk == "int"))
		parent.ctrlk4 = parent.ctrlk4 + parent.ctrlk4b;
    //leer bei Lokalsystemen
    parent.adisinfo.currentwadbez = wadbez;
    parent.adisinfo.currentwvben1 = wvben1;
	}
}

//-----------------------------------------------------------------------------
// Trefferlisten 
//-----------------------------------------------------------------------------
function treffermerk(welche,vorbe)
{
var dubl;
var l;
var pl1;
var pl2;
var chkd;
var entscheidung;
if(welche == "bib")
	{
	for(x = 0; x < maxtreffer; x++)
		{
		if(parent.trefferlist[x][0] == adisinfo.currentisn)
			{
			dubl	= "ja"
			alert("Der Titel ist bereits in der Rechercheliste.");
			break;
			}
		if(parent.trefferlist[x][0] == 0)
			{
			l	= x;
			break;
			}
		}
		//eintragen
		if(x >= maxtreffer)
			alert("Es können maximal " + maxtreffer + " aufgelistet werden.");
		if((dubl != "ja") && (x < maxtreffer))
		{
		parent.trefferlist[l][0]	= adisinfo.currentisn;
		parent.trefferlist[l][1] 	= adisinfo.currenttitreg;
		alert("Der Titel: \n\"" + adisinfo.currenttitreg + "\"\n wurde in die Rechercheliste aufgenommen.");
		}
	}
if(welche == "order")
	{
    if((vorbe == "VM") || (vorbe == ""))
        alert("Bitte auf Band oder Heft verzweigen.");
    else
    if(vorbe == "NO")
        alert("Die besitzende Bibliothek ist z.Zt. geschlossen.");
    else
    if(vorbe == "P")
        alert("Es gibt keine bestellbaren Exemplare.");
	else
    if(vorbe == "K")
        alert("Noch nicht geliefert. Bitte wenden Sie sich an das Bibliothekspersonal!");
    else
        {
		if(parent.kdid=="mu")
			{
			var entscheidung = true;
			var aksig = parent.crtbib;
			if(parent.bezirk == "ext")
				{
				entscheidung = confirm("Soll das Medium mit Leihverkehr in ganz München bestellt werden?");
 				if(entscheidung == true)
					aksig = "";
    			}
			}
    	dubl 	= "";
    	l		= "";
    	for(x = 0; x < maxausl; x++)
    		{
    		if(parent.orderlist[x][0] == adisinfo.currentisn)
    			{
                if(vorbe != "F")
                    {
    			    dubl	= "ja";
    			    alert("Der Titel ist bereits in der Bestellliste.");
    			    break;
                    }
    			}
    		if(parent.orderlist[x][0] == 0)
    			{
    			l	= x;
    			break;
    			}
    		}
    		//eintragen
    	if(x >= maxausl)
			alert("Es können maximal " + maxausl + " Titel auf einmal bestellt werden.\n Bitte schicken Sie Ihre Bestellung erst ab!");
		//kdid==mu
    	if((dubl != "ja") && (x < maxausl) && (entscheidung != false))
    		{
    		parent.orderlist[l][0]	= adisinfo.currentisn;
    		parent.orderlist[l][1] 	= adisinfo.currenttitreg;
    		parent.orderlist[l][2]	= adisinfo.currentwadbez;
    		parent.orderlist[l][3] 	= adisinfo.currentwvben1;
    		if(kdid=="mu")
				parent.orderlist[l][2]	= aksig;
			//Lokalsystem
    		if(adisinfo.currentwadbez == "")
                {
                //hier gleich vorart wenn db1
                parent.orderlist[l][3] = vorbe;
                //Freie Bestellung Zusatzinformation holen
                if(vorbe == "F") 
                    parent.getfrbst(l);
                else
				if(parent.kdid != "mu")
					{
					if(parent.orderlist[l][3] == "CS")
						parent.orderlist[l][2] = "Bestellwunsch für einen Aufsatz";
                       //parent.orderlist[l][2] = "Kopierwunsch sp&auml;ter"; s. mail 27.10 & Besp. bm
                    else
                    if(parent.orderlist[l][3] == "CJ")
						parent.orderlist[l][2] = "Bestellwunsch für einen Aufsatz";
                        //parent.orderlist[l][2] = "Kopierwunsch sofort";
                    else
                    if(parent.orderlist[l][3] == "B")
                        parent.orderlist[l][2] = "Bestellung";
                    else
                    if(parent.orderlist[l][3] == "V")
                        parent.orderlist[l][2] = "Vormerkung";
                    else
                    if(parent.orderlist[l][3] == "L")
                        parent.orderlist[l][2] = "Lesesaalbestellung";
                    else
                    if(parent.orderlist[l][3] == "LV")
                        parent.orderlist[l][2] = "Vorbestellung - Lesesaal";
                    else
                    if(parent.orderlist[l][3] == "W")
                        parent.orderlist[l][2] = "Bestellwunsch";
                    else
                    if(parent.orderlist[l][3] == "WE")
                        parent.orderlist[l][2] = "Express-Bestellwunsch";
                    else
                        parent.orderlist[l][2]= "Bestelltyp: " + parent.orderlist[l][3];
					}
				alert("Der Titel: \n\"" + adisinfo.currenttitreg + "\"\n wurde in die Bestellliste aufgenommen.");
				}
    		//Verbundsystem
    		else
    			{
    			var nulls 	= new String("00");
    			var current;
    			beznm1 = new String (adisinfo.currentwadbez);
    			beznr1 = new String (adisinfo.currentwvben1);
    			beznm2 = beznm1.split("@");
    			beznr2 = beznr1.split("@");			
    			for(x=1; x <= beznr2.length - 1; x++)
    				{
    				current = nulls.substr(1, 2 - beznr2[x].length) + beznr2[x];
    				beznr2[x] = current;
    				}
    			var orderpage3 ="<tr><td>&nbsp;</td> <td class=\"result\" colspan=\"2\"><form name=\"Bezirksauswahlformular\" action=\"\" onsubmit=\"javascript:return false;\"><select name=\"Bezirksauswahlliste\" title=\"Bezirksauswahl\" class=\"button\"  onChange=\"opener.parent.selektbezirk(this.options[this.selectedIndex].value)\"><option value=\"keinBezirk@keinBezirk@keinBezirk\" selected>Bitte wählen Sie einen Bezirk aus!</option>";
    			var orderpage4 = "<tr><td>&nbsp;</td><td class=\"button\" colspan=\"2\"><a href=\"javascript:window.opener.parent.druck()\" class=\"button\" onMouseOut=\"opener.status=''\" onMouseOver=\"opener.status='Klicken Sie hier, um die Auswahlliste zu drucken.'; return true\">Drucken</a>&nbsp;</td><td class=\"button\"><a href=\"javascript:window.opener.parent.bezirkabbr('" + l + "')\" class=\"button\" onMouseOut=\"opener.status=''\" onMouseOver=\"opener.status='Klicken Sie hier, um die Bezirksauswahl abzubrechen.'; return true\">Abbruch</a></td></tr></table>";
    			for(y= 0 ;y < beznr2.length; y++)
    				{
    				if(beznr2[y] != 0)
    					{
    					orderpage3 = orderpage3 + "<option value=\"" + beznr2[y] + "@" + beznm2[y] + "@" + l + "\">" + beznm2[y] + "</option>";
    					}
    				}
    			if(orderpage3.length > 0)
    				{
					orderpage3 = orderpage3 + "</select></form></td></tr>";
					parent.ctrlblv = orderpage3 + orderpage4;
					need2no = new String (parent.orderlist[l][3])
					current = need2no.split("@");
					var nulls = "00";
					for(z = 0; z < current.length; z++)
						{
						servid = nulls.substr(1, 2 - current[z].length) + current[z];
        				servid = "b" + servid + "v";
						current[z] = servid;
						}
					need2no = current.join("*");
					parent.orderlist[l][3]= need2no;
    				window2 = open ("", "Orderwindow","scrollbars=yes,width=630,height=450");
    				if(window2.opener == "") 
    					window2.opener=self;
    				window2.document.open();
					window2.location.href = cgistring + pfad + "?WEB=JA&$FRMNM=BLDAKV&ADISDB=AK&ADISID=" + parent.orderlist[l][0] + "&SRVAKV=" +  parent.orderlist[l][3];
                    }
    			else
    				alert("Bitte wählen Sie zuerst Titel für die Bestellung aus.");
    			}
    		}
    	}
    }
}

//----------------------------------------------------------------------------
function selektbezirk(bezirk)
{
current = bezirk.split("@");
var indeks = current[2]
parent.orderlist[indeks][2]	= current[1];
//Servidermittlung wie in BM6198
var nulls = "00";
servid = nulls.substr(1, 2 - current[0].length) + current[0];
servid = "b" + servid + "v";
parent.orderlist[indeks][3]	= servid;
regout();
}

//-----------------------------------------------------------------------------
//Freie Bestellung BI-Systeme
//-----------------------------------------------------------------------------
function getfrbst(l)
{
regout();
var orderpage2 =	"<body class=\"opacmain\" onunload=\"opener.parent.doubleorder = false;\"><table width=\"490\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td height=\"131\">&nbsp;</td></tr></table><form name=\"frbstform\"  action=\"\" onSubmit=\"javascript:return false;\"><table width=\"490\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" title=\"aDIS/BMS OPAC Freie Bestellung\">";
var orderpage3	=	"<tr><td class=\"category\">Jahr</td><td class=\"input\"><input type=\"Text\" maxlength=\"4\" size=\"4\" name=\"jahr\"></td></tr><tr><td class=\"category\">Band</td><td class=\"input\"><input type=\"Text\" size=\"10\" name=\"band\"></td></tr><tr><td class=\"category\">Heft</td><td class=\"input\"><input type=\"Text\" size=\"10\" name=\"heft\"></td></tr>";
var orderpage4 =	"<tr><td class=\"button\" colspan=\"2\"><a href=\"javascript:window.opener.parent.setfrbst(";
var orderpage5 =    ",document.frbstform.jahr.value,document.frbstform.band.value,document.frbstform.heft.value);\" class=\"button\" OnMouseOut=\"opener.status=''\" OnMouseOver=\"opener.status='Klicken Sie hier, um die Freie Bestellung abzuschließen'; return true\">OK</a></td></tr></table></form></body></html>";
window2 = open ("", "frbstwindow","scrollbars=yes,width=650,height=500");
if(window2.opener == "")
    window2.opener=self;
window2.document.open();
with(window2.document)
	write(orderpage1 + orderpage2 + orderpage3 + orderpage4 + l + orderpage5);
window2.document.close();
window2.opener.parent.doubleorder = false;    
}

//-----------------------------------------------------------------------------
//Freie Bestellung Eintragen von Band, Heft, Jahrgang

function setfrbst(l,jahr,band,heft)
{
var bwwas = "";
if((band != "") && (band != "undefined"))
    bwwas = band;
if((jahr != "") && (jahr != "undefined"))
    {
    if((band != "") && (band != "undefined"))
        bwwas = bwwas + " ";
    bwwas = bwwas + "(" + jahr + ")";
    }
if((heft != "") && (heft != "undefined"))
    bwwas = bwwas + ", " + heft;
if((jahr == "") && (jahr != "undefined"))
    {
    alert("Bitte geben Sie das Jahr an")
    window2.focus();
    }
else
    {
    parent.orderlist[l][2] = bwwas;
    parent.closeovl();
    }
}

//-----------------------------------------------------------------------------
function zeigelist()
{
var rurl;
var satznr = new Array(1);
for(x = 0; x < maxtreffer; x++)
	{
	if(parent.trefferlist[x][0] > 0)
		//IE kann es nicht
		//pushed = satznr.push(parent.trefferlist[x][0]);
		satznr[x] = parent.trefferlist[x][0];
	} 
satznr = satznr.join("+");
if(satznr.substr(0.1) == "+") 
	satznr = satznr.substr(1,satznr.length);
if(satznr.length > 0)
	{
	rurl = cgistring + pfad + "?WEB=JA&ADISDB=" + adisinfo.adisdb + "&SATZNR=" + satznr;
	//kdid=mu
	if(parent.kdid == "mu")
		{
		if(parent.crtbib != "")
			{
			parent.bezirk = "int";
			rurl = rurl + "&WLB1=" + parent.crtbib; 
			}
		else
			rurl = rurl + "&BEZIRK=J";
		}
	parent.frames[1].location.href = rurl;
	}
else
	alert("Bitte nehmen Sie zuerst Treffer in die Rechercheliste auf.");
}

//-----------------------------------------------------------------------------
function zeigeorder()
{
regout();
var orderpage2 =	"<body class=\"opacmain\"><form name=\"orderlistform\" action=\"\" onsubmit=\"javascript:return false;\"><table width=\"590\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" title=\"aDIS/BMS OPAC Bestellliste\"><tr><td colspan=\"4\" height=\"131\">&nbsp;</td></tr><tr><td class=\"button\" colspan=\"4\">Folgende Titel sind zur Bestellung vorgesehen.</td></tr>";
var orderpage3	=	"";
var orderpage4 =	"<tr><td class=\"button\"><a href=\"javascript:window.opener.parent.processorder()\" class=\"button\" onMouseOut=\"opener.status=''\" onMouseOver=\"opener.status='Klicken Sie hier, um die Bestellung abzuschicken. Nur angekreuzte Titel bleiben werden bestellt!'; return true\">Abschicken</a></td><td class=\"button\"><a href=\"javascript:window.opener.parent.druck()\" class=\"button\" onMouseOut=\"opener.status=''\" onMouseOver=\"opener.status='Klicken Sie hier, um die vorgemerkten Titel zu drucken.'; return true\">Drucken</a></td><td class=\"button\"><a href=\"javascript:window.opener.parent.resetorderlist('ja')\" class=\"button\" onMouseOut=\"opener.status=''\" onMouseOver=\"opener.status='Klicken Sie hier, um die Bestellung abzubrechen. Alle gesammelten Titel werden gelöscht!'; return true\">L&ouml;schen</a></td><td class=\"button\"><a href=\"javascript:window.opener.parent.closeovl()\" class=\"button\" onMouseOut=\"opener.status=''\" onMouseOver=\"opener.status='Klicken Sie hier, um die Bestellung abzubrechen. Alle gesammelten Titel bleiben erhalten!'; return true\">Abbruch</a></td></tr></table></form></body></html>";
for(x= 0 ;x < parent.orderlist.length; x++)
	{
	if(parent.orderlist[x][1] != 0)
		{
		orderpage3 = orderpage3 + " <tr><td class=\"result\" colspan=\"1\"><input type=\"checkbox\" name=\"" + parent.orderlist[x][1] + "\" value=\"" + parent.orderlist[x][0] + "\" checked onMouseOver=\"opener.status='Angekreuzte Titel bleiben in der Bestellliste'; return true\" onMouseOut=\"opener.status=''\"></td><td class=\"result\" colspan=\"3\">" + parent.orderlist[x][1] + ",<br>" + parent.orderlist[x][2] + "</td></tr>";
		}
	}
if(orderpage3.length > 0)
	{
	window2 = open ("", "Orderwindow","scrollbars=yes,width=630,height=450");
	if(window2.opener == "") 
		window2.opener=self;
	window2.document.open();
	with(window2.document)
		write(orderpage1 + orderpage2 + orderpage3 + orderpage4);
	window2.document.close();
	}
else
	alert("Bitte wählen Sie zuerst Titel für die Bestellung aus.");
}

//-----------------------------------------------------------------------------	
//
function processorder()
{
var currentlist     = new String("");
var currentlistb    = new String("");
var currentlistbw   = new String("");
//Array sortieren
var k = parent.orderlist.length -1;
for(x = 0; x < k; x++)
	{
    if(parent.orderlist[x][0] == 0)
        {
	    first 	= parent.orderlist.slice(0,x);
	    y = x + 1;
		third   = parent.orderlist.slice(x,y);
		third[0][0] = -1;
		third[0][1] = -1;
		third[0][2] = -1;
		third[0][3] = -1;
	    second	    = parent.orderlist.slice(y,k);
	    halfway   	= first.concat(second);
	    parent.orderlist = halfway.concat(third);
		x--;
		}
	}
for(x = 0; x < k; x++)
	{
	for(a = 0; a < 4; a++)
		{
		if(parent.orderlist[x][a] == -1)
			parent.orderlist[x][a] = 0;
		}
	}
//Checkboxen auslesen
for(x= 0; x < window2.document.orderlistform.elements.length; x++)
	{
	if(window2.document.orderlistform.elements[x].checked == false)
		{
		parent.orderlist[x][0] = 0;
		parent.orderlist[x][1] = 0;
		parent.orderlist[x][2] = 0;
		parent.orderlist[x][3] = 0;
		}
	else
		{
		if(currentlist.length == 0)
            {
			currentlist     = parent.orderlist[x][0];
            currentlistb    = parent.orderlist[x][3];
            //Lokalsystem AKWAS
            if(adisinfo.currentwadbez == "")
                currentlistbw = parent.orderlist[x][2];
            }
		else
            {
			currentlist     = currentlist + " " + parent.orderlist[x][0];
            currentlistb    = currentlistb + " " + parent.orderlist[x][3];
            //Lokalsystem AKWAS, Trennzeichen "*"
            if(adisinfo.currentwadbez == "")
                currentlistbw   = currentlistbw + "*" + parent.orderlist[x][2];
            }
		}
	}
if(currentlist.length > 0)
	{
	var orderpage2 =	"<body class=\"opacmain\"><form name=\"passwordform\"  action=\"\" onSubmit=\"javascript:return false;";
	var orderpage3 =	"<input type=\"hidden\" name=\"ADISDB\"value=\"AU\"><input type=\"hidden\" name=\"WEB\"value=\"JA\"><input type=\"hidden\" name=\"AKLIST\"value=\"";
    var orderpage4;
    var orderpage5 =	"\">";
    //Lokalsystem
    if((adisinfo.currentwadbez == "") && (kdid != "mu"))
        orderpage4 =	"<input type=\"hidden\" name=\"AKWAS\"value=\"" + currentlistbw + orderpage5  + "<input type=\"hidden\" name=\"AKVORB\"value=\"";
	//München
	if((adisinfo.currentwadbez == "") && (kdid == "mu"))
        orderpage4 =	"<input type=\"hidden\" name=\"AKSIG\"value=\"" + currentlistbw + orderpage5  + "<input type=\"hidden\" name=\"AKVORB\"value=\"";
    else
        //Verbundsystem
        orderpage4 =    "<input type=\"hidden\" name=\"SERVID\"value=\"";
	var orderpage6 =	"<tr><td class=\"category\">Ausweisnummer </td><td class=\"input\"><input type=\"Text\" maxlength=\"11\" size=\"12\" name=\"L%23AUSW\"></td></tr><tr><td class=\"category\">Passwort</td><td class=\"input\"><input type=\"Password\" maxlength=\"10\" size=\"10\" name=\"LPASSW\"></td></tr><tr><td class=\"category\">Ausgabeort</td><td class=\"input\">";
    var orderpage7 =   "</select></td></td></tr>";
	var orderpage8 =	"<tr><td class=\"button\"><a href=\"javascript:window.opener.parent.checkauth(4,5,6);\" class=\"button\" OnMouseOut=\"opener.status=''\" OnMouseOver=\"opener.status='Klicken Sie hier, um die Bestellung bestätigen.'; return true\">OK</a></td><td class=\"button\"><a href=\"javascript:window.self.close()\" class=\"button\" OnMouseOut=\"opener.status=''\" OnMouseOver=\"opener.status='Klicken Sie hier, um die Bestellung abzubrechen.'; return true\">Abbruch</a></td></tr></table></form></body></html>";
    //Lokalsystem hier mu
    if(adisinfo.currentwadbez == "")
        {
        var orderpage6hdr = "<table width=\"490\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" title=\"aDIS/BMS OPAC Authentifikation\"><tr><td colspan=\"2\" height=\"131\">&nbsp;</td></tr><tr><td class=\"button\" colspan=\"2\">Bitte geben Sie Namen <b>oder</b> Ausweisnummer <b>und</b> Passwort ein</td></tr><tr><td class=\"category\">Name, Vorname</td><td class=\"input\"><input type=\"Text\" size=\"40\" name=\"L%23NAME\"></td></tr>";
        orderpage6 = orderpage6hdr + orderpage6 + "<select name=\"AUSGA\" title=\"Ausgabeort\"><option value=\"\" selected></option><option value=\"\"></option>";
        }
    //Verbundsystem
    else
        {
        var orderpage6hdr = "<table width=\"490\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" title=\"aDIS/BMS OPAC Authentifikation\"><tr><td colspan=\"2\" height=\"131\">&nbsp;</td></tr><tr><td class=\"button\" colspan=\"2\">Bitte geben Sie Ausweisnummer <b>und</b> Passwort ein</td></tr>";
		//7615 1 4 vob1
		if(kdid == "vob")
			orderpage6hdr = orderpage6hdr + "<tr><td class=\"explain\" colspan=\"2\"><ul>Hinweise zum Bestellen: <li>Geben Sie bitte Ihre 11-stellige Ausweisnummer ein. Die Nummer beginnt nach den Zeichen<br> \"X11<\".<li>Geben Sie bitte Ihr 8-stelliges Passwort ein. Ihr pers&ouml;nliches Passwort entspricht Ihrem <br>Geburtsdatum und wird ohne Leerzeichen und Interpunktion eingegeben. Bsp.: 01041970</ul><ul>Beim Bestellen und Vormerken k&ouml;nnen Sie:<li>Eine Bibliothek ihrer Wahl als Abholort eintragen bzw. eine Lieferung an Ihre Privatadresse<br> veranlassen.<li>Sie k&ouml;nnen zwischen Standard- und Expresslieferung ausw&auml;hlen.</ul>Es entstehen Transportkosten, wenn der Ausgabeort nicht der Heimatbibliothek des <br>jeweiligen Mediums entspricht.</td></tr>";
        //Aufbau Normallieferungsbibliotheken Verbund
        orderpage6 = orderpage6 + "<select name=\"AUSGA\" title=\"Ausgabeort\"><option selected value=\"\">Am jeweiligen Standort (kostenfrei)</option><option value=\"HAU\">Nach Hause (kostenpflichtig)</option>";
        currentname     = adisinfo.currentwlbn.split("@");
        currentsigel    = adisinfo.currentwlbb.split("@");
        for(x=0; x<currentname.length; x++)
            {
            orderpage6 = orderpage6 + "<option value=\"" + currentsigel[x] + "\">" + currentname[x] + " (kostenpflichtig)</option>"; 
            }
        orderpage6 = orderpage6hdr + orderpage6;
        //Aufbau Expresslieferungsbibliotheken Verbund
        var orderpage6hdrx = "<tr><tr><td class=\"result\" colspan=\"2\">Wenn m&ouml;glich Expresslieferung nach:</td></tr><tr><td class=\"category\">Ausgabeort</td><td class=\"input\"><select name=\"XAUSGA\" title=\"Express-Ausgabeort\"><option selected value=\"\">Keine Expresslieferung</option><option value=\"HAU\">Nach Hause (kostenpflichtig)</option>";
        orderpage6 = orderpage6 + orderpage7 + orderpage6hdrx;
        currentxname     = adisinfo.currentwlbne.split("@");
        currentxsigel    = adisinfo.currentwlbbe.split("@");
        for(x=0; x<currentxname.length; x++)
            {
            orderpage6 = orderpage6 + "<option value=\"" + currentxsigel[x] + "\">" + currentxname[x] + " (kostenpflichtig)</option>";
            }
        }
	window2 = open ("", "Orderwindow","scrollbars=yes,width=510,height=200");
	if(window2.opener == "") 
		window2.opener=self;
	window2.document.open();
	with(window2.document)
		write(orderpage1 + orderpage2 + parent.cgistring + parent.pfad + orderpage5 + orderpage3 + currentlist + orderpage5 + orderpage4 + currentlistb + orderpage5 + orderpage6 + orderpage7 + orderpage8);
	window2.document.close();
    window2.opener.parent.doubleorder = false; 
	window2.resizeBy(85,85)
	}	
else
	{
	alert("Es ist kein Titel in der Bestellliste");
	window2.close();
	}
}

//-----------------------------------------------------------------------------
function orderend()
{
parent.resetorderlist("nein");
window2.opener.parent.doubleorder = false;
window2.self.close();
}

//-----------------------------------------------------------------------------
function repeatorder()
{
window2.opener.parent.doubleorder = false;
window2.history.back();
}

//-----------------------------------------------------------------------------
//
function bezirkabbr(x)
{
parent.orderlist[x][0] = 0;
parent.orderlist[x][1] = 0;
parent.orderlist[x][2] = 0;
parent.orderlist[x][3] = 0;
window2.self.close();
}

//-----------------------------------------------------------------------------
//
function resettrefferlist(laut)
{
for(x = 0; x <= maxtreffer; x++)
	{
	if(parent.trefferlist[x][0] > 0)
		{
		parent.trefferlist[x][0] = 0;
		parent.trefferlist[x][1] = 0;
		}
	else
		if(parent.trefferlist[x][0] == 0)
			break;
	}
if(laut == "JA")
	alert("Ihre Rechercheliste wurde geleert.");
}

//-----------------------------------------------------------------------------
//
function resetorderlist(laut)
{
for(x = 0; x <= maxausl; x++)
	{
	if(parent.orderlist[x][0] > 0)
		{
		parent.orderlist[x][0] = 0;
		parent.orderlist[x][1] = 0;
		parent.orderlist[x][2] = 0;
		parent.orderlist[x][3] = 0;
		}
	else
		if(parent.orderlist[x][0] == 0)
			break;
	}
if(laut == "ja")
	{
	alert("Ihre Bestellliste wurde gelöscht.");
	window2.self.close();
	}
}
//-----------------------------------------------------------------------------
//Benutzerkonto
//-----------------------------------------------------------------------------
//
function zeigekto()
{
regout();
var orderpage2 =	"<body class=\"opacmain\" onunload=\"opener.parent.doubleorder = false;\"><table width=\"490\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td height=\"131\">&nbsp;</td></tr></table><form name=\"ktoform\"  action=\"\" onSubmit=\"javascript:return false;";
var orderpage3 =	"\"><table width=\"490\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" title=\"aDIS/BMS OPAC Authentifikation\"><input type=\"hidden\" name=\"ADISDB\"value=\"LE\"><input type=\"hidden\" name=\"WEB\"value=\"JA\"><input type=\"hidden\" name=\"$FRMNM\"value=\"";
var orderpage4a;
var orderpage4	=	"<tr><td class=\"category\">Ausweisnummer</td><td class=\"input\"><input type=\"Text\" maxlength=\"11\" size=\"12\" name=\"L%23AUSW\"></td></tr><tr><td class=\"category\">Passwort</td><td class=\"input\"><input type=\"Password\" maxlength=\"10\" size=\"10\" name=\"LPASSW\"></td></tr>";
var orderpage5a;
var orderpage5 =	" class=\"button\" OnMouseOut=\"opener.status=''\" OnMouseOver=\"opener.status='Klicken Sie hier, um das Benutzerkonto einzusehen.'; return true\">OK</a></td><td class=\"button\"><a href=\"javascript:window.opener.parent.closeovl()\" class=\"button\" OnMouseOut=\"opener.status=''\" OnMouseOver=\"opener.status='Klicken Sie hier, um die Verarbeitung abzubrechen.'; return true\">Abbruch</a></td></tr></table></form></body></html>";
//Lokalsysteme
if((adisinfo.currentwadbez == "") && (verbund == "n"))
    {
    orderpage3 = orderpage3 + "BLDLEV\">";
	//Lokalsysteme Konto ermoeglichen s.a. adis.htm f. Halbverbuende
	orderpage3 = orderpage3 + "<input type=\"hidden\" name=\"LOKAL\"value=\"JA\">";
    var orderpage4a = "<tr><td class=\"button\" colspan=\"2\">Bitte geben Sie Name <font class=\"mittel\">oder</font> Nummer <font class=\"mittel\">und</font> Passwort ein.</td> </tr><tr><td class=\"category\">Name, Vorname</td><td class=\"input\"><input type=\"Text\" size=\"40\" name=\"L%23NAME\"></td></tr>";
    orderpage4 = orderpage4a + orderpage4;
    var orderpage5a = "<tr><td class=\"button\"><a href=\"javascript:window.opener.parent.checkauth(4,5,6);\"";
    orderpage5 = orderpage5a + orderpage5;
    }
else
    {
	//nur vob
	if(kdid == "vob")
		orderpage4 = "<tr><td class=\"button\" colspan=\"2\">Bitte geben Sie Ausweisnummer <b>und</b> Passwort ein</td></tr><tr><td class=\"explain\" colspan=\"2\">So &ouml;ffnen sie Ihr Benutzerkonto:<br><ul><li>Geben Sie bitte Ihre 11-stellige Ausweisnummer ein. Die Nummer beginnt nach den Zeichen X11<. Geben Sie bitte Ihr 8-stelliges Passwort ein. Ihr pers&ouml;nliches Passwort entspricht Ihrem Geburtsdatum und wird ohne Leerzeichen und Interpunktion eingegeben. Bsp.: 01041970<li>Best&auml;tigen Sie mit \"OK\"</ul></td></tr>" + orderpage4; 
    orderpage3 = orderpage3 + "BLDLE2\">";
    var orderpage5a = "<tr><td class=\"button\"><a href=\"javascript:window.opener.parent.checkauth(3,3,4);\"";
    orderpage5 = orderpage5a + orderpage5;
    }
if(kdid == "vob")
	window2 = open ("", "ktowindow","scrollbars=yes,width=750,height=550");
else
	window2 = open ("", "ktowindow","scrollbars=yes,width=650,height=500");
if(window2.opener == "")
    window2.opener=self;
window2.document.open();
with(window2.document)
	write(orderpage1 + orderpage2  + orderpage3 + orderpage4 + orderpage5);
window2.document.close();
window2.opener.parent.doubleorder = false;    
}
//-----------------------------------------------------------------------------
//Dynamisches Control fuer Benutzerkontenwahl im Verbund
//-----------------------------------------------------------------------------
function makectrlb1(wktnm,wktnr,suerg)
{
parent.ctrlb1 = parent.ctrlblb;
}
//-----------------------------------------------------------------------------
// Konto Verlängern
//-----------------------------------------------------------------------------
function prolongkto(serv)
{
if(window2.opener.parent.doubleorder == true)
	{
	alert("Sie haben Ihr Konto bereits verlängert.");
	window2.focus();
	}
else
	{
	srvak1 = new String (serv);
	var y = srvak1.length;
	var a = 0;
	var srvakv="";
	for(x=4; x<=y; x=x+4)
		{
		srvakv = srvakv + "*" + srvak1.slice(a,x);
		a=a+4; 
		}
	srvakv=srvakv.substr(1,srvakv.length);
	prolurl = prolurl + "&SRVAKV=" + srvakv;
	window2.location.href = prolurl;
	}
}
//-----------------------------------------------------------------------------
function reloadkto()
{
window2.location.href = reurl;
prolurl="";
reurl="";
window2.opener.parent.doubleorder = true;
}

//-----------------------------------------------------------------------------
//Authentifizierung formal pruefen
//-----------------------------------------------------------------------------
//
function checkauth(name,nummer,passw)
{
var wert	= new String ("g");
if(((window2.document.forms[0].elements[name].value == "") && (window2.document.forms[0].elements[nummer].value == ""))|| (window2.document.forms[0].elements[passw].value == ""))
	{
	alert("Bitte tragen Sie Namen oder Ausweisnummer und Passwort ein.")
	window2.document.forms[0].elements[name].focus();
	}
else
	{
	if(window2.opener.parent.doubleorder == false)
		{
		window2.opener.parent.doubleorder = true;
		//window2.document.forms[0].submit();
		//wg. bux in ie (unicode conversion) kein submit
		var rurl 		= cgistring + pfad;
		for(x=0; x<window2.document.forms[0].length; x++)
			{
			if(window2.document.forms[0].elements[x].type == "select-one")
				{
				var indeks = window2.document.forms[0].elements[x].selectedIndex;
				wert = window2.document.forms[0].elements[x][indeks].value;
				}
			else
				wert = window2.document.forms[0].elements[x].value;
			if(wert.length != 0)
				{
				if(x == 0)
					rurl = rurl + "?";
				else
					rurl 	= rurl + "&";
				teil2   = wert.split(" ");
				such    = teil2.join("+");
	    		teil2   = such.split(":");
	    		such    = teil2.join("%3a");
				rurl 	= rurl + window2.document.forms[0].elements[x].name + "=" + such;
				};
			}
		window2.location.href= rurl;
		}
	else
		{
		alert("Bitte schicken Sie dieses Formular nur einmal ab!");
		window2.focus();
		}
	}
}
//-----------------------------------------------------------------------------
function changepw()
{
var page1	= '<html><HEAD><!--aDIS/BMS Benutzeranmeldung JavaScript generated by |a|S|tec| GmbH München und Berlin 3/2000--><link rel="stylesheet" type="text/css" href="/lib/main.css" title="Style Sheet"><title>aDIS/BMS-Passwort</title></head><body class="main" onLoad="javascript: window.opener.doublepw = false;"><h2> Bitte geben Sie Namen oder Benutzernummer und Passwort an.</h2><br><form action="';
var page3	='">';
var page4	='<input type="hidden" name="ADISDB" value="LE"> <input type="hidden" name="WEB" value="JA">';
var page5	='<tr><td>bisheriges Passwort</td><td><input type="password" name="LPASSW" size="10" maxlength="10"></td></tr><tr><td  colspan="2">Bitte geben Sie Ihr neues Passwort ein:</td></tr><tr><td>neues Passwort</td><td><input type="password" name="LPASS1" size="10" maxlength="10"></td></tr><tr><td>Wiederholung</td><td><input type="password" name="LPASS2" size="10" maxlength="10"></td></tr>';
var page6	='<table><tr><td>Name, Vorname</td><td><input type="text" name="L#NAME" lenght=30> oder </td></tr><tr><td>Ausweisnummer</td><td><input type="text" name="L#AUSW" lenght=30> und</td></tr>';
var page7	='<tr><td><input type="submit" value="Passwort ändern" name="pwbtt"></td><td><input type="button" value="Abbruch" onClick="window.self.close()">';
var page8	='</td></tr></table>';
var page9	='</form></body></html>';
var page10	='" OnSubmit="return opener.testpw()';	
window2 = open ("", "Orderwindow","scrollbars=yes,width=600,height=400");
if(window2.opener=="") window2.opener=self;
	window2.document.open();
with(window2.document)
	{
	write(page1 + cgistring + pfad + page10 + page3 + page4 + page6 + page5 +  page7 + page8 + page9);
	}
window2.document.close();
}
//Testform prueft ob die Eingabe aus Name oder Ausweisnummer und Passwort besteht
//Da das Hashmark ein verbotenes Zeichen ist, wird hier ueber den Index der elements abgefragt
//Der focus auf das Namensfeld bringt die Maske wieder in den Vordergrund 
function testpw()
{
if(((window2.document.forms[0].elements[2].value == "") &&
	(window2.document.forms[0].elements[3].value == "")) ||
	((window2.document.forms[0].elements[5].value == "") &&
	(window2.document.forms[0].elements[6].value == ""))||
	(window2.document.forms[0].elements[4].value == "") ||
	(window2.document.forms[0].elements[5].value != window2.document.forms[0].elements[6].value))
  {
  nochmal = confirm ("Bitte tragen Sie Namen oder Ausweisnummer und bisheriges Passwort ein.\nDas neue Passwort muß unbedingt in der gleichen Schreibweise bestätigt werdem.\nZurück zur Eingabe?")
  if(nochmal == true)
  	{
  	window2.focus();
  	window2.document.forms[0].elements[5].focus();
	window2.document.forms[0].elements[5].select();
	}
	else
		window2.close();
  return false
  }
else
	{
	if(window2.opener.doublepw == false)
		{
		window2.document.forms[0].pwbtt.disabled = true;
		window2.opener.doublepw = true;
		return true;
		}
	else
		{
		alert("Bitte schicken Sie Ihre Änderung nur einmal ab!");
		return false;
		}
	}
}	   
//-----------------------------------------------------------------------------
//Register
//-----------------------------------------------------------------------------
//
function register(wwrgkz,regbeg,regtit,fieldname,selanz)
{
regout();
rgpgno = 0;
var rurl;
var such1 	= "?ADISDB=" + parent.frames[1].document.forms[0].ADISDB.value + "&WEB=JA&";
var such2 	= "&REGBEG=";
//Zerschlagen regbeg
auswahl1 = new String (regbeg);
auswahl2 = auswahl1.split(" ");
var auswahl = "";
for(x=0; x<auswahl2.length; x++)
	{
	if(auswahl2[x] == ":")
		auswahl2[x] = "%3a";
	if(auswahl== "")
		auswahl = auswahl2[x];
	else
		auswahl = auswahl + "+" + auswahl2[x];
	}
regbeg = auswahl;
if (regbeg == "")
	regbeg = "a";
//here kdid=mu..
if(kdid == "mu")
	{
	crtbib = parent.frames[1].document.AK.WLB1[parent.frames[1].document.forms[0].WLB1.selectedIndex].value;
	if(crtbib != "")
		{
		such1 = such1 + "LO0071=" + parent.crtbib + "&";
		if(wwrgkz == "BAU")
			wwrgkz = "AUL";
		if(wwrgkz == "BKS")
				wwrgkz = "KSL";
		if(wwrgkz == "BTI")
			wwrgkz = "TIL";
		if(wwrgkz == "AL")
			wwrgkz = "T1L";
		if(wwrgkz == "SAK")
			wwrgkz = "LAK";		
		}
	}
rurl = cgistring + regpfad + such1 + "WWRGKZ=" + wwrgkz + such2 + regbeg;
if(version == 5)
    {
    window2 = open (regpfad2,"regwindow","scrollbars=yes,width=600,height=450");
    if (window2)
        {
	    window2.opener  = self;
        window2.rurl    = rurl;
        adisinfo.status = "ja";
        }
    }
else
    {
    window2 = open (url,"regwindow","scrollbars=yes,width=600,height=450");
    if (window2)
	    window2.opener = self;
    }
adisinfo.status		= "ja";
adisinfo.wwrgkz 	= wwrgkz;
adisinfo.regtit 	= regtit;
adisinfo.such1		= such1;
adisinfo.such2  	= such2;
adisinfo.fieldname	= fieldname;
window2.focus();
//Selektionsverzeichnis initialisieren
if(version == 5)
    {
    window2.selector = new Array(selanz);
    for(x=0; x< selanz; x++)
        {
        window2.selector[x]    = new Array(2);
        window2.selector[x][0] = "0"; 
        window2.selector[x][1] = "0";
        window2.selector[x][2] = "0";
        }
    }
}

//-----------------------------------------------------------------------------
//
function regshift(regbeg,regend)
{
rgpgno++;
parent.adisinfo.regend = regend;
parent.adisinfo.regbeg = regbeg;
if (parent.adisinfo.regbeg == "")
	parent.adisinfo.regbeg = parent.adisinfo.regend;
//Zerschlagen regbeg
auswahl1 = new String (parent.adisinfo.regbeg);
auswahl2 = auswahl1.split(" ");
var auswahl = "";
for(x=0; x<auswahl2.length; x++)
	{
	if(auswahl2[x] == ":")
		auswahl2[x] = "%3a";
	if(auswahl== "")
		auswahl = auswahl2[x];
	else
		auswahl = auswahl + "+" + auswahl2[x];
	}
parent.adisinfo.regbeg = auswahl;
rurl = cgistring + regpfad + parent.adisinfo.such1 + "WWRGKZ=" + parent.adisinfo.wwrgkz + parent.adisinfo.such2 + parent.adisinfo.regbeg;
if(version == 5)
    {
    window2.rurl = rurl;
    window2.parent.frames[0].document.regfun.regbeg.value="";
    window2.parent.frames[1].location.href = rurl;
    }
else
    window2.location.href = rurl;
}

//-----------------------------------------------------------------------------
function adisrg(db,isn,name)
{
var k 		= window2.selector.length;
var m       = 0;
var loesch	="";
var pl1;
var pl2;
if(isn == 0)
	{
	//neue Registerverarbeitung 20020322
	for(x=0; x<k; x++)
		{
		window2.selector[x][0] = "0";
		window2.selector[x][1] = "0";
		window2.selector[x][2] = "0";
		}
	for(x = 0; x < window2.frames[1].document.regup.elements.length; x++)
		{
		if(window2.frames[1].document.regup.elements[x].type == "checkbox")
			{
			if((window2.frames[1].document.regup.elements[x].checked == true) && (rgfrm[x][0] == 0))
				{
				rgfrm[x][0] = db;
				rgfrm[x][1] = "pg" + rgpgno + "idx" + x;
				rgfrm[x][2] = name; 
				}
			else
			if((window2.frames[1].document.regup.elements[x].checked == false) && (rgfrm[x][0] != 0))
				{
				rgfrm[x][0] = 0;
				rgfrm[x][1] = 0;
				rgfrm[x][2] = 0;
				loesch = "ja"; 				
				}
			}
		}
	for(y = 0; y < rgfrm.length; y++)
		{
		if((m<=k) && (rgfrm[y][0] != 0))
			{
			if(m<k)
				{
				window2.selector[m][0] = rgfrm[y][0];
				window2.selector[m][1] = rgfrm[y][1];
				window2.selector[m][2] = rgfrm[y][2];
				}
			m++;
			}
		}	
	}
else
	{
	//alte Registerverarbeitung 20020322
	//loeschen
	for(x = 0; x < k; x++)
		{
	    if(window2.selector[x][0] != "0")
	        {
	        m = x +1;
			if((window2.selector[x][0] == db) && (window2.selector[x][1] == isn))
			    {
			    first 	            = window2.selector.slice(0,x);
			    y                   = x + 1;
	            third               = window2.selector.slice(x,y);
	            third[0][0]         = "0";
	            third[0][1]         = "0";
	            third[0][2]         = "0";
			    second	            = window2.selector.slice(y,k);
			    halfway             = first.concat(second);
			    window2.selector    = halfway.concat(third);
	            loesch  	        = "ja";
			    break;
			    }
	        }
	    else
	        break;
		}
	//eintragen
	if((loesch != "ja") && (m < k))
	    {
		window2.selector[m][0] = db;
	    window2.selector[m][1] = isn;
	    window2.selector[m][2] = name;
	    }
	}
if((loesch != "ja") && (m > k))
    {
    if(k == 1)
        {
        pl1 = "ist";
        pl2 = "";
	        }
    else
        {
        pl1 = "sind";
        pl2 = "n"
        }
    alert("Es " + pl1 + " nur " + k + " Übernahme" + pl2 + " aus diesem Register zulässig.");
    }
window2.focus();
}
//-----------------------------------------------------------------------------
function reguebern()
//
{
var done;
//Uebernahme 3 Einzeleintraege
if((parent.adisinfo.fieldname == "AUTOR") || (parent.adisinfo.fieldname == "AUTOR3")) 
    {
    if(window2.selector[0][1] != 0)
        {
        parent.frames[1].document.forms[0].AUTOR.value = window2.selector[0][2];
        done="yes";
        }
	if(window2.selector.length > 1)
    	if(window2.selector[1][1] != 0)
        	{
        	parent.frames[1].document.forms[0].AUTOR2.value = window2.selector[1][2];
        	done="yes";
        	}
    //nur vb1
    //if(window2.selector[2][1] != 0)
    //    {
    //    parent.frames[1].document.forms[0].AUTOR3.value = window2.selector[2][2];
    //    done="yes";
    //    }
    }
else
if(parent.adisinfo.fieldname == "KOERP") 
    {
    if(window2.selector[0][1] != 0)
        {
        parent.frames[1].document.forms[0].KOERP.value = window2.selector[0][2];
        done="yes";
        }
    if(window2.selector[1][1] != 0)
        {
        parent.frames[1].document.forms[0].AUTOR4.value = window2.selector[1][2];
        done="yes";
        }
    }
else
//Uebername 30 Folgeeintraege
if(parent.adisinfo.fieldname == "THEMA1")
    {
    var k       = window2.selector.length;     
    var them1   = new String();
    for(x = 0; x < k; x++)
        {
        if(window2.selector[x][1] != 0)
            {
            //them1 = them1 + "; " + window2.selector[x][2];
            //Kuerzen Registeruebernahmen
			var themx = new String(window2.selector[x][2]);
			//themx = themx.substr(2,themx.length);
            them1 = them1 + "; " + themx;
			done="yes";
            }
        else
            break;
        }
    them1 = them1.substr(2,them1.length);
    parent.frames[1].document.forms[0].THEMA1.value = them1; 
    }
else
if(parent.adisinfo.fieldname == "THEMA2")
    {
    var k       = window2.selector.length;     
    var them2   = new String();
    for(x = 0; x < k; x++)
        {
        if(window2.selector[x][1] != 0)
            {
            them2 = them2 + "; " + window2.selector[x][2];
            done="yes";
            }
        else
            break;
        }
    them2 = them2.substr(2,them2.length);
    parent.frames[1].document.forms[0].THEMA2.value = them2; 
    }
//lokales register hsort
if(parent.adisinfo.fieldname == "HSORT")
    {
    var k       = window2.selector.length;
    var hsort   = new String();
    for(x = 0; x < k; x++)
        {
		var cntr = new String(window2.selector[x][0]);
		window2.selector[x][1] = cntr.length; 
        if(window2.selector[x][1] > 1)
            {
            hsort = hsort + "; " + window2.selector[x][2];
            done="yes";
            }
        else
            break;
        }
    hsort = hsort.substr(2,hsort.length);
    parent.frames[1].document.forms[0].HSORT.value = hsort;
    }
else
//Einfachuebernahmen
if((parent.adisinfo.fieldname == "TITEL") && (window2.selector[0][1] != 0))
    {
    parent.frames[1].document.forms[0].TITEL.value = window2.selector[0][2]; 
    done="yes";
    }
else
if((parent.adisinfo.fieldname == "W3SWK") && (window2.selector[0][1] != 0))
    {
    parent.frames[1].document.forms[0].W3SWK.value = window2.selector[0][2]; 
    done="yes";
    }
else
if((parent.adisinfo.fieldname == "AUTORE") && (window2.selector[0][1] != 0))
    {
    parent.frames[1].document.forms[0].AUTORE.value = window2.selector[0][2]; 
    done="yes";
    }
else
if((parent.adisinfo.fieldname == "KOERPE") && (window2.selector[0][1] != 0))
    {
    parent.frames[1].document.forms[0].KOERPE.value = window2.selector[0][2]; 
    done="yes";
    }
else
if((parent.adisinfo.fieldname == "NORTIT") && (window2.selector[0][1] != 0))
    {
    parent.frames[1].document.forms[0].NORTIT.value = window2.selector[0][2]; 
    done="yes";
    }
else
if((parent.adisinfo.fieldname == "TITELE") && (window2.selector[0][1] != 0))
    {
    parent.frames[1].document.forms[0].TITELE.value = window2.selector[0][2]; 
    done="yes";
    }
else
if((parent.adisinfo.fieldname == "AUTORA") && (window2.selector[0][1] != 0))
    {
    parent.frames[1].document.forms[0].AUTORA.value = window2.selector[0][2]; 
    done="yes";
    }
else
if((parent.adisinfo.fieldname == "AUTORU") && (window2.selector[0][1] != 0))
    {
    parent.frames[1].document.forms[0].AUTORU.value = window2.selector[0][2]; 
    done="yes";
    }
else
if((parent.adisinfo.fieldname == "KOERPA") && (window2.selector[0][1] != 0))
    {
    parent.frames[1].document.forms[0].KOERPA.value = window2.selector[0][2]; 
    done="yes";
    }
else
if((parent.adisinfo.fieldname == "KOERVS") && (window2.selector[0][1] != 0))
    {
    parent.frames[1].document.forms[0].KOERVS.value = window2.selector[0][2]; 
    done="yes";
    }
else
if((parent.adisinfo.fieldname == "KOERPU") && (window2.selector[0][1] != 0))
    {
    parent.frames[1].document.forms[0].KOERPU.value = window2.selector[0][2]; 
    done="yes";
    }
else
if((parent.adisinfo.fieldname == "SIGNEU") && (window2.selector[0][1] != 0))
    {
    parent.frames[1].document.forms[0].SIGNEU.value = window2.selector[0][2]; 
    done="yes";
    }
else
if((parent.adisinfo.fieldname == "HSORT") && (window2.selector[0][1] != 0))
    {
    parent.frames[1].document.forms[0].HSORT.value = window2.selector[0][2]; 
    done="yes";
    }
if(done != "yes")
    alert("Es wurden keine Einträge im Register markiert.");   
regout();
}

//-----------------------------------------------------------------------------
function search5()
{
var field;
var k       = window2.selector.length;     
var such    = new String();
var l       = 2;
var m;
var teil1;
var teil2;
parent.adisinfo.adisdb = parent.frames[1].document.forms[0].ADISDB.value;  
if((parent.adisinfo.wwrgkz == "BTI") || (parent.adisinfo.wwrgkz == "TIL"))
    field = "TITREW";
else
if((parent.adisinfo.wwrgkz == "BAU") || (parent.adisinfo.wwrgkz == "AUL") || (parent.adisinfo.wwrgkz == "AUB"))
    field = "P0800";
else
if((parent.adisinfo.wwrgkz == "BKS") || (parent.adisinfo.wwrgkz == "KSL") || (parent.adisinfo.wwrgkz == "KSB"))
    field = "K0800";
else
if(parent.adisinfo.wwrgkz == "AUA")
    field = "PA800";
else
if(parent.adisinfo.wwrgkz == "KSA")
    field = "KA800";
else
if(parent.adisinfo.wwrgkz == "AUU")
    field = "PU800";
else
if((parent.adisinfo.wwrgkz == "KSU") || (parent.adisinfo.wwrgkz == "KSV"))
    field = "KU800";
else
if((parent.adisinfo.wwrgkz == "BT1") || (parent.adisinfo.wwrgkz == "T1L"))
    {
    field = "THA71W";
    l = 1;
    }
//tmp search like mask
else
    field = parent.adisinfo.fieldname;
for(x = 0; x < k; x++)
    {
	//lokale Register
    if((window2.selector[x][1] != 0) || (field == "HSORT"))
        {
        //Asteriske vorab entfernen, weil Trennzeichen
        teil1   = new String(window2.selector[x][l])
        teil2   = teil1.split("*");
        teil1   = teil2.join()
        such    = such + "*" + teil1;
        }
    else
        break;
    }
such = such.substr(1,such.length);
if(such.length == 0)
    {
    alert("Bitte kreuzen Sie vor der Suche den gewünschten Eintrag an!");
    window2.focus();
    }
else
    {
    //Nachher Blanks und Doppelpunkte eliminieren
    teil2   = such.split(" ");
    such    = teil2.join("+");
    teil2   = such.split(":");
    such    = teil2.join("%3a");
    rurl = cgistring + pfad + parent.adisinfo.such1 + field + "=" + such + "&REGIW3=JA";
        parent.stopscroll = 1;
	//kdid=mu
	if(parent.kdid == "mu")
		{
		if(parent.crtbib != "")
			{
			parent.bezirk = "int";
			rurl = rurl + "&WLB1=" + parent.crtbib; 
			}
		else
			rurl = rurl + "&BEZIRK=J";
		}
    parent.frames[1].location.href = rurl;   
    regout();
    }
}
//-----------------------------------------------------------------------------
//Schliessen von Registern
//-----------------------------------------------------------------------------
function regout()
{
if (adisinfo.status == "ja")
	{
    adisinfo.status = "nein";
	window2.close();
	}
else
if((typeof (window2) != "undefined") && (window2.closed != true))
    window2.close();
}

//-----------------------------------------------------------------------------
//Schliessen von Overlays
//-----------------------------------------------------------------------------
function closeovl()
{
window2.opener.parent.doubleorder = false;
window2.self.close()
}

//-----------------------------------------------------------------------------
//Drucken von Overlays
//-----------------------------------------------------------------------------
function druck()
{
window2.print();
window2.focus();
}

//-----------------------------------------------------------------------------
//Overlayfenster zurueckblaettern
//-----------------------------------------------------------------------------
function ovlbk()
{
window2.history.go(-1)
window2.opener.parent.doubleorder = false;
}
//-----------------------------------------------------------------------------
//Selektion Verbundbibliotheken
//-----------------------------------------------------------------------------
function zeigebib(w3bzk,bvsigl)
{
parent.stopscroll = 1;
var wsigl   = ">1";
var bverbu  = "x";
parent.kifrmnm   = "TCBKSW";
parent.gifrmnm   = "BLDKSW";
adisinfo.adisdb = "KS";
url         = cgistring + pfad + "?WEB=JA&ADISDB=" + adisinfo.adisdb + "&WSIGL=" + wsigl + "&BVERBU=" + bverbu + "&$FRMNM=" + parent.kifrmnm + "&WEBNO=no" + "&W3BZK=" + w3bzk + "&BVSIGL=" + bvsigl + "&NOBIB=no";
parent.frames[1].location.href = url;
regout();
}
//-----------------------------------------------------------------------------
function waehlebib()
{
regout();
var orderpage2 =	"<body class=\"navi\"><form name=\"bibliotheksauswahl\" action=\"\" onsubmit=\"javascript:return false;\"><table width=\"90%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" title=\"aDIS/BMS OPAC Bibliotheksauswahl\"><tr><td class=\"button\" colspan=\"2\">Bezirksauswahl.</td></tr>";
var orderpage3	=	"<tr><td colspan=\"2\" height=\"26\" class=\"button\"><select class=\"button\" name=\"w3bzk\"  size=\"1\" title=\"Bezirksauswahl\"><option value=\"\" selected>im VÖBB</option><option value=\"Reinickendorf\">in Reinickendorf</option><option value=\"Pankow\">in Pankow</option><option value=\"Tempelhof-Schöneberg\">in Tempelhof-Schöneberg </option><option value=\"Mitte\">in Mitte-Tiergarten-Wedding</option><option value=\"Charlottenburg-Wilmersdorf\">in Charlottenburg-Wilmersdorf</option><option value=\"Friedrichshain-Kreuzberg\">in Friedrichshain-Kreuzberg</option><option value=\"Lichtenberg\">in Lichtenberg</option><option value=\"Neukölln\">in Neukölln</option><option value=\"Spandau\">in Spandau</option><option value=\"Marzahn-Hellersdorf\">in Marzahn-Hellersdorf</option><option value=\"Treptow-Köpenick\">in Treptow-Köpenick</option><option value=\"Steglitz-Zehlendorf\">in Steglitz-Zehlendorf </option><option value=\"ZLB\">in der ZLB </option></select></td></tr><tr><td colspan=\"2\" height=\"26\" class=\"button\">oder Sigel: <input type=\"Text\" name=\"BVSIGL\" align=\"LEFT\" size=\"4\" maxlength=\"4\"></td></tr>";
var orderpage4 =	"<tr><td class=\"button\"><a href=\"javascript:window.opener.	parent.zeigebib(document.bibliotheksauswahl.w3bzk.options[document.bibliotheksauswahl.w3bzk.selectedIndex].value,document.bibliotheksauswahl.BVSIGL.value)\" class=\"button\" onMouseOut=\"opener.status=''\" onMouseOver=\"opener.status='Klicken Sie hier, um die Bibliotheken anzuzeigen.'; return true\">Anzeigen</a></td><td class=\"button\"><a href=\"javascript:window.opener.parent.closeovl()\" class=\"button\" onMouseOut=\"opener.status=''\" onMouseOver=\"opener.status='Klicken Sie hier, um die Auswahl abzubrechen.'; return true\">Abbruch</a></td></tr></table></form></body></html>";
window2 = open ("", "Orderwindow","scrollbars=no,width=350,height=110");
if(window2.opener == "") 
	window2.opener=self;
window2.document.open();
with(window2.document)
	write(orderpage1 + orderpage2 + orderpage3 + orderpage4);
window2.document.close();
}

//-----------------------------------------------------------------------------
// Suche im Thesaurus (db1)
//-----------------------------------------------------------------------------
function searchthis(what,where,field)
{
var teil2;
such = new String (what)
//Blanks und Doppelpunkte eliminieren
teil2   = such.split(" ");
such    = teil2.join("+");
teil2   = such.split(":");
such    = teil2.join("%3a");
if(such.length == 0)
    alert("Bitte geben Sie den gesuchten Begriff in das Feld \"Schlagwörter\" ein");
else
    {
    rurl = cgistring + pfad + "?ADISDB=" + where + "&WEB=JA&" + field + "=" + such;
        parent.stopscroll = 1;
	//kdid=mu
	if(parent.kdid == "mu")
		{
		if(parent.crtbib != "")
			{
			parent.bezirk = "int";
			rurl = rurl + "&WLB1=" + parent.crtbib; 
			}
		else
			rurl = rurl + "&BEZIRK=J";
		}
    adisinfo.adisdb = parent.frames[1].document.forms[0].elements[0].value;
    parent.frames[1].location.href = rurl;
    }
}    
//-----------------------------------------------------------------------------
function navharm(nav1,nav2)
{
//if((parent.frames[1].location.href.indexOf("/kd/") != -1) && (parent.frames[0].location.href.indexOf(nav1) == -1))
//	parent.frames[0].location.href = nav1;
//else
//if((parent.frames[1].location.href.indexOf("/kd/") == -1) && (parent.frames[0].location.href.indexOf(nav2) == -1))
//	parent.frames[0].location.href = nav2;
if(parent.frames.main.location.href.indexOf("/HS/") != -1)
  parent.frames[0].location.href=nav2;
else
if(parent.frames.main.location.href.indexOf("/PE/") != -1)
  parent.frames[0].location.href=nav2;
else
if(parent.frames.main.location.href.indexOf("/BF/") != -1)
  parent.frames[0].location.href=nav2;
else
if(parent.frames.main.location.href.indexOf("/verbund/") != -1)
  parent.frames[0].location.href="/navigation_verbund.html";
else
if(parent.frames.main.location.href.indexOf("aktuell") != -1)
  parent.frames[0].location.href="/navigation_aktuell.html";
else
if(parent.frames.main.location.href.indexOf("help") != -1)
  parent.frames[0].location.href="/navigation_help.html";
else
  parent.frames[0].location.href="/navigation.html";
}
//-----------------------------------------------------------------------------
function setservice(servicenew,db)
{
parent.resetgiisns();
if(((parent.servicename != servicenew) && (servicenew != "")) || (db != parent.adisinfo.adisdb) && (parent.adisinfo.adisdb != "KS")) {
  parent.resetorderlist("nein");
  parent.resettrefferlist("nein");
}
if(servicenew != "") {
  parent.cgistring = parent.cgistr + servicenew;
  parent.servicename = servicenew;
  }
if(db != "")
  parent.adisinfo.adisdb = db;
if(servicenew == "w3_t")
  parent.frames.main.document.forms[0].ADAVON.value="20050626";
else
  parent.frames.main.document.forms[0].ADAVON.value="";
}
//-----------------------------------------------------------------------------

