<!--
/*
 * CAPCom AG 2004
 * Author Thomas Poepl
 * Version 0.9
 */
function changeBgCol(array, color) {
    for(var i = 0; i < array.length; i++) {

	if(document.all) {
	if(document.all[array[i]].style.backgroundColor != 'red')
	document.all[array[i]].style.backgroundColor = color; 
		}
		else if(document.getElementById(array[i])) {
		if(document.getElementById(array[i]).style.backgroundColor != 'red')
		document.getElementById(array[i]).style.backgroundColor = color;
		}
			else if(document.layers) {
			if(document.layers[array[i]].bgColor != 'red')
			document.layers[array[i]].bgColor = color;
			}
	}
}

/*
 * CAPCom AG 2004
 * Author Thomas Poepl
 * Version 0.9
 */
function changeBgColExt(array, color) {
     for(var i = 0; i < array.length; i++) {

	if(document.all) {
	     document.all[array[i]].style.backgroundColor = '';
        }
		else if(document.getElementById(array[i])) {
		document.getElementById(array[i]).style.backgroundColor = '';
		}
			else if(document.layers) {
			document.layers[array[i]].bgColor = '';
			}
	}
}

/*
 * CAPCom AG 2004
 * Author Thomas Poepl
 * Version 0.9
 */
function changeBgColClick(array, color) {
    var allElements = new Array('c1','c2','c3','c4','h1','h2','h3','h4');
    for(var i = 0; i < allElements.length; i++) {

	if(document.all) {
	if(document.all[allElements[i]].style.backgroundColor == 'red')
	document.all[allElements[i]].style.backgroundColor = '';
		}
		else if(document.getElementById) {
		if(document.getElementById(allElements[i]).style.backgroundColor == 'red')
		document.getElementById(allElements[i]).style.backgroundColor = '';
		}
			else if(document.layers) {
			if(document.layers[allElements[i]].bgColor == 'red')
			document.layers[allElements[i]].bgColor = '';
			}
	}
    for(var j = 0; j < array.length; j++) {

	if(document.all) {
	document.all[array[j]].style.backgroundColor = color;
		}
		else if(document.getElementById) {
		document.getElementById(array[j]).style.backgroundColor = color;
		}
			else if(document.layers) {
			document.layers[array[j]].bgColor = color;
			}
	}
}
//-->

