function init( paaKat, alaKat )
{
	document.form1.paaKat.selectedIndex = paaKat;
	valitse();
	document.form1.alaKat.selectedIndex = alaKat;
}
function valitse()
{
	if( document.form1.paaKat.selectedIndex == 1)
	{
		document.form1.alaKat.length = 3;
		document.form1.alaKat.options[0].text = "Osakkeiden vaihto- ja lunastustarjousmenettelyt";
		document.form1.alaKat.options[1].text = "Arvopaperilautakunnan toimivalta";
		document.form1.alaKat.options[2].text = "Kaikki";
		document.form1.alaKat.options[2].value = "999";
		document.form1.alaKat.selectedIndex = 2;
	}
	if( document.form1.paaKat.selectedIndex == 2)
	{
		document.form1.alaKat.length = 7;
		document.form1.alaKat.options[0].text = "Menettelytavat ja huolenpito";
		document.form1.alaKat.options[1].text = "Kaupankäyntiehdot";
		document.form1.alaKat.options[2].text = "Toimeksiannon peruuttaminen";
		document.form1.alaKat.options[3].text = "Kaupankäyntijärjestelmien toimivuus";
		document.form1.alaKat.options[4].text = "Arvo-osuuksien kirjaaminen";
		document.form1.alaKat.options[5].text = "Lautakunnan toimivalta";
		document.form1.alaKat.options[6].text = "Kaikki";
		document.form1.alaKat.options[6].value = "999";
		document.form1.alaKat.selectedIndex = 6;
	}
	if( document.form1.paaKat.selectedIndex == 3)
	{
		document.form1.alaKat.length = 4;
		document.form1.alaKat.options[0].text = "Sopimusehdot ja –dokumentaatio";
		document.form1.alaKat.options[1].text = "Selonotto- ja tiedonantovelvollisuus";
		document.form1.alaKat.options[2].text = "Omaisuuden hoitaminen ja hyvä arvopaperimarkkinatapa";
		document.form1.alaKat.options[3].text = "Kaikki";
		document.form1.alaKat.options[3].value = "999";
		document.form1.alaKat.selectedIndex = 3;
	}
	if( document.form1.paaKat.selectedIndex == 4)
	{
		document.form1.alaKat.length = 5;
		document.form1.alaKat.options[0].text = "Sijoitusneuvonta";
		document.form1.alaKat.options[1].text = "Konsultatiivinen varainhoitosopimus";
		document.form1.alaKat.options[2].text = "Sijoitusrahaston markkinointi";
		document.form1.alaKat.options[3].text = "Lautakunnan toimivalta";
		document.form1.alaKat.options[4].text = "Kaikki";
		document.form1.alaKat.options[4].value = "999";
		document.form1.alaKat.selectedIndex = 4;
	}
	if( document.form1.paaKat.selectedIndex > 4 )
	{
		document.form1.alaKat.length = 1;
		document.form1.alaKat.options[0].text = "Ei alakategorioita";
	}


	for( var i = 0; i < document.form1.alaKat.length; i++ )
	{
		document.form1.alaKat.options[i].value = i;
	}
}
