function pruefen(){

//Vorname

var i=document.formular.Vorname.value;
if(isNaN(i)==false || i==""){
alert("Geben Sie Ihren Vornamen ein!");
var i=document.formular.Vorname.value="";
document.formular.Vorname.focus();
return false;
}//if zu

//Name

var j=document.formular.Name.value;
if(isNaN(j)==false || j==""){
alert("Geben Sie Ihren Namen ein!");
var j=document.formular.Name.value="";
document.formular.Name.focus();
return false;
}//if zu

//iMehl

var n=document.formular.Mail.value;
if(n.indexOf('@',2)==-1){
alert("Sie haben keine e-mail-Adresse eingegeben!");
document.formular.Mail.value="";
document.formular.Mail.focus();
return false;
}//if zu

//Checkbox
var m=0;
for(i=0;i<document.formular.info.length;i++)
{if(document.formular.info[i].checked==true)
{m=document.formular.info[i].value}
}//for zu
if(m==0){alert("In welcher Angelegenheit möchten Sie Kontakt aufnehmen?");
return false;}
alert("Vielen Dank für Ihr Interesse!");
}//function zu

//zurücksetzen

function sicher(){
return window.confirm("Wollen Sie das Formular wirklich leeren?")
}//zu function sicher

/*var tx = new Array ("www.premnitz.com", "www.premnitz.com", "Inoffizielle Seite der Stadt!");
var txcount=3;

var i=1;
var wo=0;
var ud=1;
function animatetitle()
{
window.document.title=tx[wo].substr(0, i)+"_";
if (ud==0) i--;
if (ud==1) i++;
if (i==-1) {ud=1;i=0;wo++;wo=wo%txcount;}
if (i==tx[wo].length+10) {ud=0;i=tx[wo].length;}
if (window.document.title.length < 20 ) window.document.title=window.document.title+"-";
 if (window.document.title.length == 20 ) window.document.title=window.document.title+"]";
 if (window.document.title.length == 21 ) setTimeout("window.document.title=' www.premnitz.com '; ",1000);

parent.window.document.title=tx[wo].substr(0, i)+"_";
setTimeout("animatetitle()",200);}
function fenster(){
//var win;
//win=window.open("fenster.html","NeuesFenster","width=400,height=250");}


<!--
   function Go(x)
   {
    if(x == "nothing")
    {
      document.forms[0].reset();
      document.forms[0].elements[0].blur();
      return;
    }
    else if(x == "end") top.location.href = parent.frames[1].location;
    else
    {
      parent.frames[1].location.href = x;
      document.forms[0].reset();
      document.forms[0].elements[0].blur();
    }
  }
  //-->
 </script>


  //mir info beginn
/*var speed = 10
var pause = 3000
var timerID = null
var bannerRunning = false
var ar = new Array()
ar[0] = " Hallöle!"
ar[1] = " Osterfreuden mit www.premnitz.com"
ar[2] = " ...schnuppern Sie doch einmal rein!"
ar[3] = " | Chat | Geschichte | Satiere | und mehr |"
ar[4] = " °°° FROHE OSTERN °°°"


var message = 0
var state = ""
clearState()
function stopBanner() {
if (bannerRunning)
clearTimeout(timerID)
bannerRunning = false
}

function startBanner() {
stopBanner()
showBanner()
}
function clearState() {
state = ""
for (var i = 0; i < ar[message].length; ++i) {
state += "0"
}
}
function showBanner() {
if (getString()) {
message++
if (ar.length <= message)
message = 0
clearState()
timerID = setTimeout("showBanner()", pause)
bannerRunning = true
} else {
var str = ""
for (var j = 0; j < state.length; ++j) {
str += (state.charAt(j) == "1") ? ar[message].charAt(j) : " "
}
window.status = str
timerID = setTimeout("showBanner()", speed)
bannerRunning = true
}
}
function getString() {
var full = true
for (var j = 0; j < state.length; ++j) {
if (state.charAt(j) == 0)
full = false
}
if (full)
return true
while (1) {
var num = getRandom(ar[message].length)
if (state.charAt(num) == "0")
break
}
state = state.substring(0, num) + "1" + state.substring(num + 1, state.length)
return false
}
function getRandom(max) {
return Math.round((max - 1) * Math.random())
}*/
// -- End mir info
// -->
//startBanner() ;


//beginn maussperre
document.onmousedown=ueberwachung;
function ueberwachung(ereignis){
if (document.layers){
if (ereignis.which == 3){
alert('Die rechte Maustaste wurde gesperrt!');
return (false);}}

if (document.all){
if (event.button == 2)
alert ('Die rechte Maustaste wurde gesperrt!');
return (false);}
return (true);}
//-->
