function bookmark_me()
{
var url="http://www.xxx.de";
var title="xxx";
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 logout_alt()
{
x=confirm("Wollen Sie sich wirklich abmelden?");
if(x==true)
{
top.location.href="../index.php";
}
}

function logout()
{
top.location.href="../index.php";
}

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";
}
}

function count_chars(f,ges,z)
{
var feld = document.formular[f].value;
var gesamt=ges;
var rest=gesamt-feld.length;
document.formular[z].value=rest;

if(rest<=0)
{
document.formular[z].value=0;
document.formular[f].value=feld.substring(0,gesamt);
}
}

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

function popup()
{
dumichauch=window.open("../index.php","","width=640,height=480,top=0,left=0,scrollbars=yes,resizable=yes");
}

var window_colorpicker;
function colorpicker(feld0,feld1,feld2)
{
if(window_colorpicker==null || window_colorpicker.closed)
{
window_colorpicker=window.open("colorpicker.php?feld0=" + feld0 + "&feld1=" + feld1 + "&feld2=" + feld2,"","width=340,height=360,left=0,top=0");
}
else
{
window_colorpicker.close();
window_colorpicker=window.open("colorpicker.php?feld0=" + feld0 + "&feld1=" + feld1 + "&feld2=" + feld2,"","width=340,height=360,left=0,top=0");
}
}

function colorpicker_close()
{
if(window_colorpicker)
{
window_colorpicker.close();
}
}

function change_color(f0,f1,f2)
{
var farbe=document[f0][f2].value;
if(farbe.length!=7)
{
alert("Bitte den Farbwert in der Form \"#xxxxxx \" angeben.\n Ein gültiger Hexadezimalwert besteht aus 6 Zeichen sowie einem vorangestellten \"#\".");
}
else if(farbe.indexOf("#")!=0)
{
alert("Bitte den Farbwert in der Form \"#xxxxxx \" angeben.\n Beachten Sie bitte das vorangestellte \"#\"");
}
else
{
document.getElementById(f1).style.backgroundColor = farbe;
}
}

function gallery_win_open()
{
var fenster = window.open("fotoalbum.php","Galerie","width=700,height=520,left="+ (screen.availWidth - 700)/2 +",top="+ (screen.availHeight - 510)/2 +",scrollbars=no,resize=no");
}


