function setOver(str){
	document.getElementById("sub_"+str).style.display='';
	document.getElementById("id_"+str).style.backgroundColor = '#FFFFFF';
	document.getElementById("id_"+str).style.color = '#000000';
}
function setDown(str){
	document.getElementById("sub_"+str).style.display='none';
	document.getElementById("id_"+str).style.backgroundColor = '';
	document.getElementById("id_"+str).style.color = '#333333';
}
function fillline(id){
	document.getElementById("regatta_"+id).style.backgroundColor = '#DDDDDD';
}
function clearline(id){
	document.getElementById("regatta_"+id).style.backgroundColor = '';
}
function selectRegatta(id){
	location.href = 'regatta_'+id+'.html';
}		
function setOverSub(str){
	document.getElementById(str).style.backgroundColor = '#EEEEEE';
	document.getElementById(str).style.color = '#000000';
}

function setDownSub(str){
	document.getElementById(str).style.backgroundColor = '#DDDDDD';
	document.getElementById(str).style.color = '#333333';
}
function changeYear(year){
	location.href = 'verwaltung_'+year+".html";
}
function confirmdelete(formname,year){
	if (confirm("Wollen Sie diese Regatta wirklich loeschen?")){
		document.forms[formname].action='deleteregatta_'+year+'.html';
		document.forms[formname].submit();
	}
}
function confirmAusschreibungdelete(id){
	if (confirm("Wollen Sie die Ausschreibung wirklich loeschen?")){
		document.forms['ausschreibungform'].action='deleteausschreibung_'+id+'.html';
		document.forms['ausschreibungform'].submit();
	}
}
function confirmResultatedelete(id){
	if (confirm("Wollen Sie die Resultate wirklich loeschen?")){
		document.forms['resultateform'].action='deleteresultate_'+id+'.html';
		document.forms['resultateform'].submit();
	}
}
function confirmBerichtdelete(id){
	if (confirm("Wollen Sie den Bericht wirklich loeschen?")){
		document.forms['berichtform'].action='deletebericht_'+id+'.html';
		document.forms['berichtform'].submit();
	}
}
function confirmFotodelete(foto, id){
	if (confirm("Wollen Sie das Foto wirklich loeschen?")){
		document.forms['fotoform'].action='deletefoto_'+id+'_'+foto+'.html';
		document.forms['fotoform'].submit();
	}
}
function confirmEinschreibungdelete(year) {
	if (confirm("Wollen Sie das Einschreibeformular wirklich loeschen?")){
		document.forms['einschreibungform'].action='deleteeinschreibung_'+year+'.html';
		document.forms['einschreibungform'].submit();
	}
}
function confirmaktuellesdelete(formname){
	if (confirm("Wollen Sie den Eintrag wirklich wirklich loeschen?\nBeschreibungen und Dokumente werden dabei geloescht.")){
		document.forms[formname].action='aktuellesdelete.html';
		document.forms[formname].submit();
	}
}
function confirmDokumentDelete(formname){
	if (confirm("Wollen Sie das Dokument wirklich loeschen?")){
		document.forms[formname].action='deletedokument.html';
		document.forms[formname].submit();
	}
}