function noop_c3() {}

form_changed = false;

function touch_form() {
	form_changed = true;
}

function check_form() {
	if (form_changed)
		return confirm('Änderungen verwerfen?');
	else
		return true;
}


function switchrow(n) {
	myref = document.all ? document.all['row' + n] : document.getElementById('row' + n);
	myref.style.display = myref.style.display == 'none' ? (document.all ? 'block' : 'table-row') : 'none';

	document.cookie = 'switchrow_' + n + '=' + myref.style.display;
	eval('document.img'+n+'.src=\'img/'+(myref.style.display=='none'?'arrow_closed.gif':'arrow_opened.gif')+'\';');
}

function switchrow2(n) {
	myref = document.all ? document.all['open_' + n] : document.getElementById('open_' + n);
	myref2 = document.all ? document.all['close' + n] : document.getElementById('close_' + n);
	myref.style.display = myref.style.display == 'none' ? (document.all ? 'block' : 'table-row') : 'none';
	myref2.style.display = myref.style.display == 'none' ? (document.all ? 'block' : 'table-row') : 'none';
	document.cookie = 'open_' + n + '=' + myref.style.display;
	document.cookie = 'close_' + n + '=' + myref2.style.display;
}

function switchtab(n, tabs) {
	for (i = 1; i < (tabs + 1); i++) {
		if (i != n) {
			myref = document.all ? document.all['row_tab' + i] : document.getElementById('row_tab' + i);
			myref.style.display = 'none';
			myref2 = document.all ? document.all['row_tabhead' + i] : document.getElementById('row_tabhead' + i);
			myref2.className = 'tdhead3';
			document.cookie = 'switchrow__tab' + i + '=' + myref.style.display;
			eval('document.img_tab' + i + '.src=\'img/' + 'arrow_closed.gif' + '\';');
		}
		else {
			myref = document.all ? document.all['row_tab' + n] : document.getElementById('row_tab' + n);
			myref.style.display = (document.all ? 'block' : 'table-row');
			myref2 = document.all ? document.all['row_tabhead' + i] : document.getElementById('row_tabhead' + i);
			myref2.className = 'tdhead';
			document.cookie = 'switchrow__tab' + n + '=' + myref.style.display;
			eval('document.img_tab' + n + '.src=\'img/' + 'arrow_opened.gif' + '\';');
		}
	}
}

function dosubmit(value) {
	document.am_form.is_submit.value = "";
	document.am_form.is_other.value = value;
	document.am_form.submit();
}
