var subnavClick=0, navActive;

function subnav(navId) {
subNavId="subnav_"+navId;
if (subnavClick==0) {
document.getElementById(subNavId).style.visibility='visible';
subnavClick=1;
navActive=subNavId;
} else {
if (navActive==subNavId) {
document.getElementById(navActive).style.visibility='hidden';
subnavClick=0;
}
if (navActive!=subNavId) {
document.getElementById(navActive).style.visibility='hidden';
subnavClick=0;
rollout();
rollin(navId);
document.getElementById(subNavId).style.visibility='visible';
subnavClick=1;
}
navActive=subNavId;
}

}

function openEdit (source,target) {
edit = window.open(source,target,'width=700,height=500,resizable=yes,scrollbars,top=100,left=100,dependent=yes');
edit.focus();
}

function erase (data) {
if (confirm("Eintrag löschen:\nDas Löschen kann nicht rückgängig gemacht werden!")) window.location.href = data;
}

function openPic (source,imgWidth,imgHeight) {
source = source;
imgWidth = imgWidth+40;
imgHeight = imgHeight+35;
bigImage = window.open(source,"image","width="+imgWidth+",height="+imgHeight+",resizable=yes,scrollbars,top=100,left=100,dependent=yes");
bigImage.focus();
}
