// Rechtsklick

if (document.layers){
window.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP)
window.onmousedown=rightclick;
window.onmouseup=rightclick;
function rightclick(e) {
if (e.which == 3) {
// Put right mouse code here
alert('Copyright by\n\nMüritz-Online\nWarendorfer Straße 20\n17192 Waren (Müritz)\nTel.:0 39 91  63 46 91 \nFax : 0 39 91 / 63 46 92');
return false;
}
else {
return true;
}
}
}
if (document.all){
function click() {
if (event.button==2) {
alert('Copyright by\n\nMüritz-Online\nWarendorfer Straße 20\n17192 Waren (Müritz)\nTel.:0 39 91 / 63 46 91 \nFax : 0 39 91 / 63 46 92')
}
if (event.button==3) {
alert('Müritz-Online\nWarendorfer Straße 20\n17192 Waren (Müritz)\nTel.:0 39 91  63 46 91 \nFax : 0 39 91 / 63 46 92')}
}
document.onmousedown=click
}

//---------------------------------------------------------------------------------------------------------------------------------------------------------------

// Framenachlader

/*if (!top.FramesetGeladen){
if(document.images)
top.location.replace(ZielDatei);
else
top.location.href = ZielDatei ;
} */

//---------------------------------------------------------------------------------------------------------------------------------------------------------------

//Formularkontrole

function chkFormular()
    {
    if(document.Formular.zname.value == "")
    {
     alert("Tragen Sie bitte Ihren Nachnamen ein!");
     document.Formular.zname.focus();
     return false;
    }
    if(document.Formular.strasse.value == "")
    {
     alert("Tragen Sie bitte Ihre Strasse ein!");
     document.Formular.strasse.focus();
     return false;
    }

    if(document.Formular.ort.value == "")
    {
     alert("Tragen Sie bitte Ihren Wohnort ein!");
     document.Formular.ort.focus();
     return false;
    }

     if(document.Formular.personen.value == "")
    {
     alert("Tragen Sie bitte ein mit wievielen Personen Sie kommen möchten!");
     document.Formular.personen.focus();
     return false;
    }

     if(document.Formular.mail.value == "")
    {
     alert("Tragen Sie bitte Ihre E-Mail Adresse ein!");
     document.Formular.mail.focus();
     return false;
    }
   if(document.Formular.mail.value.indexOf('@') == -1)
    {
     alert("Tragen Sie bitte Ihre E-Mail Adresse richtig ein!");
     document.Formular.mail.focus();
     return false;
    }

    if(document.Formular.agb.checked==false)
    {
     alert("Sie müssen unsere AGBs aktzeptieren bevor Sie diese Formular versenden können!");
     document.Formular.agb.focus();
     return false;
    }

    }
function sicher()
{
return window.confirm("Wollen Sie dieses Formular wircklich leeren?");
}
function stand()
{
return window.confirm("Diese Formular wird jetzt abgesendet !");
}

//---------------------------------------------------------------------------------------------------------------------------------------------------------------

//Scroll

function hoehe(position)
{
limit = position-position-position+420;
}

ns4 = (document.layers)? true:false;
ie4 = (document.all)? true:false;
loop = true;
window.onerror=null;
st2 =0;
g2 = 0;
t2 = 0;
//limit = -1500;
scrollspeed = 3;

function init() {
	if (ns4) {

		parentscroll1 = document.parentscroll
		parentscroll1.xpos = parentscroll1.left
		parentscroll1.ypos = parentscroll1.top
		childscroll1 = document.parentscroll.document.childscroll
		childscroll1.xpos = childscroll1.left
		childscroll1.ypos = childscroll1.top
	}
	if (ie4) {

	  parentscroll1 = parentscroll.style
		parentscroll1.xpos = parentscroll1.offsetX
		parentscroll1.ypos = parentscroll1.offsetY
		childscroll1 = childscroll.style;
		childscroll1.xpos = childscroll1.offsetX
		childscroll1.ypos = childscroll1.offsetY
	}
}

function movescroll()
{
  if (g2 < 0 )
	{
		g2 = g2 + scrollspeed;
		childscroll1.top = g2;
		if (loop == true)
		 setTimeout("movescroll()",1);
	}
}

function movescroll2()
{
  if (g2 > limit)
	{
		g2 = g2 - scrollspeed;
		childscroll1.top = g2;
		if (loop == true)
	 		setTimeout("movescroll2()",1);
	}

}
