function highlightCurrentPageLink() {
var anzHrefs = document.getElementsByTagName("a").length;
for (var i = 0; i <= anzHrefs - 1; i++) {
if (document.getElementsByTagName("a")[i].href == document.location.href) {
var currentClassName = document.getElementsByTagName("a")[i].className;
var newClassName = currentClassName.replace(/inaktiv/,"aktiv");
document.getElementsByTagName("a")[i].className = newClassName;
}
}
}

function highlightNavListPageLink() {
var aRefs = document.getElementsByTagName("a");
for (var i = aRefs.length; i--; 0)
{
var o = aRefs[i];
if (o.href == document.location.href)
{
o.className = o.className.replace(/inaktiv/, "aktiv");
}
}
}

/* Listen_reflist */
function highlightRefListPageLink() {
var aRefs = document.getElementsByTagName("a");
for (var i = aRefs.length; i--; 0)
{
var o = aRefs[i];
if (o.href == parent.reflist.location.href)
{
o.className = o.className.replace(/inaktiv/, "aktiv");
}
}
}

/* Listen_reflist */
function highlightRefListPageLink() {
var aRefs = document.getElementsByTagName("a");
for (var i = aRefs.length; i--; 0)
{
var o = aRefs[i];
if (o.href == parent.refcont.location.href)
{
o.className = o.className.replace(/inaktiv/, "aktiv");
}
}
}

/* Jahreszahlen */
function highlightContPageLink() {
var aRefs = document.getElementsByTagName("a");
for (var i = aRefs.length; i--; 0)
{
var o = aRefs[i];
if (o.href == parent.reflist.location.href)
{
o.className = o.className.replace(/inaktiv/, "aktiv");
}
}
}

/* WerkstattSwitch */
function switchimage(id) {
	document.images["headimg"].src = 'imagesvisual/' + id + '.jpg';
}

function openWin(url, name) {
	win = window.open(url, name, 'scrollbars=yes,resizable=yes,width=490,height=520');
	win.focus();
}

function lp_01() {
parent.reflist.location = "lp_01.html";
parent.refcont.location = "lp_starter/lp_starter_01.html";
}

function lp_02()
{
parent.reflist.location = "lp_02.html";
parent.refcont.location = "lp_starter/lp_starter_02.html";
}

function lp_03()
{
parent.reflist.location = "lp_03.html";
parent.refcont.location = "lp_starter/lp_starter_03.html";
}

function lp_04()
{
parent.reflist.location = "lp_04.html";
parent.refcont.location = "lp_starter/lp_starter_04.html";
}

function lp_05()
{
parent.reflist.location = "lp_05.html";
parent.refcont.location = "lp_starter/lp_starter_05.html";
}

function lp_06()
{
parent.reflist.location = "lp_06.html";
parent.refcont.location = "lp_starter/lp_starter_06.html";
}

function lp_07()
{
parent.reflist.location = "lp_07.html";
parent.refcont.location = "lp_starter/lp_starter_07.html";
}

function lp_08()
{
parent.reflist.location = "lp_08.html";
parent.refcont.location = "lp_starter/lp_starter_08.html";
}

function lp_09()
{
parent.reflist.location = "lp_09.html";
parent.refcont.location = "lp_starter/lp_starter_09.html";
}

function lp_10()
{
parent.reflist.location = "lp_10.html";
parent.refcont.location = "lp_starter/lp_starter_10.html";
}

function lp_11()
{
parent.reflist.location = "lp_11.html";
parent.refcont.location = "lp_starter/lp_starter_11.html";
}

function lp_12()
{
parent.reflist.location = "lp_12.html";
parent.refcont.location = "lp_starter/lp_starter_12.html";
}

function lp_13()
{
parent.reflist.location = "lp_13.html";
parent.refcont.location = "lp_starter/lp_starter_13.html";
}

function lp_14()
{
parent.reflist.location = "lp_14.html";
parent.refcont.location = "lp_starter/lp_starter_14.html";
}

function lp_15()
{
parent.reflist.location = "lp_15.html";
parent.refcont.location = "lp_starter/lp_starter_15.html";
}

function lp_16()
{
parent.reflist.location = "lp_16.html";
parent.refcont.location = "lp_starter/lp_starter_16.html";
}

function lp_17()
{
parent.reflist.location = "lp_17.html";
parent.refcont.location = "lp_starter/lp_starter_17.html";
}

function lp_18()
{
parent.reflist.location = "lp_18.html";
parent.refcont.location = "lp_starter/lp_starter_18.html";
}

function year_2009() {
parent.reflist.location = "referenzliste2009.html";
parent.refcont.location = "year_starter/year_2009.html";
}

function year_2008() {
parent.reflist.location = "referenzliste2008.html";
parent.refcont.location = "year_starter/year_2008.html";
}

function year_2007() {
parent.reflist.location = "referenzliste2007.html";
parent.refcont.location = "year_starter/year_2007.html";
}

function year_2006() {
parent.reflist.location = "referenzliste2006.html";
parent.refcont.location = "year_starter/year_2006.html";
}

function year_2005() {
parent.reflist.location = "referenzliste2005.html";
parent.refcont.location = "year_starter/year_2005.html";
}

function year_2004() {
parent.reflist.location = "referenzliste2004.html";
parent.refcont.location = "year_starter/year_2004.html";
}

function year_2003() {
parent.reflist.location = "referenzliste2003.html";
parent.refcont.location = "year_starter/year_2003.html";
}

function year_2002() {
parent.reflist.location = "referenzliste2002.html";
parent.refcont.location = "year_starter/year_2002.html";
}

function year_2001() {
parent.reflist.location = "referenzliste2001.html";
parent.refcont.location = "year_starter/year_2001.html";
}

function year_2000() {
parent.reflist.location = "referenzliste2000.html";
parent.refcont.location = "year_starter/year_2000.html";
}

function year_1999() {
parent.reflist.location = "referenzliste1999.html";
parent.refcont.location = "year_starter/year_1999.html";
}

function year_1998() {
parent.reflist.location = "referenzliste1998.html";
parent.refcont.location = "year_starter/year_1998.html";
}

function year_1997() {
parent.reflist.location = "referenzliste1997.html";
parent.refcont.location = "year_starter/year_1997.html";
}

function year_1996() {
parent.reflist.location = "referenzliste1996.html";
parent.refcont.location = "year_starter/year_1996.html";
}

function year_1995() {
parent.reflist.location = "referenzliste1995.html";
parent.refcont.location = "year_starter/year_1995.html";
}

function year_1994() {
parent.reflist.location = "referenzliste1994.html";
parent.refcont.location = "year_starter/year_1994.html";
}

function year_1993() {
parent.reflist.location = "referenzliste1993.html";
parent.refcont.location = "year_starter/year_1993.html";
}

function jump_2007() {
parent.top.location = "refs/referenzen.html";
parent.reflist.location = "refs/referenzliste1994.html";
document.refcont.location = "refs/year_starter/year_1994.html";
alert("weiter");
}