function showQuery() {	alert(document.forms[0].FullQuery.value);}function BtnHilfe() {	PRKEY = document.forms[0].PRKEY.value;	if (PRKEY == "") {		parent.location.href = dbPathName() + "/helppage?OpenPage";	} else {		licensekey = document.forms[0].fd_EditKey.value;		m = document.forms[0].ISMEDIA.value;		if (licensekey == "")			parent.location.href = dbPathName() + "/helppage?OpenPage&PRKEY="					+ PRKEY + "&media=" + m;		else			parent.location.href = dbPathName() + "/helppage?OpenPage&PRKEY="					+ PRKEY + "&media=" + m + "&EditKey=" + licensekey;	}}function BtnFAQ() {	parent.location.href = "http://www.agi-imc.de/dandelon/FAQ_in_iS.nsf"}function start() {	PRKEY = document.forms[0].PRKEY.value;	m = document.forms[0].ISMEDIA.value;	licensekey = document.forms[0].fd_EditKey.value;	if (PRKEY == "") {		parent.location.href = dbPathName();	} else {		if (licensekey == "")			parent.location.href = dbPathName() + "/fmQSF?OpenForm&PRKEY="					+ PRKEY + "&media=" + m;		else			parent.location.href = dbPathName() + "/fmQSF?OpenForm&PRKEY="					+ PRKEY + "&media=" + m + "&EditKey=" + licensekey;	}}function startfirst() {	parent.location.href = dbPathName();}function Googledefine() {	query = document.forms[0].fd_search.value;	parent.location.href = "http://www.google.co.in/search?hl=en&q=define:"			+ query + "&btnG=Search&meta="}function OpenEbook() {	window.open(document.forms[0].fd_URLFullTextTx.value);}function BtnZuschicken() {	var retUnid = popUnids();	lang = document.forms[0].fd_LangSettings_1.value;	if (retUnid == "")		alert(document.forms[0].fd_BtnZuschickenblank.value);	else {		var realpath = dbPathName();		var arg = 'scrollbars=0,height=150,width=450';		var w = 450;		var h = 275;		var winl = (screen.width - w) / 2;		var wint = (screen.height - h) / 2;		winprops = 'height=' + h + ',width=' + w + ',top=' + wint + ',left='				+ winl + 'resizable=0'		arg = winprops;		var arrUnid = popUnids().split(",")		if (arrUnid.length > 5)			// alert("Sie k\u00F6nnen nur maximal 5 Inhaltsverzeichnisse versenden,			// bitte korrigieren Sie ihre Wahl\nYou cannot forward more than 5			// documents at once")			alert(document.forms[0].fd_BtnZuschickenlength.value);		else			PRKEY = document.forms[0].PRKEY.value;		if (PRKEY == "")			newwin = window.open(realpath + '/fmDialForward?OpenForm&lang='					+ lang + '&Unids=' + popUnids(), "DialWin", arg);		else			newwin = window.open(realpath + '/fmDialForward?OpenForm&PRKEY='					+ PRKEY + '&lang=' + lang + '&Unids=' + popUnids(),					"DialWin", arg);	}}function popUnids() {	var tmpCnt = 1;	var selUnids = "";	var count = 0;	totRows = document.forms[0].totRows.value;	for (tmpCnt = 1; tmpCnt < totRows; tmpCnt++) {		if (eval("document.forms[0].c" + tmpCnt + ".checked")) {			if (selUnids == "") {				selUnids = eval("document.forms[0].c" + tmpCnt + ".value");			} else {				selUnids = selUnids + ","						+ eval("document.forms[0].c" + tmpCnt + ".value");			}		}	}	return (selUnids);}function librarylink(PRKEY, ISSN, ISBN, SYSNO, UNIQID, frmSource, OthSource) {	document.forms[0].fddocid.value = PRKEY;	document.forms[0].fdISSNTX.value = ISSN;	document.forms[0].al_ISBN.value = ISBN;	document.forms[0].fdSystemNumber.value = SYSNO;	document.forms[0].FDUNIQIDTX.value = UNIQID;	document.forms[0].fdSourceTX.value = frmSource;	document.forms[0].fdOtherSourcesTX.value = OthSource;	Bibliothek();}function Bibliothek() {	docISSN = document.forms[0].fdISSNTX.value;	docISBN = document.forms[0].al_ISBN.value;	docSYSNO = document.forms[0].fdSystemNumber.value;	FDUNIQIDTX = document.forms[0].FDUNIQIDTX.value;	fromSource = document.forms[0].fdSourceTX.value;	SearchIn = document.forms[0].ISMEDIA.value;	SearchStr = document.forms[0].fd_search.value;	selLib = document.forms[0].fd_SelectedLibrary.value;	if (document.forms[0].pos.value == "2") {		PRKEY = document.forms[0].fddocid.value;	} else {		PRKEY = document.forms[0].PRKEY.value;	}	if (selLib == "-- none --1" || selLib == "" || selLib == "All") {		// alert("Bitte w\u00E4hlen Sie die gew\u00FCnschte Bibliothek\n Please select		// your preferred library");		alert(document.forms[0].fd_libraryblank.value);		if (PRKEY == "")			parent.location.href = dbPathName() + "/" + "frm_Pref?OpenForm&q="					+ SearchStr + "&media=" + SearchIn + "&pos=2";		else			parent.location.href = dbPathName() + "/" + "frm_Pref?OpenForm&q="					+ SearchStr + "&media=" + SearchIn + "&pos=2&PRKEY="					+ PRKEY;	} else {		if (selLib != fromSource) {			if (document.forms[0].fdOtherSourcesTX.value.indexOf(selLib) < 0) {				allLibraries = document.forms[0].AllLibs.value.split("<>");				for (i = 0; i < allLibraries.length; i++) {					if (allLibraries[i].split("[]")[0] != "") {						if (selLib == allLibraries[i].split("[]")[0]) {							SearchTyp = allLibraries[i].split("[]")[1]									.split("@")							if (SearchIn == "B") {								LookinArray = 0;							}							if (SearchIn == "A") {								LookinArray = 1;							}							libURL = SearchTyp[LookinArray].split("!")[1];							libKey = SearchTyp[LookinArray].split("!")[2];							if (libKey == "SYSNO") {								window										.open(libURL.replace("<VALUE>",												docSYSNO));							}							if (libKey == "ISSN") {								window.open(libURL.replace("<VALUE>", docISSN));							}							if (libKey == "ISBN") {								window.open(libURL.replace("<VALUE>", docISBN));							}							if (libKey == "AGICODE") {								window.open(libURL.replace("<VALUE>",										FDUNIQIDTX));							}							return;						}					}				}			}		}		allLibraries = document.forms[0].AllLibs.value.split("<>");		for (i = 0; i < allLibraries.length; i++) {			if (allLibraries[i].split("[]")[0] != "") {				if (selLib == allLibraries[i].split("[]")[0]) {					SearchTyp = allLibraries[i].split("[]")[1].split("@")					if (SearchIn == "B") {						LookinArray = 0;					}					if (SearchIn == "A") {						LookinArray = 1;					}					libURL = SearchTyp[LookinArray].split("!")[1];					libKey = SearchTyp[LookinArray].split("!")[2];					if (libKey == "SYSNO") {						window.open(libURL.replace("<VALUE>", docSYSNO));					}					if (libKey == "ISSN") {						window.open(libURL.replace("<VALUE>", docISSN));					}					if (libKey == "ISBN") {						window.open(libURL.replace("<VALUE>", docISBN));					}					if (libKey == "AGICODE") {						window.open(libURL.replace("<VALUE>", FDUNIQIDTX));					}				}			}		}	}}function Kaufen() {	var pathname = location.pathname;	var ind = pathname.indexOf(".nsf");	ind += 4	var realpath = pathname.substring(0, ind);	var arg = 'height=600,width=900,scrollbars=yes,resizable=yes,10,10';	var titleString = "";	if (document.forms[0].fdTitleTX.value != "") {		titleString = document.forms[0].fdTitleTX.value;	} else		titleString = "   ";	var authorString = "";	if (document.forms[0].al_Autor.value != "") {		authorString = document.forms[0].al_Autor.value;	} else		authorString = "   ";	var sprach = ""	if (document.forms[0].fdLanguageTX.value != "")		sprach = document.forms[0].fdLanguageTX.value;	else		sprach = "  ";	var strVerlag = ""	if (document.forms[0].fdVerlagTX.value != "") {		strVerlag = document.forms[0].fdVerlagTX.value;	} else		strVerlag = "   ";	var strErs = "";	if (document.forms[0].al_Erscheinungsjahr.value != "") {		strErs = document.forms[0].al_Erscheinungsjahr.value;	} else {		strErs = "   ";		var strVerlagShow = "";	}	if (document.forms[0].fdshowVerlag.value != "") {		strVerlagShow = document.forms[0].fdshowVerlag.value;	} else {		strVerlagShow = "   ";		var strCooks = "**";		var cooks = getCookie("PRKEY");		if (cooks != null)			strCooks = cooks;		else			strCooks = document.forms[0].PRKEY.value;	}	titleString = titleString.replace(/<\/span>/g, "")	titleString = titleString.replace(/<SPAN STYLE=\'background:none;\'>/g, "")	titleString = titleString.replace(/<SPAN STYLE=\'background: #FFFF80;\'>/g,			"")	PRKEY = document.forms[0].PRKEY.value;	if (PRKEY == "") {		assignPathML = realpath + "/fmPurchaseReq?OpenForm&Query_String="				+ sprach + "|" + titleString + "|" + authorString + "|"				+ strVerlag + "|" + strErs + "|sprach|" + strVerlagShow + "|"				+ document.forms[0].al_ISBN.value + "|" + strCooks				+ "cutString=" + document.forms[0].fdKaufenPopupURLTX.value				+ "|price=" + document.forms[0].fdFixedPriceTX.value;	} else {		assignPathML = realpath + "/fmPurchaseReq?OpenForm&PRKEY=" + PRKEY				+ "&Query_String=" + sprach + "|" + titleString + "|"				+ authorString + "|" + strVerlag + "|" + strErs + "|sprach|"				+ strVerlagShow + "|" + document.forms[0].al_ISBN.value + "|"				+ strCooks + "cutString="				+ document.forms[0].fdKaufenPopupURLTX.value + "|price="				+ document.forms[0].fdFixedPriceTX.value;	}	// newwin = window.open(assignPathML,"Kaufen",arg)	if (document.forms[0].al_ISBN.value != "") {		URL_Amazon = "http://www.amazon.de/dp/"				+ document.forms[0].al_ISBN.value + "/?tag=dandeloncom-21";	} else {		URL_Amazon = "http://www.amazon.de/gp/search?keywords="				+ document.forms[0].fdTitleTX.value				+ "&index=books&tag=dandeloncom-21";	}	newwin = window.open(URL_Amazon, "Kaufen", arg)}function suchen() {	var pathname = location.pathname;	var ind = pathname.indexOf(".nsf");	ind += 4	var realpath = pathname.substring(0, ind);	window.location.href = realpath + "/fmRelDocs?OpenForm";}function MM_openBrWindow(theURL, winName, features) {	var brow = navigator.appName;	if (brow != "Netscape") {		var sname = parent.frames("detail").document.forms[0].Server_Name.value;		var ipath = parent.frames("detail").document.forms[0].iSearchPath.value;		var isbn = parent.frames("detail").document.forms[0].al_ISBN.value				+ ".jpg";	} else {		var sname = window.frames.document.forms[0].Server_Name.value;		var ipath = window.frames.document.forms[0].iSearchPath.value;		var isbn = window.frames.document.forms[0].al_ISBN.value + ".jpg";	}	window.open(theURL, winName, features);}function Zuruck() {	var brow = navigator.appName;	if (brow != "Netscape") {		retFmName = parent.frames("detail").document.forms[0].FormTitle.value		if (retFmName == "Document Display") {			parent.frames("detail").history.go(-1);		} else {			parent.frames("detail").history.go(-2);		}	} else {		retFmName = window.frames.document.forms[0].FormTitle.value;		if (retFmName == "Document Display") {			window.frames.history.go(-1);		} else {			window.frames.history.go(-2);		}	}}function Zuruckflash() {	history.go(-1);}function SendDocsLinkAsMail() {	var docUnids = document.forms[0].fdUnidsTX.value	var arrUnid = docUnids.split(",")	if (arrUnid.length > 5) {		alert("Sie k\u00F6nnen nur maximal 5 Inhaltsverzeichnisse versenden, bitte korrigieren Sie ihre Wahl")		window.close()	} else {		if (document.forms[0].fdDialToAddressTX.value == "")			alert(document.forms[0].fdSendToTX.value);		else {			if (document.forms[0].fdDialSubjectTX.value == "")				// if (window.confirm("Do you want to send the documents without				// 'Subject'?")){				if (window.confirm(document.forms[0].fd_NoSubjectTX.value)) {					document.forms[0].CallAgent.click();					window.close();				} else {					alert(document.forms[0].fdSubjectTX.value);					document.forms[0].fdDialSubjectTX.focus();				}			else {				document.forms[0].CallAgent.click();			}		}	}}function checkinthesaurus() {	var t = document.forms[0].ThsDbsID.value;	cknum = eval(document.forms[0].TotalThsDbs.value);	if (document.forms[0].Fd_SelectedLibrary.value == "") {		for (m = 0; m < cknum; m++) {			eval("document.forms[0].c" + m + ".checked=true");		}		return;	}	t = t.split(",");	for (i = 0; i < t.length; i++) {		for (j = 1; j < cknum; j++) {			if (eval("document.forms[0].c" + j + ".value") == t[i]) {				eval("document.forms[0].c" + j + ".checked=true");			}		}	}	if (eval(document.forms[0].TotalThsDbs.value) == t.length + 1) {		eval("document.forms[0].c" + 0 + ".checked=true");	}}function checkall() {	var tmpCnt = 1;	cknum = eval(document.forms[0].TotalThsDbs.value);	if (document.forms[0].c0.checked == true) {		for (tmpCnt = 1; tmpCnt < cknum; tmpCnt++) {			eval("document.forms[0].c" + tmpCnt + ".checked=true");		}	} else {		for (tmpCnt = 1; tmpCnt < cknum; tmpCnt++) {			eval("document.forms[0].c" + tmpCnt + ".checked=false");		}	}}function deselectcheck() {	var tmpCnt = 1;	cknum = eval(document.forms[0].TotalThsDbs.value);	for (tmpCnt = 1; tmpCnt < cknum; tmpCnt++) {		if (eval("document.forms[0].c" + tmpCnt + ".checked") == false) {			eval("document.forms[0].c" + 0 + ".checked=false");		}	}}function selectedthesaurus() {	var tmp = 1;	var count = 1;	cknum = eval(document.forms[0].TotalThsDbs.value);	var IDvalue = "";	for (tmp = 1; tmp < cknum; tmp++) {		if (eval("document.forms[0].c" + tmp + ".checked") == true) {			count++;			if (IDvalue == "") {				IDvalue = eval("document.forms[0].c" + tmp + ".value");			} else {				IDvalue += "," + eval("document.forms[0].c" + tmp + ".value");			}		}	}	document.forms[0].ThsDbsID.value = IDvalue;}function getlibrarysettings() {	document.forms[0].fdsorttype.selectedIndex = document.forms[0].sorttype.value;	document.forms[0].AutoRefine.selectedIndex = document.forms[0].fdAutoRefine.value;	document.forms[0].fdFuzzyStemmingTX.selectedIndex = document.forms[0].sopt1.value;	document.forms[0].fdToleranz.selectedIndex = document.forms[0].sopt2.value;	document.forms[0].Fdstoreoption[document.forms[0].Fd_storeoption.value].checked = "true";	if (document.forms[0].Fd_SelectedLibrary.value != null) {		for (k = 0; k < document.forms[0].Library.length; k++) {			if (document.forms[0].Library[k].value == document.forms[0].Fd_SelectedLibrary.value) {				document.forms[0].Library.selectedIndex = k;			}		}		if (document.forms[0].Fd_LibraryRestriction.value != "") {			libSettings = document.forms[0].Fd_LibraryRestriction.value;			document.forms[0].LibResult.selectedIndex = libSettings;		} else {			document.forms[0].LibResult.selectedIndex = 0;		}	}	if (document.forms[0].fd_ResultPerPage.value != "") {		for (i = 0; i < document.forms[0].ResultPerPage.length; i++) {			if (document.forms[0].ResultPerPage[i].value == document.forms[0].fd_ResultPerPage.value)				document.forms[0].ResultPerPage.selectedIndex = i;		}	}}function SearchNow() {	server_name = document.forms[0].fd_servername.value;	query = document.forms[0].fd_search.value;	if (query == "") {		alert(document.forms[0].fd_blanksearch.value);		// alert("Sie haben nicht in eine Frage geschrieben\nYou have not typed		// in a query");		document.forms[0].fd_search.focus();	} else {		licensekey = document.forms[0].fd_EditKey.value;		media = document.forms[0].ISMEDIA.value;		PRKEY = document.forms[0].PRKEY.value;		s = document.forms[0].sorttype.value;		if (document.forms[0].pos.value == "1") {			s1 = document.forms[0].fdFuzzyStemmingTX[document.forms[0].fdFuzzyStemmingTX.selectedIndex].value;			s2 = document.forms[0].fdToleranz[document.forms[0].fdToleranz.selectedIndex].value;			document.forms[0].sopt1.value = s1;			document.forms[0].sopt2.value = s2;			if (media == 'D') {				document.forms[0].btntopicmap.click();			} else {				if (PRKEY == "") {					resultpageURL = dbPathName() + "/frm_Results?OpenForm&q="							+ query + "&page=1" + "&media=" + media + "&sort="							+ s + "&sopt1=" + s1 + "&sopt2=" + s2;				} else {					if (licensekey == "")						resultpageURL = dbPathName()								+ "/frm_Results?OpenForm&q=" + query								+ "&page=1" + "&media=" + media + "&sort=" + s								+ "&sopt1=" + s1 + "&sopt2=" + s2 + "&PRKEY="								+ PRKEY;					else						resultpageURL = dbPathName()								+ "/frm_Results?OpenForm&q=" + query								+ "&page=1" + "&media=" + media + "&sort=" + s								+ "&sopt1=" + s1 + "&sopt2=" + s2 + "&PRKEY="								+ PRKEY + "&EditKey=" + licensekey;				}				parent.location.href = resultpageURL;			}		} else {			s1 = document.forms[0].sopt1.value;			s2 = document.forms[0].sopt2.value;			if (media == 'D') {				// if(document.forms[0].pos.value =="4"){				// arg0 = document.forms[0].splitValues0.value;				// arg1=document.forms[0].splitValues1.value;				// arg2= document.forms[0].splitValues2.value;				// }				// if(PRKEY=="")				// location.href = dbPathName()+"/frmFNW?OpenForm&"+				// arg0+","+arg1+","+arg2+"&q="+query+"&media=" +				// media+"&sort="+s+"&sopt1="+s1+"&sopt2="+s2;				// else				// location.href = dbPathName()+"/frmFNW?OpenForm&"+				// arg0+","+arg1+","+arg2+"&q="+query+"&media=" +				// media+"&sort="+s+"&sopt1="+s1+"&sopt2="+s2+"&PRKEY="+PRKEY;				document.forms[0].btntopicmap.click();			} else {				if (PRKEY == "") {					resultpageURL = dbPathName() + "/frm_Results?OpenForm&q="							+ query + "&page=1" + "&media=" + media + "&sort="							+ s + "&sopt1=" + s1 + "&sopt2=" + s2;				} else {					if (licensekey == "")						resultpageURL = dbPathName()								+ "/frm_Results?OpenForm&q=" + query								+ "&page=1" + "&media=" + media + "&sort=" + s								+ "&sopt1=" + s1 + "&sopt2=" + s2 + "&PRKEY="								+ PRKEY;					else						resultpageURL = dbPathName()								+ "/frm_Results?OpenForm&q=" + query								+ "&page=1" + "&media=" + media + "&sort=" + s								+ "&sopt1=" + s1 + "&sopt2=" + s2 + "&PRKEY="								+ PRKEY + "&EditKey=" + licensekey;				}				parent.location.href = resultpageURL;			}		}	}}function SrhByRelevSrt() {	licensekey = document.forms[0].fd_EditKey.value;	document.forms[0].sorttype.value = "0"	query = document.forms[0].fd_search.value;	s1 = document.forms[0].sopt1.value;	s2 = document.forms[0].sopt2.value;	media = document.forms[0].ISMEDIA.value;	var realpath = dbPathName();	PRKEY = document.forms[0].PRKEY.value;	if (PRKEY == "")		location.href = realpath + "/frm_Results?OpenForm&q=" + query				+ "&page=1" + "&media=" + media + "&sort=0&sopt1=" + s1				+ "&sopt2=" + s2 + "&sort1=1";	else if (licensekey == "")		location.href = realpath + "/frm_Results?OpenForm&q=" + query				+ "&page=1" + "&media=" + media + "&sort=0&sopt1=" + s1				+ "&sopt2=" + s2 + "&sort1=1&PRKEY=" + PRKEY;	else		location.href = realpath + "/frm_Results?OpenForm&q=" + query				+ "&page=1" + "&media=" + media + "&sort=0&sopt1=" + s1				+ "&sopt2=" + s2 + "&sort1=1&PRKEY=" + PRKEY + "&EditKey="				+ licensekey;}function SrhByAuSrt() {	licensekey = document.forms[0].fd_EditKey.value;	document.forms[0].sorttype.value = "1"	s1 = document.forms[0].sopt1.value;	s2 = document.forms[0].sopt2.value;	query = document.forms[0].fd_search.value;	media = document.forms[0].ISMEDIA.value;	PRKEY = document.forms[0].PRKEY.value;	var realpath = dbPathName();	if (PRKEY == "")		location.href = realpath + "/frm_Results?OpenForm&q=" + query				+ "&page=1" + "&media=" + media + "&sort=1&sopt1=" + s1				+ "&sopt2=" + s2 + "&sort1=1";	else if (licensekey == "")		location.href = realpath + "/frm_Results?OpenForm&q=" + query				+ "&page=1" + "&media=" + media + "&sort=1&sopt1=" + s1				+ "&sopt2=" + s2 + "&sort1=1&PRKEY=" + PRKEY;	else		location.href = realpath + "/frm_Results?OpenForm&q=" + query				+ "&page=1" + "&media=" + media + "&sort=1&sopt1=" + s1				+ "&sopt2=" + s2 + "&sort1=1&PRKEY=" + PRKEY + "&EditKey="				+ licensekey;}function SrhByYrSrt() {	licensekey = document.forms[0].fd_EditKey.value;	document.forms[0].sorttype.value = "2"	PRKEY = document.forms[0].PRKEY.value;	s1 = document.forms[0].sopt1.value;	s2 = document.forms[0].sopt2.value;	query = document.forms[0].fd_search.value;	media = document.forms[0].ISMEDIA.value;	PRKEY = document.forms[0].PRKEY.value;	var realpath = dbPathName();	if (PRKEY == "")		location.href = realpath + "/frm_Results?OpenForm&q=" + query				+ "&page=1" + "&media=" + media + "&sort=2&sopt1=" + s1				+ "&sopt2=" + s2 + "&sort1=1";	else if (licensekey == "")		location.href = realpath + "/frm_Results?OpenForm&q=" + query				+ "&page=1" + "&media=" + media + "&sort=2&sopt1=" + s1				+ "&sopt2=" + s2 + "&sort1=1&PRKEY=" + PRKEY;	else		location.href = realpath + "/frm_Results?OpenForm&q=" + query				+ "&page=1" + "&media=" + media + "&sort=2&sopt1=" + s1				+ "&sopt2=" + s2 + "&sort1=1&PRKEY=" + PRKEY + "&EditKey="				+ licensekey;}function SrhByLngSrt() {	licensekey = document.forms[0].fd_EditKey.value;	document.forms[0].sorttype.value = "3"	PRKEY = document.forms[0].PRKEY.value;	s1 = document.forms[0].sopt1.value;	s2 = document.forms[0].sopt2.value;	query = document.forms[0].fd_search.value;	media = document.forms[0].ISMEDIA.value;	var realpath = dbPathName();	if (PRKEY == "")		location.href = realpath + "/frm_Results?OpenForm&q=" + query				+ "&page=1" + "&media=" + media + "&sort=3&sopt1=" + s1				+ "&sopt2=" + s2 + "&sort1=1";	else if (licensekey == "")		location.href = realpath + "/frm_Results?OpenForm&q=" + query				+ "&page=1" + "&media=" + media + "&sort=3&sopt1=" + s1				+ "&sopt2=" + s2 + "&sort1=1&PRKEY=" + PRKEY;	else		location.href = realpath + "/frm_Results?OpenForm&q=" + query				+ "&page=1" + "&media=" + media + "&sort=3&sopt1=" + s1				+ "&sopt2=" + s2 + "&sort1=1&PRKEY=" + PRKEY + "&EditKey="				+ licensekey;}function SrhByLibSrt() {	licensekey = document.forms[0].fd_EditKey.value;	document.forms[0].sorttype.value = "4"	PRKEY = document.forms[0].PRKEY.value;	s1 = document.forms[0].sopt1.value;	s2 = document.forms[0].sopt2.value;	query = document.forms[0].fd_search.value;	media = document.forms[0].ISMEDIA.value;	var realpath = dbPathName();	if (PRKEY == "")		location.href = realpath + "/frm_Results?OpenForm&q=" + query				+ "&page=1" + "&media=" + media + "&sort=4&sopt1=" + s1				+ "&sopt2=" + s2 + "&sort1=1";	else if (licensekey == "")		location.href = realpath + "/frm_Results?OpenForm&q=" + query				+ "&page=1" + "&media=" + media + "&sort=4&sopt1=" + s1				+ "&sopt2=" + s2 + "&sort1=1&PRKEY=" + PRKEY;	else		location.href = realpath + "/frm_Results?OpenForm&q=" + query				+ "&page=1" + "&media=" + media + "&sort=4&sopt1=" + s1				+ "&sopt2=" + s2 + "&sort1=1&PRKEY=" + PRKEY + "&EditKey="				+ licensekey;}function doclink(docid) {	searchmedia = document.forms[0].ISMEDIA.value;	licensekey = document.forms[0].fd_EditKey.value;	PRKEY = document.forms[0].PRKEY.value;	passquery = document.forms[0].FullQuery.value;	passquery = passquery.replace(new RegExp(/\)/g), "").replace(			new RegExp(/\(/g), "").replace(new RegExp(/\"/g), "").replace(			new RegExp(/\ OR /gi), ",").replace(new RegExp(/\ AND /gi), ",")			.replace(new RegExp(/\*/g), "")	query = document.forms[0].fd_search.value;	if (PRKEY == "") {		parent.location.href = dbPathName() + "/metadetails?OpenFrameSet&ID="				+ docid + "&q=" + query + "&media=" + searchmedia				+ "&searchterms=" + passquery;	} else {		if (licensekey == "")			parent.location.href = dbPathName()					+ "/metadetails?OpenFrameSet&ID=" + docid + "&q=" + query					+ "&media=" + searchmedia + "&PRKEY=" + PRKEY					+ "&searchterms=" + passquery;		else			parent.location.href = dbPathName()					+ "/metadetails?OpenFrameSet&ID=" + docid + "&q=" + query					+ "&media=" + searchmedia + "&PRKEY=" + PRKEY + "&EditKey="					+ licensekey + "&searchterms=" + passquery;	}}function openResultDoc(tmpRow) {	searchmedia = document.forms[0].ISMEDIA.value;	PRKEY = document.forms[0].PRKEY.value;	licensekey = document.forms[0].fd_EditKey.value;	passquery = document.forms[0].FullQuery.value;	passquery = passquery.replace(new RegExp(/\)/g), "").replace(			new RegExp(/\(/g), "").replace(new RegExp(/\"/g), "").replace(			new RegExp(/\ OR /gi), ",").replace(new RegExp(/\ AND /gi), ",")			.replace(new RegExp(/\*/g), "")	query = document.forms[0].fd_search.value;	if (PRKEY == "") {		parent.location.href = dbPathName() + "/metadetails?OpenFrameSet&ID="				+ eval("document.forms[0]." + tmpRow + ".value") + "&q="				+ query + "&media=" + searchmedia + "&searchterms=" + passquery;	} else {		if (licensekey == "") {			parent.location.href = dbPathName()					+ "/metadetails?OpenFrameSet&ID="					+ eval("document.forms[0]." + tmpRow + ".value") + "&q="					+ query + "&media=" + searchmedia + "&PRKEY=" + PRKEY					+ "&searchterms=" + passquery;		} else {			parent.location.href = dbPathName()					+ "/metadetails?OpenFrameSet&ID="					+ eval("document.forms[0]." + tmpRow + ".value") + "&q="					+ query + "&media=" + searchmedia + "&PRKEY=" + PRKEY					+ "&EditKey=" + licensekey + "&searchterms=" + passquery;		}	}}function onLoadDo() {	var b = document.forms[0].docunid.value;	var c = document.forms[0].fdAttachmentNamesTX.value;	// c = c.replace(new RegExp(/\%3/g),"");	PDFQuery = document.forms[0].PassQuery.value;	if (PDFQuery == "") {		PDFQuery = document.forms[0].FullQuery.value;		PDFQuery = PDFQuery.replace(new RegExp(/\)/g), "").replace(				new RegExp(/\(/g), "").replace(new RegExp(/\"/g), "").replace(				new RegExp(/\AND/gi), "").replace(new RegExp(/\OR/gi), "")				.replace(new RegExp(/\*/g), "");	} else {		PDFQuery = PDFQuery.replace(new RegExp(/\,/g), " ");	}	PDFQuery = '"' + PDFQuery + '"';	ip = document.forms[0].fd_servername.value;	article = document.forms[0].articledbname.value;	if (article == "") {		if (c == "") {			window.parent.Attachment.location.href = dbPathName()					+ "/fm_Url_Error?OpenForm";		} else {			var url1 = dbPathName() + "/0/" + b + "/$File/" + c					+ '?OpenElement#search=' + PDFQuery;			window.parent.Attachment.location.href = url1;		}	} else {		if (document.forms[0].fdURLTX.value == "NO URL DEFINED") {			if (document.forms[0].fdAttachmentNamesTX.value != "") {			var url1 = "http://www.dandelon.com/" + article + "/0/" + b + "/$File/" + c					+ '?OpenElement#search=' + PDFQuery;			window.parent.Attachment.location.href = url1;			return false;			}			else {			window.parent.Attachment.location.href = dbPathName()					+ "/fm_Url_Error?OpenForm";			return false;			}		}		if (document.forms[0].fdURLTX.value != "") {			var url1 = document.forms[0].fdURLTX.value;			var is_protocol_ok = url1.indexOf('http://');			if (is_protocol_ok == -1) {				url1 = "http://" + url1;				window.parent.Attachment.location.href = url1;				return false;			} else {				window.parent.Attachment.location.href = url1;				return false;			}		} else {			window.parent.Attachment.location.href = dbPathName()					+ "/fm_Url_Error?OpenForm";			return false;		}	}}function GoPrefPage() {	PRKEY = document.forms[0].PRKEY.value;	server_name = document.forms[0].fd_servername.value;	query = document.forms[0].fd_search.value;	media = document.forms[0].ISMEDIA.value;	licensekey = document.forms[0].fd_EditKey.value;	pos = document.forms[0].pos.value;	if (pos == "1") {		sopt1 = document.forms[0].fdFuzzyStemmingTX[document.forms[0].fdFuzzyStemmingTX.selectedIndex].value;		sopt2 = document.forms[0].fdToleranz[document.forms[0].fdToleranz.selectedIndex].value;		if (document.forms[0].PRKEY.value == "") {			resultpageURL = dbPathName() + "/" + "frm_Pref?OpenForm&q=" + query					+ "&pos=" + pos + "&sopt1=" + sopt1 + "&sopt2=" + sopt2;		} else if (licensekey == "")			resultpageURL = dbPathName() + "/" + "frm_Pref?OpenForm&q=" + query					+ "&pos=" + pos + "&sopt1=" + sopt1 + "&sopt2=" + sopt2					+ "&PRKEY=" + PRKEY + "&media=" + media;		else			resultpageURL = dbPathName() + "/" + "frm_Pref?OpenForm&q=" + query					+ "&pos=" + pos + "&sopt1=" + sopt1 + "&sopt2=" + sopt2					+ "&PRKEY=" + PRKEY + "&media=" + media + "&EditKey="					+ licensekey;	} else {		s1 = document.forms[0].sopt1.value;		s2 = document.forms[0].sopt2.value;		if (document.forms[0].PRKEY.value == "") {			resultpageURL = dbPathName() + "/" + "frm_Pref?OpenForm&q=" + query					+ "&media=" + media + "&pos=" + pos + "&sopt1=" + s1					+ "&sopt2=" + s2;		} else {			if (licensekey == "")				resultpageURL = dbPathName() + "/" + "frm_Pref?OpenForm&q="						+ query + "&media=" + media + "&pos=" + pos + "&sopt1="						+ s1 + "&sopt2=" + s2 + "&PRKEY=" + PRKEY;			else				resultpageURL = dbPathName() + "/" + "frm_Pref?OpenForm&q="						+ query + "&media=" + media + "&pos=" + pos + "&sopt1="						+ s1 + "&sopt2=" + s2 + "&PRKEY=" + PRKEY + "&EditKey="						+ licensekey;		}	}	parent.location.href = resultpageURL;}function doOnLoad() {	if (getCookie("ISMEDIA") == null) {		setCookie("ISMEDIA", "B", "Wed, 01-Jan-20 00:00:01 GMT", "", "", 0);	}	if (getCookie("PRKEY") == null) {		setCookie("PRKEY", document.forms[0].fd_PRKEY.value,				"Wed, 01-Jan-20 00:00:01 GMT", "", "", 0);		document.forms[0].HTTP_COOKIE.value = 'ISMEDIA=B; PRKEY=' + document.forms[0].fd_PRKEY.value;	}}function libraryentry() {	if (getCookie("PRKEY") == null) {		setCookie("ISMEDIA", "B", "Wed, 01-Jan-20 00:00:01 GMT", "", "", 0);		setCookie("PRKEY", document.forms[0].fd_PRKEY.value,				"Wed, 01-Jan-20 00:00:01 GMT", "", "", 0);	}}function saveagain() {	var Timestamp = Date().split(" GMT")[0];	for (i = 0; i < document.forms[0].Fdstoreoption.length; i++) {		if (document.forms[0].Fdstoreoption[i].checked)			document.forms[0].Fd_storeoption.value = document.forms[0].Fdstoreoption[i].value;	}	licensekey = document.forms[0].fd_EditKey.value;	document.forms[0].Fdtime.value = Timestamp	m = document.forms[0].ISMEDIA.value;	PRKEY = document.forms[0].PRKEY.value;	query = document.forms[0].fd_search.value	document.forms[0].Fd_SelectedLibrary.value = document.forms[0].Library.value;	document.forms[0].Fd_LibraryRestriction.value = document.forms[0].LibResult.value;	document.forms[0].fd_ResultPerPage.value = document.forms[0].ResultPerPage.value;	document.forms[0].sorttype.value = document.forms[0].fdsorttype.value;	document.forms[0].fdAutoRefine.value = document.forms[0].AutoRefine.value;	document.forms[0].sopt1.value = document.forms[0].fdFuzzyStemmingTX[document.forms[0].fdFuzzyStemmingTX.selectedIndex].value;	document.forms[0].sopt2.value = document.forms[0].fdToleranz[document.forms[0].fdToleranz.selectedIndex].value;	s1 = document.forms[0].sopt1.value;	s2 = document.forms[0].sopt2.value;	document.forms[0].fdFuzzyTerm.value = document.forms[0].fdFuzzyStemmingTX.options[s1].text;	document.forms[0].fdToleranzTerm.value = document.forms[0].fdToleranz.options[s2].text;	selectedthesaurus();	if (document.forms[0].pos.value == "3")		document.forms[0].btntopicmap.click();	else {		if (document.forms[0].pos.value == "1") {			if (document.forms[0].PRKEY.value == "") {				document.forms[0].myurl.value = "http://" + location.hostname						+ dbPathName();			} else {				if (licensekey == "")					document.forms[0].myurl.value = "http://"							+ location.hostname + dbPathName()							+ "/fmQSF?OpenForm&PRKEY=" + PRKEY + "&media=" + m;				else					document.forms[0].myurl.value = "http://"							+ location.hostname + dbPathName()							+ "/fmQSF?OpenForm&PRKEY=" + PRKEY + "&media=" + m							+ "&EditKey=" + licensekey;			}		} else {			if (document.forms[0].pos.value == "2") {				if (document.forms[0].PRKEY.value == "") {					document.forms[0].myurl.value = "http://"							+ location.hostname + dbPathName() + "/"							+ "frm_Results?OpenForm&q=" + query + "&page=1"							+ "&media=" + m + "&sort="							+ document.forms[0].sorttype.value + "&sopt1=" + s1							+ "&sopt2=" + s2;				} else {					if (licensekey == "")						document.forms[0].myurl.value = "http://"								+ location.hostname + dbPathName() + "/"								+ "frm_Results?OpenForm&q=" + query + "&page=1"								+ "&media=" + m + "&sort="								+ document.forms[0].sorttype.value + "&sopt1="								+ s1 + "&sopt2=" + s2 + "&PRKEY=" + PRKEY;					else						document.forms[0].myurl.value = "http://"								+ location.hostname + dbPathName() + "/"								+ "frm_Results?OpenForm&q=" + query + "&page=1"								+ "&media=" + m + "&sort="								+ document.forms[0].sorttype.value + "&sopt1="								+ s1 + "&sopt2=" + s2 + "&PRKEY=" + PRKEY								+ "&EditKey=" + licensekey;				}			}		}		document.forms[0].agtMakePrefSettings.click();	}}function nextpage() {	currentURL = location.href;	var vars = currentURL.split("&");	for ( var i = 0; i < vars.length; i++) {		var pair = vars[i].split("=");		if (pair[0] == "page") {			page = "&page=" + pair[1];		}	}	next_to = parseInt(document.forms[0].fd_PosFrom.value)			+ parseInt(document.forms[0].fd_PosLimit.value);	nextpageURL = currentURL.replace(page, "&page=" + next_to);	parent.location.href = nextpageURL;}function previouspage() {	currentURL = location.href;	var vars = currentURL.split("&");	for ( var i = 0; i < vars.length; i++) {		var pair = vars[i].split("=");		if (pair[0] == "page") {			page = "&page=" + pair[1];		}	}	next_to = parseInt(document.forms[0].fd_PosFrom.value)			- parseInt(document.forms[0].fd_PosLimit.value);	nextpageURL = currentURL.replace(page, "&page=" + next_to);	parent.location.href = nextpageURL;}function getQueryVariable(variable) {	var query = window.location.search.substring(1);	var vars = query.split("&");	for ( var i = 0; i < vars.length; i++) {		var pair = vars[i].split("=");		if (pair[0] == variable) {			return pair[1];		}	}	return false;}function ChangeLanguage(language) {	switch (language) {	case "EN":		document.forms[0].fd_LangSettings.value = 1;		break	case "DE":		document.forms[0].fd_LangSettings.value = 2;		break	case "ES":		document.forms[0].fd_LangSettings.value = 3;		break	case "FR":		document.forms[0].fd_LangSettings.value = 4;		break	case "PT":		document.forms[0].fd_LangSettings.value = 5;		break	case "IT":		document.forms[0].fd_LangSettings.value = 6;		break	case "GR":		document.forms[0].fd_LangSettings.value = 7;		break	case "DU":		document.forms[0].fd_LangSettings.value = 8;		break	case "DA":		document.forms[0].fd_LangSettings.value = 9;		break	case "SE":		document.forms[0].fd_LangSettings.value = 10;		break	case "NO":		document.forms[0].fd_LangSettings.value = 11;		break;	case "FI":		document.forms[0].fd_LangSettings.value = 12;		break;	case "CZ":		document.forms[0].fd_LangSettings.value = 13;		break	case "PL":		document.forms[0].fd_LangSettings.value = 15;		break	case "RU":		document.forms[0].fd_LangSettings.value = 16;		break	case "RO":		document.forms[0].fd_LangSettings.value = 17;		break	case "HU":		document.forms[0].fd_LangSettings.value = 18;		break	case "CN":		document.forms[0].fd_LangSettings.value = 20;		break	case "TU":		document.forms[0].fd_LangSettings.value = 19;		break	case "BU":		document.forms[0].fd_LangSettings.value = 21;		break	case "CA":		document.forms[0].fd_LangSettings.value = 22;		break	case "LI":		document.forms[0].fd_LangSettings.value = 23;		break	case "UK":		document.forms[0].fd_LangSettings.value = 24;		break	case "AR":		document.forms[0].fd_LangSettings.value = 25;		break	case "SL":		document.forms[0].fd_LangSettings.value = 26;		break	case "HR":		document.forms[0].fd_LangSettings.value = 27;		break	case "SR":		document.forms[0].fd_LangSettings.value = 28;		break	}	document.forms[0].btnLanguageSettings.click();}function Ordersend() {	var storeOpt = 0;	if (document.forms[0].fdBuyQuantityNO.value == "") {		alert(document.forms[0].fd_fillfields.value);		document.forms[0].fdBuyQuantityNO.focus();		return false;	}	if (document.forms[0].fdBuyFirstNameTX.value == "") {		alert(document.forms[0].fd_fillfields.value);		document.forms[0].fdBuyFirstNameTX.focus();		return false;	}	if (document.forms[0].fdBuyFamilyNameTX.value == "") {		alert(document.forms[0].fd_fillfields.value);		document.forms[0].fdBuyFamilyNameTX.focus();		return false;	}	if (document.forms[0].fdBuyStreetAddressTX.value == "") {		alert(document.forms[0].fd_fillfields.value);		document.forms[0].fdBuyStreetAddressTX.focus();		return false;	}	if (document.forms[0].fdBuyZipCodeTX.value == "") {		alert(document.forms[0].fd_fillfields.value);		document.forms[0].fdBuyZipCodeTX.focus();		return false;	}	if (document.forms[0].fdBuyLocationTX.value == "") {		alert(document.forms[0].fd_fillfields.value);		document.forms[0].fdBuyLocationTX.focus();		return false;	}	if (document.forms[0].fdBuyPhoneTXO.value == "") {		alert(document.forms[0].fd_fillfields.value);		document.forms[0].fdBuyPhoneTXO.focus();		return false;	}	if (document.forms[0].fdBuyEMailTX.value == "") {		alert(document.forms[0].fd_fillfields.value);		document.forms[0].fdBuyEMailTX.focus();		return false;	}	for ( var i = 0; i < 3; i++) {		if (document.forms[0].Fdstoreoption[i].checked) {			storeOpt = i;		}	}	if (storeOpt < 2) {		document.forms[0].setProfile.click();		alert(document.forms[0].fd_Personaldata.value);	} else {		document.forms[0].callAgent.click();	}}function ProfileRemove() {	document.forms[0].fdBuyCompanyNameTXO.value = "";	document.forms[0].fdBuyDepartmentTXO.value = "";	document.forms[0].fdBuyFirstNameTX.value = "";	document.forms[0].fdBuyFamilyNameTX.value = "";	document.forms[0].fdAcademicTitleTX.value = "";	document.forms[0].fdBuyStreetAddressTX.value = "";	document.forms[0].fdBuyZipCodeTX.value = "";	document.forms[0].fdBuyLocationTX.value = "";	document.forms[0].fdBuyPhoneTXO.value = "";	document.forms[0].fdBuyEMailTX.value = "";	document.forms[0].fdBuyCostCenterTX.value = "";	document.forms[0].fdBuyClientAccountNumberTX.value = "";	document.forms[0].fdBuyBankAccountNumberTX.value = "";	document.forms[0].fdBuyBankNameTX.value = "";	document.forms[0].fdBuyBankNumberTX.value = "";	document.forms[0].fdBuyCommentO.value = "";	document.forms[0].fdBuySalutationTX.value = "Frau";	document.forms[0].fdBuyCountryTXO.value = "Deutschland";	document.forms[0].Fdstoreoption.value = "0"	document.forms[0].fd_killProfile.value = "1"	document.forms[0].getProfile.click();	alert(document.forms[0].fd_Profile.value);}function fixDate(date) {	var base = new Date(0);	var skew = base.getTime();	if (skew > 0)		date.setTime(date.getTime() - skew);}function changeMEDIA(MEDIA) {	if (document.forms[0].PRKEY.value == "") {		setCookie("ISMEDIA", MEDIA);		var t = document.forms[0].fd_search.value;		url = location.href;		if (t != "") {			urlquery = location.href.indexOf("&q=");			if (urlquery == -1) {				urlquery = location.href + "&q=" + t;				url = urlquery;			}		}		location.href = url;	} else {		url = location.href.split("&media=")[0];		url = url + "&media=" + MEDIA;		location.href = url;	}}function RchangeMEDIA(MEDIA) {	s1 = document.forms[0].sopt1.value;	s2 = document.forms[0].sopt2.value;	query = document.forms[0].fd_search.value;	s = document.forms[0].sorttype.value;	PRKEY = document.forms[0].PRKEY.value;	if (query == "") {		alert(document.forms[0].fd_blanksearch.value);		document.forms[0].fd_search.focus();	} else {		if (MEDIA == 'D') {			document.forms[0].ISMEDIA.value = MEDIA;			document.forms[0].btntopicmap.click();		} else {			if (document.forms[0].PRKEY.value == "") {				setCookie("ISMEDIA", MEDIA);				currentURL = dbPathName() + "/frm_Results?OpenForm&q=" + query						+ "&page=1" + "&media=" + MEDIA + "&sort=" + s						+ "&sopt1=" + s1 + "&sopt2=" + s2;			} else {				licensekey = document.forms[0].fd_EditKey.value;				if (licensekey == "")					currentURL = dbPathName() + "/frm_Results?OpenForm&q="							+ query + "&page=1" + "&media=" + MEDIA + "&sort="							+ s + "&sopt1=" + s1 + "&sopt2=" + s2 + "&PRKEY="							+ PRKEY;				else					currentURL = dbPathName() + "/frm_Results?OpenForm&q="							+ query + "&page=1" + "&media=" + MEDIA + "&sort="							+ s + "&sopt1=" + s1 + "&sopt2=" + s2 + "&PRKEY="							+ PRKEY + "&EditKey=" + licensekey;				if (MEDIA == 'A')					currentURL = currentURL.replace("media=B", "media=A");				else					currentURL = currentURL.replace("media=A", "media=B");			}			// alert('changing to ' + currentURL);			parent.location.href = currentURL;		}	}}function dbPathName() {	var pathname = location.pathname;	var ind = pathname.indexOf(".nsf");	ind += 4	var realpath = pathname.substring(0, ind);	return realpath;}function getCookie(name) {	var dc = "" + document.cookie;	var prefix = name + "=";	var begin = dc.indexOf("; " + prefix);	if (begin == -1) {		begin = dc.indexOf(prefix);		if (begin != 0)			return null;	} else		begin += 2;	var end = document.cookie.indexOf(";", begin);	if (end == -1)		end = dc.length;	return unescape(dc.substring(begin + prefix.length, end));}function setCookie(name, value, expires, path, domain, secure) {	var curCookie = name + "=" + escape(value)			+ ((expires) ? "; expires=" + expires : "")			+ ((path) ? "; path=" + "/" : "")			+ ((domain) ? "; domain=" + domain : "")			+ ((secure) ? "; secure" : "");	document.cookie = curCookie;}function getINT() {	var Dbids = "";	var tmpCnt = 1;	var totCnt = document.forms[0].TotalThsDbs.value;	var SeleVal = "1";	SeleVal = SeleVal + "@" + "1";	SeleVal = SeleVal + "@" + "F";	for (tmpCnt = 1; tmpCnt < totCnt; tmpCnt++) {		if (eval("document.forms[0].c" + tmpCnt + ".checked==true")) {			Dbids = Dbids + "@"					+ eval("document.forms[0].c" + tmpCnt + ".value");		}	}	SeleVal = SeleVal + "@" + tmpCnt;	if (Dbids != "") {		SeleVal = SeleVal + Dbids;	}	SeleVal = SeleVal + "@";	return SeleVal;}