
function CheckFrames (strWindowName,strUrl) {
	if (parent.frames.length < 2 || window.name != strWindowName) {
		window.location.href = strUrl;
	}
}


function Checkleer (strUrl) {
	if (window.name == 'up'||window.name == 'down'||window.name == 'right'||window.name == 'left') {
	}else{
		parent.location.href = strUrl;
	}
}

function CheckPopup(strUrl,bez,breite,hoehe) {
	if (window.name != bez)
	{
		wndsets = "width="+breite+",height="+hoehe+",scrollbars=yes,resizable=no";
		win = window.open(document.URL,bez,wndsets);
		win.moveTo(eval((screen.width-breite)/2),eval((screen.height-hoehe)/2));
		window.location.href = strUrl;
		win.focus();
	}
}


function Popup(datei,bez,breite,hoehe) {
	posx = eval((screen.width-breite)/2);
	posy = eval((screen.height-hoehe)/2);
	wndProps = "top="+posy+",left="+posx+",width="+breite+",height="+hoehe+",dependant=no,scrollbars=yes,resizable=no";
	pop = window.open(datei,bez,wndProps);
	pop.moveTo(eval((screen.width-breite)/2),eval((screen.height-hoehe)/2));
    pop.focus();
}

function visitenkarte()
   {
    MeinFenster =
    window.open('visitenkarte.htm', 'Zweitfenster', 'width=400,height=300', 'scrollbars=no', 'resizable=no');
    MeinFenster.focus();
}
function anfahrt()
   {
    MeinFenster =
    window.open('anfahrt.htm', 'Zweitfenster', 'width=620,height=360', 'scrollbars=no', 'resizable=no');
    MeinFenster.focus();
}

var nc = navigator.appName == "Netscape";
var PointID = null;
var a = 10;
var b = 20;
var zahl = 0;
var PointYpos = zahl;

function Aufruf_ie() {
	if (PointID != null) { 
		clearTimeout(PointID)
	}
	Point.style.top = PointYpos;
	PointYpos = PointYpos + ((zahl - PointYpos)/a);
	PointID = window.setTimeout('Aufruf_ie()', b);
}

function Aufruf_nc() {
	if ((navigator.appVersion.indexOf("4") != -1)) {
		if (PointID != null) { 
		clearTimeout(PointID)
		}
		document.Point.top = document.Point.top + ((zahl - document.Point.top)/a);
		PointID = window.setTimeout('Aufruf_nc()', b);
	}else{
		Punkt=document.getElementById("Point");
		toppos=parseInt(Punkt.style.top);
		if (PointID != null) { 
			clearTimeout(PointID)
		}
		Punkt.style.top = toppos + ((zahl - toppos)/a);
		PointID = window.setTimeout('Aufruf_nc()', b);
	}
}

function Abfrage() {
	if(nc==true) {
		Aufruf_nc();
	} else {
		Aufruf_ie();
	}
}

