  /*  <a href="JavaScript:newWindow('werbung.htm','profil','no',780,530,'yes')" onmouseover="los('Informationen zum Angebot &quot;Werbefläche&quot;'); hinweis(8,50); return true" onmouseout="end(); hideit(); return true;"> */
function newWindow(htmldatei,fenstername,toolbar,breite,hoehe,scrollbars)
         {
          window.open(htmldatei,fenstername,"toolbar="+toolbar+",copyhistory=no,location=no,width="+breite+",height="+hoehe+",directories=no,status=no,scrollbars="+scrollbars+",resize=no,menubar=no")
         newWindow.focus();

      }

  /*  Fenster schließen */
  /* <a title="Schließt dieses Fenster." href="javascript:zu()" onmouseover="window.status='Fenster schließen';return true">&nbsp;Fenster schließen&nbsp;</a> */
function zu() {
      window.close()
        }


  /*  Uhrzeit im Text */
var clockid=new Array()
var clockidoutside=new Array()
var i_clock=-1
var thistime= new Date()
var hours=thistime.getHours()
var minutes=thistime.getMinutes()
var seconds=thistime.getSeconds()
if (eval(hours) <10) {hours="0"+hours}
if (eval(minutes) < 10) {minutes="0"+minutes}
if (seconds < 10) {seconds="0"+seconds}
var thistime = hours+":"+minutes+":"+seconds

function writeclock() {
        i_clock++
        if (document.all || document.getElementById || document.layers) {
                clockid[i_clock]="clock"+i_clock
                document.write("<span id='"+clockid[i_clock]+"' style='position:relative'>"+thistime+"</span>")
        }
}

function clockon() {
        thistime= new Date()
        hours=thistime.getHours()
        minutes=thistime.getMinutes()
        seconds=thistime.getSeconds()
        if (eval(hours) <10) {hours="0"+hours}
        if (eval(minutes) < 10) {minutes="0"+minutes}
        if (seconds < 10) {seconds="0"+seconds}
        thistime = hours+":"+minutes+":"+seconds

        if (document.all) {
                for (i=0;i<=clockid.length-1;i++) {
                        var thisclock=eval(clockid[i])
                        thisclock.innerHTML=thistime
                }
        }

        if (document.getElementById) {
                for (i=0;i<=clockid.length-1;i++) {
                        document.getElementById(clockid[i]).innerHTML=thistime
                }
        }
        var timer=setTimeout("clockon()",1000)
}
window.onload=clockon


// *** Regenbogentext
function MakeArray(n){
   this.length=n;
   for(var i=1; i<=n; i++) this[i]=i-1;
   return this
}

hex=new MakeArray(16);
hex[11]="A"; hex[12]="B"; hex[13]="C"; hex[14]="D"; hex[15]="E"; hex[16]="F";

function ToHex(x){
   var high=x/16;
   var s=high+"";
   s=s.substring(0,2);
   high=parseInt(s,10);
   var left=hex[high+1];
   var low=x-high*16;
   s=low+"";
   s=s.substring(0,2);
   low=parseInt(s,10);
   var right=hex[low+1];
   var string=left+""+right;
   return string;
}

function textverlauf(text){
   text=text.substring(3,text.length-4);
   color_d1=255;
   mul=color_d1/text.length;
   for(i=0;i < text.length;i++){
      color_d1=255*Math.sin(i/(text.length/3)); "255*Math.sin(i/(text.length/3))"
      color_h1=ToHex(color_d1);
      color_d2=mul*i;
      color_h2=ToHex(color_d2);
      document.write("<FONT COLOR='#FF"+color_h1+color_h2+"'>"+text.substring(i,i+1)+'</FONT>');
   }
}

// *** Bildanzeige
function OpenNewWindow(Picture,Breit,Hoch)
{
xsize = Breit+35;// Zusatz für Rand rechts und links
ysize = Hoch+100; //Zusatz für Rand oben und unten - damit Button angezeit werden kann

ScreenWidth = screen.width;
ScreenHeight = screen.height;

xpos = (ScreenWidth/2)-(xsize/2);
ypos = (ScreenHeight/2)-(ysize/2);

        NewWindow=window.open("","Picture","height="+ysize+",width="+xsize+",scrollbars=no,resizable=no,top="+ypos+",left="+xpos+"");
        NewWindow.document.write ("<html><head><title>.::: Webservice webscenery :::.");
        NewWindow.document.write ("</title></head>");
        NewWindow.document.write ("<body bgcolor='#000000' onload='focus()'>");
        NewWindow.document.write ("<div align='center'>");
        NewWindow.document.write ("<img src=");
        NewWindow.document.write (Picture);
        NewWindow.document.write (">");
        NewWindow.document.write ("</div>");
        NewWindow.document.write ("<br><div align='center'><form><input type='button' value='FENSTER SCHLIESSEN' style='font-family: arial; background-color:#4F4F4F; font-size: 70%' onClick='self.close()'></div></form>");
        NewWindow.document.write ("</body></html>");
        NewWindow.document.close();
        NewWindow.resizeTo(xsize,ysize);
}

// *** Midi abspielen
function OpenMidiWindow(Midi,Breit,Hoch)
{
xsize = Breit+0;// Zusatz für Rand rechts und links
ysize = Hoch+0; //Zusatz für Rand oben und unten - damit Button angezeit werden kann

ScreenWidth = screen.width;
ScreenHeight = screen.height;

xpos = (ScreenWidth/2)-(xsize/2);
ypos = (ScreenHeight/2)-(ysize/2);

        MidiWindow=window.open("","Midi","height="+ysize+",width="+xsize+",scrollbars=no,resizable=no,top="+ypos+",left="+xpos+"");
        MidiWindow.document.write ("<html>\n<head>\n<title>webscenery.de</title>");
        MidiWindow.document.write ("\n<script language=\"JavaScript\">\n");
        MidiWindow.document.write ("if(navigator.userAgent.indexOf(\"MSIE\") != -1)");
        MidiWindow.document.write ("\ndocument.writeln ('<bgsound src=\"");
        MidiWindow.document.write (Midi);
        MidiWindow.document.write ("\">');\n");
        MidiWindow.document.write ("else\n");
        MidiWindow.document.write ("document.writeln ('<embed src=\"");
        MidiWindow.document.write (Midi);
        MidiWindow.document.write ("\" autostart=\"true\" hidden=\"true\" volume=\"60%\">');");
        MidiWindow.document.write ("\n</script>\n\n");
        MidiWindow.document.write ("\n</head>\n\n");
        MidiWindow.document.write ("<body bgcolor='#000000' topmargin='10' leftmargin='10' onload='focus()'><div align='center'><form>");
        MidiWindow.document.write ("<img src='http://www.knmmke.han-solo.net/programme/grafik/animationen/speaker.gif' border='0' width='32' height='32'>");
        MidiWindow.document.write ("<br><input type='button' value='Fenster schließen' style='font-family: arial; background-color:#4F4F4F; font-size: 70%' onClick='self.close()'></form></div>");
        MidiWindow.document.write ("</body></html>");
        MidiWindow.document.close();
        MidiWindow.resizeTo(xsize,ysize);
}

function CountMax()
{
var wert,max;
max = 700;
wert = max-document.eingabe.gruss.value.length;
if (wert < 0) {
alert("Es dürfen nicht mehr als " + max + " Zeichen eingegeben werden!");
document.eingabe.gruss.value = document.eingabe.gruss.value.substring(0,max);
wert = max-document.eingabe.gruss.value.length;
document.eingabe.rv_counter.value = wert;

} else {
document.eingabe.rv_counter.value = max - document.eingabe.gruss.value.length;
}
}

window.defaultStatus = "Webservice webscenery.de";
