function showProgress(msg) {
	var progressIndicator = document.getElementById("progress");
	if (!progressIndicator) return;
	if (msg && (msg != "")) {
		progressIndicator.innerHTML = msg;
	} else {
		progressIndicator.innerHTML = "&nbsp;";
	}
}
/*******************************************************************
 * Search Form Scripts
 ********************************************************************/
function setJahr(jahr){
	if ((jahr != null) && (jahr != "null")) {
		document.getElementById("jahr").value = jahr;
	}
}
function setQuery(query){
	if (query != "null") {
		document.getElementById("query").value = query;
	}
}
function setNummervon(nummervon){
	if ((nummervon != null) && (nummervon != "null")) {
		document.getElementById("nummervon").value = nummervon;
	}
}
function setNummerbis(nummerbis){
	if ((nummerbis != null) && (nummerbis != "null")) {
		document.getElementById("nummerbis").value = nummerbis;
	}
}
function setAusgabejahrValue(newValue) {
	if ((newValue != null) && (newValue != "null")) {
	 	document.getElementById("ausgabejahr").value = newValue;
	 }
}
function setStueck(stueck){
	if ((stueck != null) && (stueck != "null")) {
		document.getElementById("stueck").value = stueck;
	}
}
function setTitel(titel){
	if (titel != "null") {
		document.getElementById("titel").value = titel;
	}
}
function selectTeil(searchedValue){
	var teilObj = document.getElementById("teil");
	for (optionCounter = 0; optionCounter < teilObj.length; optionCounter++) {
		if (teilObj.options[optionCounter].value == searchedValue) {
			teilObj.options[optionCounter].selected = true;		 
		}
	}
}
function selectTyp(searchedValue){
	var typObj = document.getElementById("typ");
	for (optionCounter = 0; optionCounter < typObj.length; optionCounter++) {
		if (typObj.options[optionCounter].text == searchedValue) {
			typObj.options[optionCounter].selected = true;		 
		}
	}
}
function getTextForTeil(teil){
	var teilObj = document.getElementById("teil");
	for (optionCounter = 0; optionCounter < teilObj.length; optionCounter++) {
		if (teilObj.options[optionCounter].value == teil) {
			return teilObj.options[optionCounter].text;
		}
	}
	return "";
}
function setIndex(index){
	if ((index != null) && (index != "null" )) {
		document.getElementById("index").value = index;
	} else {
		document.getElementById("index").value = "";
	}
}
function setKurztitel(kurztitel){
	if ((kurztitel != null) && (kurztitel != "null")) {
		document.getElementById("kurztitel").value = kurztitel;
	}
}
function setLangtitel(langtitel){
	if ((langtitel != null) && (langtitel != "null")) {
		document.getElementById("langtitel").value = langtitel;
	}
}

function setAbkurzung(abkurzung){
	if ((abkurzung != null) && (abkurzung != "null")) {
		document.getElementById("abkurzung").value = abkurzung;
	}
}

function setInkrafttretedatum(inkrafttretedatum){
	if (inkrafttretedatum != "null") {
		document.getElementById("inkrafttretedatum").value = inkrafttretedatum;
	}
}

function setAuserkrafttretedatum(auserkrafttretedatum){
	if (auserkrafttretedatum != "null") {
		document.getElementById("auserkrafttretedatum").value = auserkrafttretedatum;
	}
}

