
if( top.parent.frames.length > 0)
top.parent.location.href=self.location.href;

function ex(x)
{
window.open(x,'','resizable=yes,location=yes,directories=1,status=yes,menubar=yes,scrollbars=yes,toolbar=yes,width=600,height=400');
}

function e(x)
{
var e = window.open(x,'e','resizable=yes,location=yes,directories=1,status=yes,menubar=yes,scrollbars=yes,toolbar=yes,width=600,height=400');
}


function eg(x)
{
var eg = window.open(x,'eg','resizable=no,location=no,directories=0,status=no,menubar=no,scrollbars=no,toolbar=no,height=420,width=240');
}

function em()
{
var em = window.open('http://www.childrentooth.de/','em','resizable=yes,location=yes,directories=1,status=yes,menubar=yes,scrollbars=yes,toolbar=yes,width=600,height=400');
}



function datum(){
mn=new Array("Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember")
d=new Date()
m=mn[d.getMonth()]
t=d.getDate()
jj=d.getYear()
j=(jj>=2000)?jj:((jj<80)?jj+2000:jj+1900)
dat=(t+". "+m+" "+j)}
datum();


heute = new Date();
monat = heute.getMonth() +1;
tag = heute.getDate();  
x = new Array("leer", "Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember");
monatsname = x[monat];


function wu()
{
if (document.s.s.value.length < 3)
{
alert('\nBitte mindestens 3 Buchstaben eingeben');
document.s.s.focus();
return false;
}
}


function empfehlen()
{
if (document.weiter.abname.value.length < 3)
{
alert('\nBitte Namen eingeben. Danke.');
document.weiter.abname.focus();
return false;
}

if (document.weiter.abmail.value == ''
|| document.weiter.abmail.value.indexOf(' ') != '-1'
|| document.weiter.abmail.value.indexOf('@') == '-1'
|| document.weiter.abmail.value.indexOf('.') == '-1'
|| document.weiter.abmail.value.length < 7)
{
alert('\nBitte Ihre eMail-Adresse ordnungsgemäß eintragen');
document.weiter.abmail.focus();
return false;
}
if (document.weiter.anname.value.length < 3)
{
alert('\nBitte Namen eingeben. Danke.');
document.weiter.anname.focus();
return false;
}

if (document.weiter.anmail.value == ''
|| document.weiter.anmail.value.indexOf(' ') != '-1'
|| document.weiter.anmail.value.indexOf('@') == '-1'
|| document.weiter.anmail.value.indexOf('.') == '-1'
|| document.weiter.anmail.value.length < 7)
{
alert('\nBitte Ihre eMail-Adresse ordnungsgemäß eintragen');
document.weiter.anmail.focus();
return false;
}
}


function poppy()
{
var newwindow = window.open("popups.html","newwindow",'resizable=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,toolbar=0,width=180,height=220');
}


function pic1()
{
var newwindow = window.open("bembel.html","newwindow",'resizable=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,toolbar=0,width=240,height=360');
}


function pic2()
{
var newwindow = window.open("geripptes.html","newwindow",'resizable=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,toolbar=0,width=240,height=360');
}

function pic3()
{
var newwindow = window.open("kranz.html","newwindow",'resizable=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,toolbar=0,width=380,height=300');
}


function picdec()
{
var newwindow = window.open("deckel.html","newwindow",'resizable=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,toolbar=0,width=380,height=340');
}


function link(u)
{
if(u != 'n')
{
top.parent.location.href=u;
}
}


function z()
{
window.history.back()
}

function g1()
{
var g = window.location.href;
g1 = g.split("?");
g2 = g1[1];
v = g2.split("#");
document.write ('<img src="'+v[0]+'" width=225 height=300 border=0 alt="'+v[1]+'">');
}

function g(x)
{
peter = "g.html";
machner = peter + "?" + x;
top.parent.location.href=machner;
}


function a1()
{
var a  = window.location.href;
a1 = a.split("?");
a2 = a1[1];
v = a2.split("#");
document.write ('<img src="'+v[0]+'" width=300 height=236 border=0 alt="'+v[1]+'">');
}

function a(x)
{
rolf = "a.html";
tiger = rolf + "?" + x;
top.parent.location.href=tiger;
}


function s1()
{
var s  = window.location.href;
s1 = s.split("?");
s2 = s1[1];
v = s2.split("#");
document.write ('<img src="'+v[0]+'" width=450 border=0 alt="'+v[1]+'">');
}

function s(x)
{
marita = "s.html";
michel = marita + "?" + x;
top.parent.location.href=michel;
}



function pwrolf()
{
if (document.pass.eingabe.value.length < 5)
{
alert('\nBitte mindestens 5 Buchstaben und/oder Ziffern eingeben');
document.pass.eingabe.focus();
return false;
}
}



function nl()
{

if (document.news.e.value.indexOf('@') == '-1' ||
document.news.e.value == '' || document.news.e.value.indexOf('.') == '-1' )
{
alert('\nDie eMail-Adresse muß das Zeichen @ und einen Punkt enthalten. Versuchen Sie es bitte noch einmal!');
document.news.e.focus();
return false;
}

}


var bookmarkurl="http://www.frankfurt-interaktiv.de/"
var bookmarktitle="Frankfurt interaktiv"
function addbookmark() {
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}


function umrech() 
{ 
checkform () 
var b=document.form.geld.value; 
var d=0; 
if (document.form.devis.selectedIndex == 0){d = 1.95583;
}
if (document.form.devis.selectedIndex == 1){d = 40.3399;
}
if (document.form.devis.selectedIndex == 2){d = 5.94573;
}
if (document.form.devis.selectedIndex == 3){d = 6.55957;
}
if (document.form.devis.selectedIndex == 4){d = 2.20371;
}
if (document.form.devis.selectedIndex == 5){d = 340.75;
}
if (document.form.devis.selectedIndex == 6){d = 0.787564;
}
if (document.form.devis.selectedIndex == 7){d = 1936.27;
}
if (document.form.devis.selectedIndex == 8){d = 40.3399;
}
if (document.form.devis.selectedIndex == 9){d = 13.7603;
}
if (document.form.devis.selectedIndex == 10){d = 200.482;
}
if (document.form.devis.selectedIndex == 11){d = 166.386;
}
var x = b/d;
document.form.euro.value = ""; 
var z=Math.round(x*100)/100 
if(document.form.rund[0].checked == true){document.form.euro.value = z;
} 
else 
{
document.form.euro.value = x;
} 
} 
function checkform () 
{ 
if (document.form.geld.value == "") 
alert ("Bitte Betrag eingeben"); 
document.form.geld.focus (); 
document.form.geld.select (); 
} 



function javaOstern (nYear)
{
	var nMonth, nDay, nMoon, nEpact, nSunday, nGold, nCent, nCorx, nCorz;

	//The Golden Number of the year in the 19 year Metonic Cycle
	nGold = ((nYear % 19) + 1);
 
	//Calculate the Century
	nCent = ((Math.floor(nYear / 100)) + 1);

	//No. of Years in which leap year was dropped in order to keep in step with the sun
	nCorx = ((Math.floor((3 * nCent) / 4)) - 12);

	//Special Correction to Syncronize Easter with the moon's orbit
	nCorz = ((Math.floor((8 * nCent + 5) / 25)) - 5);

	//Find Sunday
	nSunday = ((Math.floor((5 * nYear) / 4)) - nCorx - 10);
 
	//Set Epact to specify occurance of full moon  
	nEpact = (((11 * nGold) + 20 + nCorz - nCorx) % 30);
    
	if (nEpact < 0)
		nEpact = nEpact + 30;
        
	if (((nEpact == 25) && (nGold > 11)) || (nEpact == 24))
		nEpact = (nEpact + 1);

	//Find Full Moon
	nMoon = 44 - nEpact;
 
	if (nMoon < 21)
	nMoon = nMoon + 30;

	//Advance to Sunday
	nMoon = (nMoon + 7 - ((nSunday + nMoon) % 7));

	if (nMoon > 31)
		{
		nMonth = 4;
		nDay = (nMoon - 31);
		}
	else
		{
		nMonth = 3;
		nDay = nMoon;
		}
    
	//Hinweis: Javascript numeriert Monate von 0 bis 11, aber Tage von 1 bis 31!
	//var eDate1 =  new Date(nYear, (nMonth - 1), nDay);
	//return(eDate1);
	return (nDay + "." + nMonth + "." + nYear)
}

function javaOsternZeigen()
{
	var strEingabe, strOstern;
	strEingabe = document.Ostertest.Jahr.value
	strOstern = javaOstern(strEingabe);
	window.alert ("Ostersonntag " + strEingabe + " ist am " + strOstern);
}


function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


 
function petery()
{
if (document.bestelly.namey.value.length < 4)
{
alert('\nBitte Ihren Namen eintragen');
document.bestelly.namey.focus();
return false;
}
if (document.bestelly.telefony.value.length < 4)
{
alert('\nBitte Ihre Telefonnummer eintragen');
document.bestelly.telefony.focus();
return false;
}
if ( document.bestelly.emaily.value.indexOf('@') == '-1'
|| document.bestelly.emaily.value.indexOf('.') == '-1'
|| document.bestelly.emaily.value.length < 7)
{
alert('\nBitte Ihre eMail-Adresse ordnungsgemäß eintragen');
document.bestelly.emaily.focus();
return false;
}
}


