	function checkinput(object,beschr,empty,art)
	{
		value=object.value;
		mustconform  = /^([ßäüöÄÜÖâêôóáéúûàòèùa-zA-Z0-9- \.]+)$/;
		if (art=='zahl'){mustconform  = /^([0-9]+)$/;}
		if (art=='tel'){mustconform  = /^([+0-9])*([0-9 \/-]+)$/;}
		if (art=='mail'){mustconform  = /^([a-zA-Z0-9-_]+)(\.[a-zA-Z0-9-_]+)*@([a-zA-Z0-9-][a-zA-Z0-9-]+\.)+([a-zA-Z]{2,4})$/;}
	   if (art!='mail')
	   {
			value=value.replace(/ö/,'o');
			value=value.replace(/Ö/,'O');
			value=value.replace(/ä/,'a');
			value=value.replace(/Ä/,'A');
			value=value.replace(/ü/,'u');
			value=value.replace(/Ü/,'U');
			value=value.replace(/ß/,'s');
		}
	   if ((value!='')||(!empty))
	   if (mustconform!='')
	   if (!mustconform.test(value))
	   {
	    alert(beschr);
	    object.focus();
	    object.select();
	    return false;
	   }
	   return true;
	}

	function checkdatum (tt,mm,jjjj)
	{
	 var my_datum=new Date(jjjj,mm-1,tt);
	 if (my_datum.getDate()==tt && my_datum.getMonth()==mm-1 && my_datum.getFullYear()==jjjj) return true; else return false
	}

	function check_radio(formobj,text)
	{
		num=0;
		my_check=-1;
		while(check_radio_obj=formobj[num++])
			if (check_radio_obj.checked) my_check=num-1;

		return my_check;
	}

	function checkinput_klein(object,beschr,empty,art)
	{
		fvalue=object.value;
	   if (fvalue=='')
	   {
	    alert(beschr);
	    object.focus();
	    object.select();
	    return false;
	   }
	   return true;
	}
	
	function angebot_change(obj,session)
	{
		obj.checked=true;
		ajaxRequest('index.php?inhalt=angebot_info&angebot_id='+obj.value+'&zugabe_id='+document.getElementById('zugabe_id').value+'&session='+session,'angebot_info',0,'','');
	}	
	
	function zugabe_change(obj,session)
	{
		obj.checked=true;
		ajaxRequest('index.php?inhalt=angebot_info&angebot_id='+document.getElementById('angebot_id').value+'&zugabe_id='+obj.value+'&session='+session,'angebot_info',0,'','');
	}
	
	// Angebote
	var angebot_on=null;
	function angebot_over(obj)
	{
		if (obj)
			if (obj.className!='angebot_on') 
				obj.className='angebot_over';
	}
	
	function angebot_out(obj)
	{
		if (obj)
			if (obj.className!='angebot_on') 
				obj.className='angebot';
	}
	
	function angebot_optin(obj,session)
	{
		ajaxRequest('index.php?inhalt=angebot_optin&angebot_id='+obj.value+'&session='+session,'angebot_optin',0,'','');
	}	