// für einfache Analysen mit Banner (z.B. Markt-Übersicht)


// Grafiken
// = PICNUM2
// = TITLE2


// Hilfe
var Win_h = 0;
var WIN_h = "width=350,left=5,height=430,top=23";
    WIN_h = WIN_h + ",menubar=no,resizable=yes,scrollbars=yes,toolbar=no,status=no";

/*
function newpic(Imag)
{
	document.images[PICNUM2].src = Imag+".gif";
	x_relbanner();
}
*/


function newchart2(NewChart)
{
	document.getElementById("chart2_"+Chart2).style.fontWeight="normal";
	document.getElementById("chart2_"+NewChart).style.fontWeight="bold";
	Chart2 = NewChart;
	document.images[PICNUM2].src = "c_"+Chart2+".gif";
	x_relbanner();
}



function openhlp(Doku)
{
	if (Doku == "")
		Doku = DokuHelp;

	Doku = "../misc/"+Doku+".htm";
	Win_h = window.open(Doku,'Hinweise',WIN_h)
	Win_h.focus()
	
	if (Win_h) return false;
    else return true;
}


function goback()
{
	history.go(-1);
	x_relbanner();
}


function x_relbanner()
{
	for (var ii = 0; ii <= document.images.length - 1; ii++)
	{
		if (document.images[ii].name.substr(0,6) == "banner")
		{
			document.images[ii].src = document.images[ii].src;
		}
	}
}

