// Referenz eines Elementes ermitteln
function ref (id) {
    if      (document.layers)         return document.layers[id];         // NC 4
    else if (document.all)            return document.all[id];            // IE 4
    else if (document.getElementById) return document.getElementById(id); // DOM
    else                              return null;        
}

function ShowOrHide(id) {
    obj = ref(id);
    if (obj != null) {
    	if (obj.style.display == 'inline'){
    		obj.style.display = 'none';
    	} else {
    		obj.style.display = 'inline';
    	}
    }
}
 function display(id) {
 	
 	obj = ref(id);
 	
 	if (obj != null) {
 		obj.style.display = 'inline';
 	}
 	
 	return true;
 	
 }
 
function hide(id) {
 	
 	obj = ref(id);
 	
 	if (obj != null) {
 		obj.style.display = 'none';
 	}
 	
 	return true;
 	
 }

function FormKinder(value) {
	
	obj = ref('form_kinder');
	
	if (obj != null) {
		if (value == true) {
			obj.style.visibility = 'visible';
			obj.value = '(Anzahl)';	
			obj.select();
			obj.focus();		
		} else {
			obj.style.visibility = 'hidden';	
			obj.value = '';		
		}		
	}

}
