function check_only_blanks(elem)
{
//nur Blanks im Eingabefelde verhindern
var i=0;
var j=0;
var v=0;

for (i=0; i<elem.value.length; i++)
{
	var actchar=elem.value.charAt(i);
	if (actchar==" ")
		j++;
	else
		 v=1;
}

if ((j> 0)&&(v==0))
	{
	elem.value="";
	elem.focus();
	var ret=""
	return(ret);
	}

else
	{
	var ret=elem.value;
	return (ret);
	}
}


function fkt_check()
{
var theForm=document.routingForm;

var ort=check_only_blanks(theForm.zipCodeStart)
var plz=check_only_blanks(theForm.cityStart)
if ((ort.length==0) && (plz.length==0))
	{
	alert("Bitte Postleitzahl und/oder Ort angeben!")
	theForm.routeEntry_start_zip.focus();
	return false;
	}
else
	{
	theForm.submit();
	return true;
	}


}



function fkt_check_reg()
{
var theForm=document.freg;

var nname=check_only_blanks(theForm.nname)
var vname=check_only_blanks(theForm.vname)
var plz=check_only_blanks(theForm.plz)
var ort=check_only_blanks(theForm.ort)
var tel=check_only_blanks(theForm.tel)
var email=check_only_blanks(theForm.email)
if ((vname.length==0) || (email.length==0) || (nname.length==0))
	{
	alert("Bitte mindenstens Name, Vorname und Email angeben!")
	theForm.email.focus();
	return false;
	}
else
	{
	theForm.submit();
	return true;
	}


}

function f_nl_check()
{
var theForm=document.f_newsl;
var ok=0;
var s=check_only_blanks(theForm.esubj)
if (s.length==0)
	{
	alert("Bitte einen Betreff angeben!")
	theForm.esubj.focus();
	return false;
	}

var rows=theForm.length - 5;
for (j=0; j<rows; j++)
	{
		var pos=j+1;
		if ((theForm.elements[pos].checked) == true)
		{
		ok=1;
		}
	}
if (ok==1)
{
	theForm.submit();
	return (true);
}
else
{
	alert("Mindenstens ein checkbox auswählen!");
	return false;
}


}

function fkt_check_log()
{
var theForm=document.flogin;

var l=check_only_blanks(theForm.logval)
var p=check_only_blanks(theForm.pwdval)
if ((l.length==0) || (p.length==0))
	{
	alert("Bitte Login und Paßwort eingeben!")
	theForm.logval.focus();
	return false;
	}
else
	{
	theForm.submit();
	return true;
	}


}


function fkt_anmeld()
{
var theForm=document.f1;
var theForm2=document.fAnmeld;

	theForm2.pid.value=theForm.pid.value;
	theForm2.sid.value=theForm.sid.value;
	theForm.action="t6Anmeld_ins.php";
	theForm2.method="post";
	theForm2.submit();
	return true;
}

function fktInsKomm()
{
var theForm=document.f1;

	theForm.action="iaktivNeu.php";
	theForm.submit();
	return true;
}


function fktInsForum()
{
var theForm=document.f2;

var l=check_only_blanks(theForm.nickname)
var p=check_only_blanks(theForm.bem)
if ((l.length==0) || (p.length==0))
	{
	alert("Bitte Name und Beitrag eingeben!")
	theForm.bem.focus();
	return false;
	}
else
	{
	theForm.submit();
	return true;
	}


}


function runHaS(was, startx, starty, endx, endy, steps, wait)
{
	var delay=10;
	if(wait && wait>0)
		setTimeout('runHaS("'+was+'",'+startx+','+starty+','+endx+','+endy+','+steps+','+(wait-1)+')', delay);
	else
	{
		if(document.layers)
		{
			document.layers[was].left=startx;
			document.layers[was].top=starty;
		}
		else
		{
			document.all[was].style.left=startx;
			document.all[was].style.top=starty;
		}
		startx+=(endx-startx)/steps;
		starty+=(endy-starty)/steps;
		if(steps>0)
			setTimeout('runHaS("'+was+'",'+startx+','+starty+','+endx+','+endy+','+(steps-1)+')', delay);
	}
}
function goHaS()
{
	if(navigator.appName=="Netscape")
	{
		var w=innerWidth;
		var h=innerHeight;
	} else
	{
		var w=document.body.offsetWidth;
		var h=document.body.offsetHeight;
	}
	runHaS("hasi", -100, 200, 800, 100, 200, 10);
}



function showWin(w_1,w_2,w_3,w_4)
   {
   bild = w_1;
   titel = w_2;
   breite = w_3;
   hoehe = w_4;
   if(navigator.appName == "Netscape") // Navigator stellt die Grafik nur mit Rand links und oben dar.
      {
      fensterhoehe = hoehe + 15;
      fensterbreite = breite + 15;
      }
   else
      {
      fensterhoehe = hoehe;
      fensterbreite = breite;
      }
   bedingungen = 'toolbar=0,location=0,menubar=0,scrollbars=1,resizable=0,height='+fensterhoehe+',width='+fensterbreite;
   fenster = open("","",bedingungen)
   fenster.document.open();
   with (fenster)
      {
      document.write('<html><head><title>' + titel + '</title></head>');
      document.write('<body onblur="window.close()" leftmargin="0" topmargin="0">');
      document.write('<img src="'+ bild +'" border="0" alt="'+ titel+'">');
      document.write('</body></html>');
      }
     fenster.document.close();
   }



/************************************************************************
Script made by Martial Boissonneault © 2001 http://getElementById.com/
This script may be used and changed freely as long as this msg is intact
Visit http://getElementById.com/ for more free scripts and tutorials.
*************************************************************************/
var ie5 = (document.getElementById && document.all);
var ns6 = (document.getElementById && !document.all);

var nWidth = 1300;          // width of text; more text you have higher this number is.
var nSpeed = 3;            // the speed of the ticker.
var nBgOff = "#800000";    // the background-color onmouseout.
var nBgOn  = "#000000";    // the background-color onmouseover.
var nCoOff = "#ffffff";    // the font-color onmouseout.
var nCoOn  = "#00ffff";    // the font-color onmouseover.

/* You don't have to edit below this line */

var nEnd = -nWidth;
var nLeft = nWidth;
var timerTt = null;
var timerSt = null;

function Statik() {
    if(ie5) {
        scrollY = document.body.scrollTop;
        innerHeight = document.body.clientHeight;
}
    if (ie5 || ns6) {
        obj.style.top = (innerHeight - obj.offsetHeight) + scrollY;
        obj.style.left = 0;
	obj.style.width = 100 + "%";
	timerSt=setTimeout("Statik()", 10);
	}
}

function TickerTape(){
    if(ie5) {
        innerWidth = document.body.clientWidth;
}
    if(ie5 || ns6) {
        obj.style.backgroundColor = nBgOff;
	obj.style.color = nCoOff;
        tck.style.left = nLeft;
        tck.style.width = nWidth;
        nLeft = nLeft - nSpeed;
        if( nLeft < nEnd ) {nLeft = innerWidth;}
        timerTt=setTimeout('TickerTape()', 30);
    }
}

function StopIt(){
        clearTimeout(timerTt);
        obj.style.backgroundColor = nBgOn
	obj.style.color = nCoOn
}

function TickerInit(){
    if(ie5 || ns6) {
        tck = document.getElementById('text');
        obj = document.getElementById('cont');
        obj.style.visibility = "visible";
        obj.onmouseover=StopIt;
        obj.onmouseout=TickerTape;
        TickerTape();
	Statik();
    }
}




function gotoLink(tarFile)
{
document.f1.action=tarFile;
document.f1.submit();
}

function gotoLinkLO()
{
document.f1.action='logout.php';
document.f1.submit();
}

function gotoLinkPRIV1()
{
document.f1.action='anmList.php';
document.f1.submit();
}

function gotoLinkPRIV2()
{
document.f1.action='regList.php';
document.f1.submit();
}
function gotoLinkPRIV3()
{
document.f1.action='getLogins.php';
document.f1.submit();
}

function gotoLinkPRIV4()
{
document.f1.action='newsletter.php';
document.f1.submit();
}


function gotoLinkAnmeld()
{
document.f1.action='t6Anmeld.php';
document.f1.submit();
}




