    	function check_submit()
	{
	};
					
	function arrivalDateChanged(val)
	{
	    document.frm_main.saction.value = "changeArrival";
	    document.frm_main.submit();
	};
											
	function departureDateChanged(val)
	{
	    document.frm_main.saction.value = "changeDeparture";
	    document.frm_main.submit();
	};
																	
	function sendAction(action)
	{
	    document.frm_main.saction.value = action;
	    if (arguments[1]) {
			document.frm_main.sparams.value = arguments[1];
	    }
	    document.frm_main.submit();
		return false;
	};
																												
	function calSaver(mode)
	{
	    if (mode != -1) {
		var obj = document.getElementsByName("date_mode_opt");
		obj[mode].checked = true;
		document.frm_main.cl_cal_mode.value = mode;
	    }
	    obj = document.getElementById("client_calendar");
	    var visible = (obj.style.display != "none");
	    document.frm_main.cl_cal_vis.value = visible;
	};
																																												    
	function clCalModeChange(mode)
	{
	    document.frm_main.cl_cal_mode.value = mode;
	};
																																																	
	function clAGBRadioChange(value)
	{
	    document.frm_main.radio_AGB.value = value;
		document.getElementById("but_res").src="bilder/but_res"+(value?"_h":"")+".gif";
		document.getElementById("but_res").onclick=(!value?function(){sendAction('confirm_step_3')}:function(){return false})
		
	};
