﻿function shadowlink(link,tooltip,text,styleplus)
{
	document.write('<a style="position:absolute; top:2px; left:2px; color:#C0C0C0; '+styleplus+'" href="'+link+'" title="'+tooltip+'">'+text+'</a>');
	document.write('<a style="position:absolute; top:1px; left:1px; color:#A0A0A0; '+styleplus+'" href="'+link+'" title="'+tooltip+'">'+text+'</a>');
	document.write('<a style="position:absolute; top:0px; left:0px; color:#808080; '+styleplus+'" href="'+link+'" title="'+tooltip+'">'+text+'</a>');
	document.write('<a style="position:absolute; top:-1px; left:-1px; color#000000; '+styleplus+'" href="'+link+'" title="'+tooltip+'">'+text+'</a>');
}
function shadowlinker(text,styleplus)
{
	document.write('<span style="position:absolute; top:3px; left:3px; color:#C0C0C0; '+styleplus+'">'+text+'</span>');
	document.write('<span style="position:absolute; top:2px; left:2px; color:#A0A0A0; '+styleplus+'">'+text+'</span>');
	document.write('<span style="position:absolute; top:1px; left:1px; color:#808080; '+styleplus+'">'+text+'</span>');
	document.write('<span style="position:absolute; top:0px; left:0px; color:#000000; '+styleplus+'">'+text+'</span>');
}
function shadowlogo(link,tooltip,text,styleplus,color)
{
	document.write('<a style="position:absolute; top:3px; left:3px; color:#000000; '+styleplus+'" href="'+link+'" title="'+tooltip+'">'+text+'</a>');
	document.write('<a style="position:absolute; top:2px; left:2px; color:#333333; '+styleplus+'" href="'+link+'" title="'+tooltip+'">'+text+'</a>');
	document.write('<a style="position:absolute; top:1px; left:1px; color:#666666; '+styleplus+'" href="'+link+'" title="'+tooltip+'">'+text+'</a>');
	document.write('<a style="position:absolute; top:0px; left:0px; color:#999999; '+styleplus+'" href="'+link+'" title="'+tooltip+'">'+text+'</a>');
}
function shadowtext(text,styleplus)
{
	document.write('<b>');
	document.write('<span style="font-weight:100; position:absolute; top:2px; left:2px; color:#F0F0F0; '+styleplus+'">'+text+'</span>');
	document.write('<span style="font-weight:100; position:absolute; top:1px; left:1px; color:#C0C0C0; '+styleplus+'">'+text+'</span>');
	document.write('<span style="font-weight:100; position:relative; top:0px; left:0px; color:#909090; '+styleplus+'">'+text+'</span>');
	document.write('<span style="font-weight:100; position:absolute; top:-1px; left:-1px; color:#606060; '+styleplus+'">'+text+'</span>');
	document.write('<span style="font-weight:100; position:absolute; top:-2px; left:-2px; color:#303030; '+styleplus+'">'+text+'</span>');
	document.write('<span style="font-weight:100; position:absolute; top:-3px; left:-3px; color:#000000; '+styleplus+'">'+text+'</span>');
	document.write('</b>');
}
function backgroundshadow(text)
{
	document.write('<b>');
	document.write('<span style="position:absolute; top:2px; left:2px; color:#D0D0D0; ">'+text+'</span>');
	document.write('<span style="position:absolute; top:1px; left:1px; color:#E0E0E0; ">'+text+'</span>');
	document.write('<span style="position:absolute; top:0px; left:0px; color:#F0F0F0; ">'+text+'</span>');
	document.write('<span style="position:absolute; top:-1px; left:-1px; color:#FFFFFF; ">'+text+'</span>');
	document.write('</b>');
}
function writebgdiv(top,left,size)
{
	document.write('<div style="position:absolute; top:'+top+'px; left:'+left+'px; font-size:'+size+'pt;"><script type="text/javascript">backgroundshadow("Running-Charts")<\/script></div>');
}
function background()
{

	var Breite = screen.width;
	var Hoehe = screen.height;
	var nH = -190;
	while (nH<Breite)
	{
		var nI = nH%130-130;
		while (nI<Hoehe)
		{
			writebgdiv((nI+70),(nH+240),54);
			writebgdiv((nI+0),(nH+0),36);
			writebgdiv((nI+70),(nH+250),36);
			writebgdiv((nI+50),(nH+120),24);
			writebgdiv((nI+100),(nH+240),24);
			writebgdiv((nI+10),(nH+300),24);
			writebgdiv((nI+90),(nH+360),24);
			writebgdiv((nI+30),(nH+70),18);
			writebgdiv((nI+50),(nH+30),18);
			writebgdiv((nI+80),(nH+360),18);
			writebgdiv((nI+100),(nH+100),18);
			writebgdiv((nI+20),(nH+270),18);
			writebgdiv((nI+70),(nH+20),18);
			writebgdiv((nI+60),(nH+180),18);
			writebgdiv((nI+110),(nH+330),18);
			nI = nI + 130;
		}
		nH = nH + 190;
	}

}
function KategorieBackground()
{
}
function Logo()
{
	document.write('<div style="position:absolute; top:36px; left:144px;">');
	shadowlogo("../index.html","Running-Charts","Running-Charts","font-size:18pt;","#606060");
	document.write('</div>');
	document.write('<div style="position:absolute; top:69px; left:12px;">');
	shadowlogo("../index.html","Running-Charts","Running-Charts","font-size:18pt;","#606060");
	document.write('</div>');
	document.write('<div style="position:absolute; top:75px; left:120px;">');
	shadowlogo("../index.html","Running-Charts","Running-Charts","font-size:18pt;","#606060");
	document.write('</div>');
	document.write('<div style="position:absolute; top:24px; left:24px;">');
	shadowlogo("../index.html","Running-Charts","Running-Charts","font-size:24pt;","#303030");
	document.write('</div>');
	document.write('<div style="position:absolute; top:84px; left:48px;">');
	shadowlogo("../index.html","Running-Charts","Running-Charts","font-size:24pt;","#303030");
	document.write('</div>');
	document.write('<div style="position:absolute; top:36px; left:36px;">');
	shadowlogo("../index.html","Running-Charts","Running-Charts","font-size:36pt;","#000000");
	document.write('</div>');
}
function CheckArtikelNeu()
{
	var strKategorie=document.getElementById("Kategorie").value;
	if (strKategorie.length<3)
	{
		alert("Die Angabe der Kategorie '"+strKategorie+"' ist unvollständig");
		return false;
	}
	var strHeadline=document.getElementById("Headline").value;
	if (strHeadline.length<3)
	{
		alert("Die Angabe der Überschrift '"+strHeadline+"' ist unvollständig");
		return false;
	}
	var strHead=document.getElementById("Head").value;
	if (strHead.length<100)
	{
		alert("Die Angabe der Einleitung '"+strHead+"' ist unvollständig");
		return false;
	}
	var strBody=document.getElementById("Body").value;
	if (strBody.length<1000)
	{
		alert("Zu wenig Text '"+strBody+"'");
		return false;
	}
	var strTags=document.getElementById("Tags").value;
	if (strTags.length<3)
	{
		alert("Die Schlagworte '"+strHeadline+"' fehlen");
		return false;
	}
	var strEmail=document.getElementById("Email").value;
	if (strEmail.length<3)
	{
		alert("Die Emailadresse '"+strHeadline+"' ist unvollständig");
		return false;
	}
	return true;
}
