var branche=0;
var typ=0;
function showtypen_cb(new_data) {
	document.getElementById("typselect").innerHTML='<select id="typ" name="typ" onchange="showdesc();">'+new_data+'</select>';
}

function showtypen() {
	branche=document.formular.branche.value;
	x_typen(branche, showtypen_cb);
	x_demos(branche, 0, showdemos_cb);
}

function showdesc_cb(new_data) {
	document.getElementById("desc").innerHTML=new_data;
}

function showdesc() {
	typ=document.formular.typ.value;
	x_desc(typ, showdesc_cb);
	x_demos(branche, typ, showdemos_cb);
}


function showdemos_cb(new_data) {
	document.getElementById("demoselect").innerHTML='<select id="demo" name="demo" onchange="play();">'+new_data+'</select>';
}


function play_cb(new_data) {
	eval("window.document.player.SetVariable('FsVar','"+new_data+"');");
}
function play() {
	x_play(document.formular.demo.value, play_cb);
}
function playstop() {
	eval("window.document.player.SetVariable('FsVar','Sstop');");
}
function playpause() {
	eval("window.document.player.SetVariable('FsVar','Spause');");
}

