function ChngLang (lang)
{
	document.form.language.value = lang;
	SubmitForm("REFRESH");
}

function SubmitChild (Command)
{
	ChildWin = window.open("about:blank", "CHILDWINDOW","width=580,height=550,left=100,top=100,scrollbars=yes" );
	ChildWin.focus();
	document.form.target = "CHILDWINDOW";
	document.form.cmd.value = Command;
	document.form.submit();
	document.form.target = "_self";
}

function SubmitForm (Command)
{
	document.form.cmd.value = Command;
	document.form.submit();
}

function OnLoad(req,app,prg,id,lang)
{
	target	= req+"?APPNAME="+app+"&PRGNAME="+prg+"&ARGUMENTS=";
	args	= "-A"+lang+",-AREFRESH,-A"+id;
	opener.location.href= target+args;
}

function SetDescription()
{
	vorgabe = document.form["Desc"+document.form.add_shortlist_name.value].value;
	document.form.add_shortlist_desc.value = vorgabe;
	return;
}

function SetMax()
{
	document.form.max_d.selectedIndex = document.form.min_d.selectedIndex;
	return;
}
function SetStatusPitch()
{
	if(document.form.KK_2.checked || document.form.KK_3.checked)
	{
		document.form.par_std_BC.disabled = false;
		document.form.par_red_BC.disabled = false;
		document.form.deg_30.disabled = false;
		document.form.deg_40.disabled = false;
	}
	if(!document.form.KK_2.checked && !document.form.KK_3.checked)
	{
		document.form.par_std_BC.disabled = true;
		document.form.par_std_BC.checked = false;
		document.form.par_red_BC.disabled = true;
		document.form.par_red_BC.checked = false;
		document.form.deg_30.disabled = true;
		document.form.deg_30.checked = false;
		document.form.deg_40.disabled = true;
		document.form.deg_40.checked = false;
	}
	return;
}

function SetGrade()
{
	document.form.grade.value =
		(document.form.g1.checked?document.form.g1.value:'')
	+';'+	(document.form.g2.checked?document.form.g2.value:'')
	+';'+	(document.form.g3.checked?document.form.g3.value:'')
	+';'+	(document.form.g4.checked?document.form.g4.value:'')
	+';'+	(document.form.g5.checked?document.form.g5.value:'')
	+';'+	(document.form.g6.checked?document.form.g6.value:'')
	;
	return;
}


