<!--
function enableTextField(strListBoxName,strTextFieldName,intTriggerIndex) {
	if(document.getElementById(strListBoxName).value==intTriggerIndex) {
		document.getElementById(strTextFieldName).style.display = '';
		document.getElementById(strTextFieldName+'_obligatory').style.display = '';
	} else {
 
		document.getElementById(strTextFieldName).style.display = 'none';
		document.getElementById(strTextFieldName+'_obligatory').style.display = 'none';
		document.getElementById(strTextFieldName).value = '';
	}
}

function inputNext(what,e,max,action) {

    if (document.layers) {

        if (e.target.value.length >= max)
            eval(action);
    }
    else if (document.all) {

        if (what.value.length > (max-1))
            eval(action);
    }
}

function selectAll(element) {
	var x = document.getElementById( element );
	for (i = 0; i < x.length; i++)
	{
		x[i].selected = 1;
	}
}

function deSelectAll(element) {
	var x = document.getElementById( element );
	for (i = 0; i < x.length; i++)
	{
		x[i].selected = 0;
	}
}

function invertAll(element) {
	var x = document.getElementById( element );
	for (i = 0; i < x.length; i++)
	{
		x[i].selected = !x[i].selected;
	}
}
// -->
