		function java_callback(id, value)
		{
			formItem = document.getElementById(id);
			formItem.value = value;
		}
		
		
		/**
		* receive the actual value of the slider by calling a method of the applet	
		*/
		function getSliderVal(name)
		{
			alert(document.getElementById(name).getCurrVal());
		}
		
		/**
		* receive the current selection of the  button list
		*/
		function getButtonVal()
		{
			form = document.getElementById('Form_button');
			sl = form.elements;
			isCh = false;
		
			
			for (i = 0;i < sl.length;i++) 
			{
				
				if (startsWith(sl[i].name,'slider_') && sl[i].className == 'button_on')
				{
					alert(sl[i].value);
					isCh = true;
					
					
				}
			}		
			if (!isCh)
			{
				alert("no selection");
			}
		}
		
		/**
		* Turn off all buttons where the id starts with <i>otherBtnPre</i>, exctept button <i>btn</i>  
		* param btn the button object to be enabled
		* param otherBtnPre the prefix for all other buttons to be disabled before
		* hidden_par the parameter to be set when 
		*/
		function setButtonEnabled(btn, otherBtnPre, hidden_par)
		{
			//alert(otherBtnPre + ":" + hidden_par);
			allIds = getInputElemsStartingWithId(otherBtnPre);			
			for (i = 0; i< allIds.length;i++)
			{
				if (allIds[i].name == btn.name)
				{
					allIds[i].className = 'button_on';
					hidden_par = document.getElementById(hidden_par);
					hidden_par.value = i+1;
				} else
				{
					allIds[i].className = 'button_off';
				}
			}					
		}
					
		function setRadioEnabled(btn, otherBtnPre, hidden_par)
		{
			allIds = getInputElemsStartingWithId(otherBtnPre);	
			
			for (i = 0; i< allIds.length;i++)
			{
				if (allIds[i].checked)
				{
					hidden_par = document.getElementById(hidden_par);
					hidden_par.value = i+1;
				}
			}				
		}
		
		
		/**
		* receive the current selection of the radio buttons
		*/
		function getRadioVal()
		{
			form = document.getElementById('Form_radio');
			sl = form.slider;
			isCh = false;
			for (i = 0;i < sl.length;i++)
			{
				if (sl[i].checked)
				{
					alert(sl[i].value);
					isCh = true;
				}
			}
			if (!isCh)
			{
				alert("no selection");
			}
		}
		
		function getJsliderVal(sl_var)
		{
			alert(document.getElementById(sl_var).value);
			
		}
		