function toggle(id) {
 if (document.getElementById(''+id+'').style.display == "block") document.getElementById(''+id+'').style.display = "none"
 else document.getElementById(''+id+'').style.display = "block"
}

function show_cat(serverPage, objID, b_id, type) {
var xmlhttp=false;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
try {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
xmlhttp = false;
}
}
@end @*/
if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
xmlhttp = new XMLHttpRequest();
}

var obj = document.getElementById(objID);
var slim = document.editiert.see_cat.options[document.editiert.see_cat.selectedIndex].value;
xmlhttp.open("GET", serverPage+"?cat="+slim+"&id="+b_id+"&"+type+"=true");
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
document.getElementById(objID).style.background = "#eee";
}
}
xmlhttp.send(null);
}

function sub_see(serverPage, objID, b_id, aktion, selector) {
var xmlhttp=false;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
try {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) { xmlhttp = false; }
}
@end @*/
if (!xmlhttp && typeof XMLHttpRequest != 'undefined') { xmlhttp = new XMLHttpRequest(); }

var obj = document.getElementById(objID);
var slim = document.editiert[selector].options[document.editiert[selector].selectedIndex].value;
xmlhttp.open("GET", serverPage+"?id="+slim+"&b_id="+b_id+"&"+aktion+"=true");
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
obj.innerHTML = xmlhttp.responseText;
}
}
xmlhttp.send(null);
}

function hide_entry(entry_id, type) {
var xmlhttp=false;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
try {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) { xmlhttp = false; }
}
@end @*/
if (!xmlhttp && typeof XMLHttpRequest != 'undefined') { xmlhttp = new XMLHttpRequest(); }

xmlhttp.open("GET", "./hide_entry.php?id="+entry_id+"&type="+type);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
document.getElementById('hidden_entry_'+entry_id+'').style.display = "block"
}
}
xmlhttp.send(null);
}

function cblur(e) {
	ab = document.getElementById("leer");
	bb = document.getElementById(e);
	ab.style.display = "none";
	if (e.value == "") { ab.style.display = "block"; }
}