var fileInputCounter = 0;
var maxFileInputs = 10;
function showFileInput() {
	fileInputCounter++;
	if(fileInputCounter <= maxFileInputs) {
		getElement("f"+fileInputCounter).className = 'vis';		
	}	
}

function setBg(nr, anzahl) {
	for(i=1;i<=anzahl;i++) {
		if(i == nr) {
			getElement("ds0"+i).style.backgroundColor = '#0173ba';			
			getElement("ds1"+i).style.backgroundColor = '#0173ba';
			getElement("ds2"+i).style.backgroundColor = '#0173ba';			
			getElement("ds0"+i).style.color = '#ffffff';			
			getElement("ds1"+i).style.color = '#ffffff';
			getElement("ds2"+i).style.color = '#ffffff';
		} else {
			getElement("ds0"+i).style.backgroundColor = '#d8e5ed';			
			getElement("ds1"+i).style.backgroundColor = '#d8e5ed';
			getElement("ds2"+i).style.backgroundColor = '#d8e5ed';						
			getElement("ds0"+i).style.color = '#49545a';			
			getElement("ds1"+i).style.color = '#49545a';
			getElement("ds2"+i).style.color = '#49545a';			
		}
	}
}

function hideIt(_id) {	
	if(document.getElementById(_id) != undefined)	
		document.getElementById(_id).className = 'inv';
}

function showIt(_id) {
	if(document.getElementById(_id) != undefined)	
		document.getElementById(_id).className = 'vis';	
}

function switchIt(id) {
   	var ele = document.getElementById(id);
	
	if(ele != undefined) {
	   	if(ele.className == 'vis')
		    hideIt(id);
		else
			showIt(id);
	}
}

