<!--
     popup_status = new Array(0,0,0,0,0,0,0,0,0,0);
	activation_status = new Array(0,0,0,0,0,0);
	show_status = new Array(0,0,0,0,0,0);
	obj_activation = new Array(0,0,0,0,0,0,0,0);
	search_box_id = new Array(0,0,0,0,0,0)

	function encoding_test() {
		var testvariable = "ü";
		if ((testvariable.length != 1 && navigator.appName!="Microsoft Internet Explorer") || (document.charset!="utf-8" && navigator.appName=="Microsoft Internet Explorer")) {
			if(document.getElementById('encoding_error'))
				document.getElementById('encoding_error').style.display='block';
		}
	}
    function ask(url,text) {
		if(!text) text = "Sie sind gerade dabei eine kritische Aktion durchzuführen.\nWollen Sie trotzdem forfahren?";
        check = confirm(text);
        if(check == true) location.href=url;
    }
	function ask_submit(formular,text) {
		check = confirm(text);
		if(check == true) document.getElementById(formular).submit();
	}

	function go_back(frm) {
		document.getElementById(frm).action.value='back';
		document.getElementById(frm).submit();
	}
	function searchbox(id) {
		if(search_box_id[id] == 0) {
			document.getElementById('q'+id).value='';
			search_box_id[id] == 1;
		}
	}

     function popup(id) {
          if(popup_status[id] == 1) {
               document.getElementById('id'+id).style.display='none';
				if(document.getElementById('link'+id))
					document.getElementById('link'+id).firstChild.data='[ + ]';
               popup_status[id] = 0;
          }
          else {
               document.getElementById('id'+id).style.display='block';
				if(document.getElementById('link'+id))
					document.getElementById('link'+id).firstChild.data='[ - ]';
			popup_status[id]=1;
          }
     }
     function sendmail(user,server,ending) {
          window.location.href="mailto:"+user+"@"+server+"."+ending;
     }

	function activate(id) {
		if(activation_status[id] == 1) {
			document.getElementById('alt'+id).setAttribute("disabled","disabled");
			activation_status[id] = 0;
		}
		else {
			document.getElementById('alt'+id).removeAttribute("disabled");
			activation_status[id] = 1;
		}
	}
	function deactivate(id) {
		if(activation_status[id] == 1) {
			document.getElementById('alt'+id).setAttribute("disabled","disabled");
			activation_status[id] = 0;
		}
	}

	function show(id) {
		if(show_status[id] == 0) {
			document.getElementById('id'+id).style.display='block';
			show_status[id] = 1;
		}
	}
	function hide(id) {
		if(show_status[id] == 1) {
			document.getElementById('id'+id).style.display='none';
			show_status[id] = 0;
		}
	}

	function disable(obj) {
		if(obj_activation[obj]==0) {
			document.getElementById("obj_"+obj).removeAttribute("disabled");
			document.getElementById("obj_"+obj).style.display="inline";
			obj_activation[obj] = 1;
		}
	}
	function enable(obj) {
		 if(obj_activation[obj]==1) {
			document.getElementById("obj_"+obj).setAttribute("disabled","disabled");
			document.getElementById("obj_"+obj).style.display="none";
			obj_activation[obj] = 0;
		}
	}

	checked_id = 0;
	function select_checkbox(id) {
		if(id != checked_id) {
			document.getElementById(checked_id).removeAttribute("checked");
			document.getElementById(id).setAttribute("checked","checked");
			checked_id = id;
		}
	}

if(navigator.appName == "Microsoft Internet Explorer") var request = new ActiveXObject("Microsoft.XMLHTTP");
else var request = new XMLHttpRequest();

function add_visitor() {
	request.open("GET", "ajax/add_visitor.php" , true);
	request.send("");
}

//-->

