function clear_id(){
if(document.login.Benutzername.value == "Benutzername"){
document.login.Benutzername.value = "";
}
}
function clear_pw(){
if(document.login.Passwort.value == "Passwort"){
document.login.Passwort.value = "";
}
}
function clock(){
window.setInterval(function(){
  var date=new Date();
  var dd=date.getDate();
  var mm=date.getMonth() + 1;
  var yy=date.getYear() % 100;
  var HH=date.getHours();
  var MM=date.getMinutes();
  var SS=date.getSeconds();
  if(dd<10)dd="0"+dd;
  if(mm<10)mm="0"+mm;
  if(yy<10)yy="0"+yy;
  if(HH<10)HH="0"+HH;
  if(MM<10)MM="0"+MM;
  if(SS<10)SS="0"+SS;
document.getElementById("Clock").firstChild.data = HH+":"+MM+":"+SS+" - "+dd+"."+mm+"."+yy;
},1000);
}
function init_show_pic(wid,hei,pfad){
document.getElementById("show_pic").style.display="";
window.wid=wid,
window.hei=hei;
window.pfad=pfad;
         if(document.getElementById("load_pic")){
         auto = window.setInterval("show_p1()",10);
         }else{/*Kein Gebiet zum laden gefunden*/}
}
function show_dia(wid,hei,pfad){
document.getElementById("But_Close").style.display="";
document.getElementById("Bild").width = window.wid;
document.getElementById("Bild").height = window.hei;
document.getElementById("Bild").src = window.pfad;
window.clearInterval(auto);
}
function show_p1(){
div_wid = Number(window.wid) + 50;
div_mom = document.getElementById("load_pic").style.width;
pos_pro = div_mom.indexOf("px");
div_mom = div_mom.substring(0,pos_pro);
document.getElementById("load_pic").style.width = Number(div_mom) + 25 + "px";
         if(div_mom > div_wid){
         clearInterval(auto);
         auto2 = window.setInterval("show_p2()",10);
         }else{/*Weiter*/}
}
function show_p2(){
div_hei = Number(window.hei) + 50;
div_mom = document.getElementById("load_pic").style.height;
pos_pro = div_mom.indexOf("px");
div_mom = div_mom.substring(0,pos_pro);
document.getElementById("load_pic").style.height = Number(div_mom) + 10 + "px";
         if(div_mom > div_hei){
         clearInterval(auto2);
         show_dia();
         }else{/*Weiter*/}
}
function close_dia(){
document.getElementById("But_Close").style.display="none";
document.getElementById("show_pic").style.display="none";
document.getElementById("Bild").width = 1;
document.getElementById("Bild").height = 1;
document.getElementById("Bild").src = "";
document.getElementById("load_pic").style.height = "1px";
document.getElementById("load_pic").style.width = "1px";
}
function seturl(url){
         window.location.href=url;
}
