
// -- rechte Maustaste sperren Anfang //-->
if (document.layers){
window.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP)
window.onmousedown=rightclick;
window.onmouseup=rightclick;
window.onmouseover=rightclick;
function rightclick(e) {
if (e.which == 3) {
alert('Rechte Maustaste gedrückt? Copyright bei Harzer Solarzentrum Voigt GmbH');
return false;
}
else {
return true;
}
}
}
if (document.all){
function click() {
if (event.button==2) {
alert('Rechte Maustaste gedrückt? Copyright bei Harzer Solarzentrum Voigt GmbH')
}
if (event.button==3) {
alert('Rechte Maustaste gedrückt? Copyright bei Harzer Solarzentrum Voigt GmbH')}
}
document.onmousedown=click
}

// -- Keine Elemente auswählbar und Kopierschutz der Webseiten //-->
function disableselect(e){
return false
}

function reEnable(){
return true
}

//if IE4+
document.onselectstart=new Function ("return false")

//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}

var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")


// -- Kopierschutz von Bildern der Webseite Anfang -->
var message="Rechte Maustaste gedrückt? - Copyright bei Harzer Solarzentrum Voigt GmbH";

function clickIE()
{
if (document.all)
{alert(message);return false;
}}

function clickNS(e)
{
if (document.layers||(document.getElementById&&!document.all))
{
if (e.which==2||e.which==3) {alert(message);return false;}}}
if (document.layers)
{
document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;
}
else
{
document.onmouseup=clickNS;document.oncontextmenu=clickIE;
document.onmousedown=clickNS;document.oncontextmenu=clickIE;
document.onmouseover=clickNS;document.oncontextmenu=clickIE;
}

function MM_openBrWindow(theURL,winName,features)
{ //v2.0 window.open(theURL,winName,features);
}
// -- Kopierschutz von Bildern der Webseite Ende -->

// -- Datum und Zeit -> Statuszeile //-->

// -- vor alten Browsern verstecken --
/* Uhrzeit und Datum in der Statuszeile */
var timerID = null;
var timerRunning = false;
// Called by both onLoad in BODY tag, and Resume button.
function startclock ()
   {
   // Make sure the clock is stopped
   stopclock();
   time();
   }
// Kills clock.

function stopclock ()
   {
      if(timerRunning)

      clearTimeout(timerID);

   timerRunning = false;
   }

function time ()
 {
   var now = new Date();
   var yr = now.getYear();
if (yr < 2000) yr +=1900
   var mName = now.getMonth() + 1;
   var dName = now.getDay() + 1;
   var dayNr = now.getDate();
   var hours = now.getHours();
   var minutes = ((now.getMinutes() < 10) ? ":0" : ":") + now.getMinutes();
   var seconds = ((now.getSeconds() < 10) ? ":0" : ":") + now.getSeconds();
   if(dName==1) Day = "Sonntag";
   if(dName==2) Day = "Montag";
   if(dName==3) Day = "Dienstag";
   if(dName==4) Day = "Mittwoch";
   if(dName==5) Day = "Donnerstag";
   if(dName==6) Day = "Freitag";
   if(dName==7) Day = "Samstag";
   if(mName==1) Month="Januar";
   if(mName==2) Month="Februar";
   if(mName==3) Month="März";
   if(mName==4) Month="April";
   if(mName==5) Month="Mai";
   if(mName==6) Month="Juni";
   if(mName==7) Month="Juli";
   if(mName==8) Month="August";
   if(mName==9) Month="September";
   if(mName==10) Month="Oktober";
   if(mName==11) Month="November";
   if(mName==12) Month="Dezember";

   // String to display current date.

   var DayDateTime=(" "
       + Day
       + "   "
       + dayNr
       + ". "
       + Month
       + " "
       + yr
       + "   "
       + hours
       + minutes
       + seconds
        );

   // Displays Day-Date-Time on the staus bar.

   window.status=DayDateTime;
   timerID = setTimeout("time()",1000);
   timerRunning = true;
   }

// Stops clock and clears status bar.

function clearStatus()
   {
   if(timerRunning)
      clearTimeout(timerID);
   timerRunning = false;
   window.status=" ";
   }
// -- End Hiding Here -->