
var starturl="Start.htm";
var Text = "Schnell Erfolgreich Günstig - mit Hilfe der CD`s und dem Fern-Kompakt-Kurs";  
var NavFrameUrl = "head.htm";
var HauptframeUrl = "../skript/Stichwort.htm";









function click(e)
{
	if (document.all) 
		if (event.button == 2) 
			return false;
	if (document.layers) 
		if (e.which == 3) 
			return false;
}
function click2()
{
	event.returnValue=false;
	return false;
}
if (document.layers)
	document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=click;
document.oncontextmenu=click2;

var win = null;
function WindowZentriert(mypage,myname,w,h,scroll)
{
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable=no,menubar=0,directories=0,toolbar=0,location=0,status=0,hotkeys=no'
	win = window.open(mypage,myname,settings)
	if(win.window.focus)
	{
		win.window.focus();
	}
}

function FramesFuellen()
{
	NavFrame.location.replace(NavFrameUrl);
	Hauptframe.location.replace(HauptframeUrl);
}

window.defaultStatus = ".";
var Geschwindigkeit = 120;   /*** Nach Bedarf erhoehen oder erniedrigen ***/
var Breite = 100;            /*** Nach Bedarf erhoehen oder erniedrigen ***/
var TextLaenge = Text.length; /*** Bitte nicht aendern ***/
var Position = 1 - Breite;   /*** Bitte nicht aendern ***/

function StatusLauftext()    
{
	Position++;
	var Textzustand="";
	if (Position == TextLaenge) 
	{
		Position = 1 - Breite;
	}
	if (Position < 0) 
	{
		for (var Zaehler=1; Zaehler <= Math.abs(Position); Zaehler++) 
		 {
		  Textzustand = Textzustand + " ";
		 };
		Textzustand = Textzustand + Text.substring(0, Breite - Zaehler + 1);
	}
	else 
	{
		Textzustand = Textzustand + Text.substring(Position, Breite + Position);
	}
	window.status = Textzustand;
	setTimeout("StatusLauftext()",Geschwindigkeit);
}

 StatusLauftext();

