// Berechnen
function NeuFenster(){ MeinFenster =
window.open("http://www.bemak.de/bemaknet/index_rechnen.html", "Zweitfenster", "width=700,height=380");
MeinFenster.focus();}

// Chloe DVD 1
function NeuFensterdvd1(){ MeinFenster =
window.open("http://www.bemak.de/bemaknet/chloe_goinghome.html", "Zweitfenster", "width=570,height=360");
MeinFenster.focus();}

// Chloe Movie
function NeuFenster1(){ MeinFenster =
window.open("http://www.bemak.de/bemaknet/chloe_cut.html", "Zweitfenster", "width=320,height=240");
MeinFenster.focus();}

// Hayley Movie
function NeuFenster2(){ MeinFenster =
window.open("http://www.bemak.de/bemaknet/hayley_mov.html", "Zweitfenster", "width=320,height=240");
MeinFenster.focus();}

// Hayley Games Movie
function NeuFenster5(){ MeinFenster =
window.open("http://www.bemak.de/bemaknet/hayley_games.html", "Zweitfenster", "width=320,height=240");
MeinFenster.focus();}

// Camilla Movie
function NeuFenster9(){ MeinFenster =
window.open("http://www.bemak.de/bemaknet/camilla_foto.html", "Zweitfenster", "width=480,height=272");
MeinFenster.focus();}

// All Engels Movie
function NeuFenster10(){ MeinFenster =
window.open("http://www.bemak.de/bemaknet/allengels.html", "Zweitfenster", "width=480,height=272");
MeinFenster.focus();}

//fenster 3
 function NeuFenster3(){ MeinFenster =
 window.open("http://www.bemak.de/hayley/info.html", "Zweitfenster", "width=800,height=400,scrollbars");
 MeinFenster.focus();}
 
 //fenster 4
 function NeuFenster4(){ MeinFenster =
 window.open("http://www.bemak.de/giafarell/info.html", "Zweitfenster", "width=800,height=400,scrollbars");
 MeinFenster.focus();}
 
 // fenster 6
function NeuFenster6(){ MeinFenster =
window.open("http://www.bemak.de/jojo/info.html", "Zweitfenster", "width=800,height=400,scrollbars");
MeinFenster.focus();}

// fenster 7
function NeuFenster7(){ MeinFenster =
window.open("http://www.bemak.de/camilla/info.html", "Zweitfenster", "width=800,height=400,scrollbars");
MeinFenster.focus();}

// fenster 7
function NeuFenster8(){ MeinFenster =
window.open("http://www.bemak.de/taylor/info.html", "Zweitfenster", "width=800,height=400,scrollbars");
MeinFenster.focus();}

 // Testverzeichnis
function NeuFenster_testverz() {
var url = "cgi-bin/bemaknet/test_verz/cgi.pl";
var width = "1000";
var height = "600";
var Win = window.open(url,"NeuFenster_testverz",'width=' + width + ',height=' + height + ',resizable=yes,scrollbars=yes,menubar=no,status=no' );
}

function NeuFenster_testverz2() {
var url = "test_verz/cgi.pl";
var width = "800";
var height = "600";
var Win = window.open(url,"NeuFenster_testverz",'width=' + width + ',height=' + height + ',resizable=yes,scrollbars=yes,menubar=no,status=no' );
}


// Uhrzeit und Datum
var loaded = false;
if (document.layers)
  document.write(
'<STYLE>.rewritable { position: absolute; }<\/STYLE>'
  );
function Clock (offsetSec, style) {
  this.id = Clock.cnt;
  Clock.clocks[Clock.cnt++] = this;
  this.offsetSec = offsetSec || 0;
  this.style = style || '';
  this.writeHTML();
  this.startTimer();
}
function Clock_writeHTML () {
  var html = '';
  if (document.layers) {
    html += '<SPAN';
    html += ' ID="Clock' + this.id + '"';
    html += ' CLASS="rewritable"';
    html += '>';
    html += '<SPAN';
    html += this.style ? ' CLASS="' + this.style + '"' : '';
    html += '>';
    html += this.formatTime();
    html += '<\/SPAN>';
    html += '<\/SPAN>';
  }
  else {
    html += '<SPAN';
    html += ' ID="Clock' + this.id + '"';
    html += this.style ? ' CLASS="' + this.style + '"' : '';
    html += '>';
    html += this.formatTime();
    html += '<\/SPAN>';
  }
  document.write(html);
}
Clock.prototype.writeHTML = Clock_writeHTML;
function Clock_formatTime () {
  var time = new Date();
  time.setTime(time.getTime() + this.offsetSec * 1000);
  var hours = time.getHours();
  var minutes = time.getMinutes();
  var seconds = time.getSeconds();
  var html = '';
  html += hours < 10 ? '0' + hours : hours;
  html += ':';
  html += minutes < 10 ? '0' + minutes : minutes;
  html += ':';
  html += seconds < 10 ? '0' + seconds : seconds;
  return html;
}
Clock.prototype.formatTime = Clock_formatTime;
function Clock_startTimer () {
  this.tid = setInterval('Clock.clocks[' + this.id + '].updateTime()', 
1000);
}
Clock.prototype.startTimer = Clock_startTimer;
function Clock_updateTime () {
  if (document.all)
    document.all['Clock' + this.id].innerHTML = this.formatTime();
  else if (document.getElementById)
    document.getElementById('Clock' + this.id).firstChild.nodeValue =
      this.formatTime();
  else if (document.layers && loaded) {
    var l = document['Clock' + this.id];
    if (!l.ol) {
      var ol = l.ol = new Layer(l.clip.width);
      ol.clip.height = l.clip.height;
      ol.left = l.pageX; ol.top = l.pageY;
      ol.visibility = 'show';
      l.visibility = 'hide';
    }
    var ol = l.ol;
    var html = '';
    html += '<SPAN';
    html += this.style ? ' CLASS="' + this.style + '"' : '';
    html += '>';
    html += this.formatTime();
    html += '<\/SPAN>';
    ol.document.open();
    ol.document.write(html);
    ol.document.close();
  }
}
Clock.prototype.updateTime = Clock_updateTime;
Clock.cnt = 0;
Clock.clocks = new Array();
function init () {
  loaded = true;
}


// Datum
function Datum(n) {
			this.length = n
			return this
			}
        monthNames = new Datum(12)
		monthNames[1] = "Januar"
		monthNames[2] = "Februar"
		monthNames[3] = "März"
		monthNames[4] = "April"
		monthNames[5] = "Mai"
		monthNames[6] = "Juni"
		monthNames[7] = "Juli"
		monthNames[8] = "August"
		monthNames[9] = "September"
		monthNames[10] = "Oktober"
		monthNames[11] = "November"
		monthNames[12] = "Dezember"

		dayNames = new Datum(7)
		dayNames[1] = "<font size='1' face='verdana' color='eaeaea'>Sonntag"
		dayNames[2] = "<font size='1' face='verdana' color='eaeaea'>Montag"
		dayNames[3] = "<font size='1' face='verdana' color='eaeaea'>Dienstag"
		dayNames[4] = "<font size='1' face='verdana' color='eaeaea'>Mittwoch"
		dayNames[5] = "<font size='1' face='verdana' color='eaeaea'>Donnerstag"
		dayNames[6] = "<font size='1' face='verdana' color='eaeaea'>Freitag"
		dayNames[7] = "<font size='1' face='verdana' color='eaeaea'>Samstag"

		function customDateString(oneDate) {
			var theDay = dayNames[oneDate.getDay() + 1]
			var theMonth = monthNames[oneDate.getMonth() + 1]
			var theYear = oneDate.getYear() 
			if(theYear<1000) theYear+=1900
			return theDay + "<font size='1' face='verdana' color='eaeaea'> der " + oneDate.getDate() + ". " + theMonth + " " + theYear
		}




// Favotiten
function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}


