function logout()
{
x=confirm("Wollen Sie sich wirklich abmelden?");
if(x==true)
{
top.location.href="../index.php";
}
}

function bookmark_me()
{
var url="http://...";
var title="...";
var browser=navigator.appName;
if(browser=="Microsoft Internet Explorer")
{window.external.AddFavorite(url,title);}
else
{alert("bitte STRG + D drücken,\n" + "um Lesezeichen zu setzen !");}
}

function homepage()
{
if(document.all)
{
document.all.start.style.behavior="url(#default#homepage)";
document.all.start.setHomePage('http://...');
}
else
{alert("Ihr Browser unterstützt diese Funktion leider nicht !");}
}

function highlight(name,farbe)
{
if(document.getElementById)
{
document.getElementById(name).style.backgroundColor=farbe;
}}

function zoomIt(feld,wert)
{
if(document.getElementById)
{
document.getElementById(feld).style.height=wert + "px";
}}

var browser = navigator.appName;
function diashow()
{
i++;
if(i==pics.length)
{
i=0;
}
if(browser=="Microsoft Internet Explorer")
{
document.getElementById("bild").filters.blendTrans.Apply();
document.getElementById("bild").style.visibility = "visible";
document.getElementById("bild").filters.blendTrans.Play();
document.bild.src="pics_diashow/" + pics[i];
counter=setTimeout("diashow()",delay);
}
else
{
document.getElementById("bild").style.visibility = "visible";
document.bild.src="pics_diashow/" + pics[i];
counter=setTimeout("diashow()",delay);
}}

function win_auf(url,breit,hoch)
{
fenster = window.open(url,"","width=" + breit + ",height=" + hoch + ",left=100,top=100");
}

function tab_hoehe()
{
var hoehe_ges=screen.availHeight;
var hoehe=eval(hoehe_ges-220);
document.write('<img src="bilder/blind.gif" width="20" height="' + hoehe + '" alt="">');
}

function tab_hoehe2()
{
var abc=document.all.seite.offsetHeight;
alert(abc);
}

function show_subtemp()
{

var auswahl = document.seite_add_formular.temp_id.selectedIndex;
i=document.seite_add_formular.temp_id.options[auswahl].value;
if(i!="")
{
document.subtemp.src="../bilder/" + bilder[i];
}
}

function gallery_win_open(url)
{
var fenster = window.open(url,"Galerie","width=700,height=490,left="+ (screen.availWidth - 700)/2 +",top="+ (screen.availHeight - 480)/2 +",scrollbars=no,resize=no,location=no,status=no");
}