function onFormatSelect(id){
	if($('hochformat').value == 0 && id == "format_hoch"){
		$('hochformat').value = 1;
		$(id).src = img_path + "images/a7.gif";
		$('format_quer').src = img_path + "images/a7_quer_inaktiv.gif";
	} else if ($('hochformat').value == 1 && id == "format_quer"){
		$('hochformat').value = 0;
		$('format_hoch').src = img_path + "images/a7_inaktiv.gif";
		$(id).src = img_path + "images/a7_quer.gif";		
	}
}

function init(){
	$('hochformat').value = 1;
}

function fileError(msg){
	alert(msg);
}

function fileStart(msg){
	new Ajax.Updater('uploaded_file', path + '/startfile', { method: 'post' });
}


function openwin (url) {
 	win = window.open(url, "AGB", "width=620,height=550,status=yes,scrollbars=yes,resizable=yes");
 	win.focus();
}

function displayFile(msg){
	new Ajax.Updater('uploaded_file', path + '/ajaxfile', { method: 'post' });
}

function onDeleteFile(){
	new Ajax.Updater('uploaded_file', path + '/deletefile', { method: 'post' });
}
	
function onCheck(){
	new Ajax.Updater('counter', path + '/check', { method: 'post' });
}