// Script für Alle

var	MenuLinks	=	new Array(
	"index.htm","Home",0,"Startseite von RED CAD",
	"WasIst.htm","Was ist RED CAD",0,"Beschreibung und nähere Infos zu RED CAD",
	"entw.htm","Entwicklung",0,"Wie wurde RED CAD entwickelt",
	"http:///redcad-ch.cust.netzone.ch/EI/Symbole.htm","Symbole EI",0,"Alle zur Zeit im Programm RED CAD enthaltenen Symbole",
	"http:///redcad-ch.cust.netzone.ch/ES/Symbole.htm","Symbole ES",0,"Alle zur Zeit im Programm RED CAD enthaltenen Symbole",
	"presse.htm","Presseberichte",0,"Was schreibt die Presse über das Produkt RED CAD",
	"http:///redcad-ch.cust.netzone.ch/DL/RedCadEIDE.pdf","Handbuch EI",1,"Aktuelles Handbuch zu RED CAD (Elektro Installation)",
	"http:///redcad-ch.cust.netzone.ch/DL/RedCadESDE.pdf","Handbuch ES",1,"Aktuelles Handbuch zu RED CAD (Elektro Stromlauf)",
//	"http://www.redcad.ch/DL/RedCadEIFR.pdf","Manuel d’utilisation EI",1,"Manuel d’utilisation de RED CAD (Elektro Installation)",
//	"http://www.redcad.ch/DL/RedCadESFR.pdf","Manuel d’utilisation ES",1,"Manuel d’utilisation de RED CAD (Elektro schéma)",
//	"Prospekt.pdf","Prospekt",1,"Momentaner Prospekt und Unterlagen zu RED CAD",
	"download.htm","Download",0,"Download des voll funktionsfähigen RED CAD Demo-Programms",
	"wo.htm","Adresse",0,"Anfahrt und Ortsbeschreibung der Firma RED CAD",
	"form.htm","Kontakt",0,"Kontaktaufnahme zum RED CAD Team",
	"jobs.htm","Jobs",0,"Jobs beim RED CAD Team",
	"live.htm","Live Veranstaltungen",0,"Wo findent die nächste Informationsveranstaltung zu RED CAD statt",
	"","",0,"")


function TestAlles(Links,Rechts)
{
var isIE = document.all?true:false;
var isNS = document.layers?true:false;
var	OK	=	true	;
	if (isNS)
	{
		if(parent.links == undefined)
			OK	=	false	;
	}
	else if (isIE)
	{
	
		if(parent.links == null)
		{
			OK	=	false	;
		}
	}
	if (OK)
		return	;
	
}
	document.write("<LINK REL=STYLESHEET HREF='MAIN.css' TYPE='text/css'>");

function CopyR()
{
	document.write("<p align=center class=copyr>");
	document.write("<img src='Logo.jpg' border=0><BR>");
	document.write("Contents of this page © 2006,2007<BR>")	;
	document.write("RED CAD GmbH<br>");
	document.write("Hohestrasse 134<br>4104 Oberwil<br>Schweiz<BR>Tel.: +41 (0) 61 312 08 08<BR>Fax: +41 (0) 61 722 03 75<BR>");
	document.write("For questions or comments regarding this page, contact </font><a ");
	document.write("href=mailto:webmaster")	;
	document.write("@")	;
	document.write("redcad.ch><font size=1>webmaster")
	document.write("@")	;
	document.write("redcad.ch</a></p>");
}

function Logo()
{
	CopyR()
}

function funcs(titel)
{
	i = 0	;
	document.write("<table width=100% border=0 cellspacing=0 cellpadding=0><TR><TD colspan=5>&nbsp;</TD></TR>\r\n")	;
	while (	MenuLinks[i].length > 0)
	{
		document.write("<tr><td>&nbsp;</TD><TD width=1pt><image src=")	;
		if (MenuLinks[i+1] == titel)
			document.write("rl_on.gif border=0></TD><TD width=200pt class=reiter background=r_bg_on.gif>")	;
		else
			document.write("rl_off.gif border=0></TD><TD width=200pt class=reiter background=r_bg_off.gif>")	;
		Str = MenuLinks[i+1]	;
		Str1	=	Str	;
		if (MenuLinks[i+1] == titel)
		{
			document.write("&nbsp;&nbsp;" + Str1  )	;
		}
		else
		{
			document.write("<a title='" + MenuLinks[i+3] + "'href='" + MenuLinks[i] + "'")	;
			if (MenuLinks[i+2] == 1)
				document.write(" target=_blank")	;
			document.write(">&nbsp;" + Str1	 + "&nbsp;</a>")	;
		}
		if (MenuLinks[i+1] == titel)
			document.write("</TD><TD width=1pt><image src=r_bg_on.gif border=0></TD></TR>")	;
		else
			document.write("</TD><TD width=1pt><image src=rr_off.gif border=0></TD></TR>")	;
		i++	;
		i++	;
		i++	;
		i++	;
	}
	document.write("</table>")	;
	live()	;
}

function rechts()
{
	document.write	("<table width=100%>")	;
	document.write	("<TR><TD colspan=3><center><a class=topica href=http:///redcad-ch.cust.netzone.ch/FR/index.htm>&nbsp;Français&nbsp;</a></TD></TR>")	;
	document.write	("<TR><TD colspan=3><center><a href=/redcad-ch.cust.netzone.ch title='RED CAD Schweiz'><img border=0 src=ch.gif></a>&nbsp;")	;
	document.write	("<a href=http://www.redcad.at title='RED CAD Österreich'><img border=0 src=at.jpg></a><BR>")	;
	document.write	("<a href=http://www.redcad.fr title='RED CAD France'><img border=0 src=../fr.jpg></a>&nbsp;")	;
	document.write	("<a href=http://www.redcad.de title='RED CAD Deutschland'><img border=0 src=de.jpg></a><BR>")	;
	document.write	("<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>&nbsp;</TD></TR>")	;

	document.write	("<TR><TD width=45%>&nbsp;</TD><TD background=bgoffr.jpg class=offr><CENTER><img border=0 src=angtop.gif><BR>")	;
	document.write 	("<a href='http://redcad-ch.cust.netzone.ch/DL/SetupEIDemo.exe' title='Download von REDCAD EI'><BR><I>Elektro Installation<BR>Jetzt gratis 14<BR>Tage testen</I></A><BR><BR><img border=0 src=angbot.gif>")	;
	document.write	("</TD><TD width=45%>&nbsp;</TD></TR>")	;

	document.write	("<TR><TD width=45%>&nbsp;</TD><TD background=bgoffr.jpg class=offr><CENTER><img border=0 src=angtop.gif><BR>")	;
	document.write 	("<a href='http://redcad-ch.cust.netzone.ch/DL/SetupESDemo.exe' title='Download von REDCAD ES'><BR><I>Elektro Schema<BR>Jetzt gratis 14<BR>Tage testen</I></A><BR><BR><img border=0 src=angbot.gif>")	;
	document.write	("</TD><TD width=45%>&nbsp;</TD></TR>")	;

	document.write	("<TR><TD colspan=3><BR><BR><BR>&nbsp;</TD></TR>")	;
	document.write	("<TR><TD width=45%>&nbsp;</TD><TD background=bgoffr.jpg class=offr><CENTER><img border=0 src=angtop.gif><BR>")	;
	document.write 	("<a href='live.htm' title='Live REDCAD erleben'><BR><I>Besuchen Sie eine Informations-<BR>veranstaltung</I></A><BR><BR><img border=0 src=angbot.gif>")	;
	document.write	("</TD><TD width=45%>&nbsp;</TD></TR>")	;
	document.write("</TD></TR></table>\r\n")	;
}

function live()
{
	document.write("<div style='position:absolute;top:80px;left:680px;' title='Live Veranstaltungskalender'><A href=live.htm><img src=live.gif border=0></a></div>")	;
}


function livedaten()
{
	i = 0	;
	while (	varLiveDaten[i].length > 0)
	{
		document.write("<tr><td class=STRICH><nobr>")	;
		document.write(varLiveDaten[i++])	;					// Lokal
		document.write("&nbsp;</TD><TD class=STRICH><nobr>")	;
		document.write(varLiveDaten[i++])	;					// Strasse
		document.write("&nbsp;</TD><TD class=STRICH><nobr>")	;
		document.write(varLiveDaten[i++])	;					// Ort
		document.write("&nbsp;</TD><TD class=STRICH><nobr>")	;
		document.write(varLiveDaten[i++])	;					// Datum
		document.write(" <input type=radio name='pos' value='")	;
		document.write(varLiveDaten[i++])	;					// Radio button
		document.write("'></TD></TR>")	;
	}
	
}

function testdata()
{
	i = 0	;
	Posi = 0	;
	var Nam	;
	var Stra	;
	var	Ort	;
	var Zeit	;
	var	Nr	;
	Nr	=	""	;
	while (	varLiveDaten[i].length > 0 && Nr < " ")
	{
		if (document.theform.pos[Posi].checked)
		{
			Nam	=	varLiveDaten[i++]	;
			Stra	=	varLiveDaten[i++]	;
			Ort	=	varLiveDaten[i++]	;
			Zeit	=	varLiveDaten[i++]	;
			Nr	=	varLiveDaten[i++]	;
		}
		else
		{
			Posi++	;
			i	+=	5	;
		}
	}
	if (Nr.length < 1)
	{
		alert ("Bitte Veranstaltungsort wählen")
		return	false	;
	}
	document.theform.lokal.value	=	Nam	;
	document.theform.lAdresse.value	=	Stra	;
	document.theform.lOrt.value	=	Ort	;
	document.theform.lZeit.value	=	Zeit	;
	if (document.theform.name1.value < " ")
	{
		alert ("Bitte Name eintragen")
		return	false	;
	}
	if (document.theform.adresse.value < " ")
	{
		alert ("Bitte Adresse eintragen")
		return	false	;
	}
	if (document.theform.plzort.value < " ")
	{
		alert ("Bitte Ihre Ortschaft eintragen")
		return	false	;
	}
	if (document.theform.tel.value < " ")
	{
		alert ("Bitte Ihre Telefon eintragen")
		return	false	;
	}
	if (document.theform.mail.value < " ")
	{
		alert ("Bitte Ihre Mail eintragen")
		return	false	;
	}
	return	true	;
}