/*****************************************************
allg. funktion - finde object crossbrowser style
*****************************************************/
function findObject (id, doc) {
	if(!doc) {var d = window.document; } else {var d = doc; }
	var theObj = (d.all)?d.all[id]:((d.layers)?d.layers[id]:d.getElementById(id));	
	return theObj;
}
/***************************************
writes the update year in a document
****************************************/
function writeCopyrightYear() {
  var myDate=new Date();
  var myYear=myDate.getFullYear();
  var theYearSpan = findObject("year");
  if (theYearSpan != null) {
	theYearSpan.innerHTML = myYear;
  }
}
/***************************************************
show DIV
****************************************************/
function showDiv(divId, elementType) {
	var theDiv = findObject(divId);
	theDiv.style.display = "block";
        if(elementType == "inline") {
        theDiv.style.display = "inline";
        }
}
/***************************************************
hide DIV
***************************************************/
function hideDiv(divId) {
	var theDiv = findObject(divId);
	theDiv.style.display = "none";
}
/***************************************************
Dropdown control
***************************************************/
var activeDIV = null;

function showHide(tar){
	var d = window.document;
	var o;
	
	if(activeDIV != null) {
		o = (d.all)?d.all[activeDIV]:((d.layers)?d.layers[activeDIV]:d.getElementById(activeDIV));
		o.className="hide";
	}
	if(tar != null) {
		o = (d.all)?d.all[tar]:((d.layers)?d.layers[tar]:d.getElementById(tar));
		o.className="show";
	}
	activeDIV = tar;
}

function goTo(dropdownlist) {
	var ddown = dropdownlist;
	var tar =  ddown.options[ddown.options.selectedIndex].title;
 	var val = ddown.options[ddown.options.selectedIndex].value;
	
	if( val == "divshow") {
		showHide(tar);
	} else {
		showHide(null);
	    ddown.form.reset();
	}
	
}