
jQuery().ready(function(){
	
	/*Accordion für Seminarliste*/
	$('#csv_Accordion').Accordion(
	{
		headerSelector : 'dt',
		panelSelector : 'dd',
		activeClass : 'iAccordionCurrent',
		hoverClass : 'myAccordionHover',
		panelHeight : 500,
		ospeed : 800,
		cspeed : 400
	}
	);
	
	/*Kopieren für Partnerprogramm*/
	$("#moooxlist :button").each(
        function(index)
        {
          $(this).click(
            function()
           	{
	              $("#mootxt").html( "http://www.audiva.de/onlineshop/" + $(this).attr("value") );
	              $("#mootitle").html( $(this).attr("name") );
	              window.scrollTo(0,$("#content").offset().top);

            }
          );
        }
	        
	 );
	
}); 

/*Kontaktformular*/
function cnt_ichks(chk_name)
{
	i=1;
	cnt = 0;
	while ( i <= 4 )
	{
		if (document.getElementById("i"+i).checked == true) cnt++;
		if (cnt > 4)
		{
			document.getElementById(chk_name).checked = false;
			alert("Bitte wählen Sie maximal 2 Interessensgebiete");			
			return false;
		}
		i++;
	}

}
function chk_bchks(chk_name)
{
	i=1;
	while ( i <= 7 )
	{
		id = "b"+i;
		if ( id != chk_name)
		{
			document.getElementById(id).checked=false;
		}
		i++;		
	}
	if (chk_name != "b7") dis_input();
	else 
	{
		if (document.getElementById("b7").checked == false) dis_input();
		else en_input();
	}
}
function en_input()
{
		document.getElementById("beruf").disabled=false;
		document.getElementById("beruf").focus();
}
function dis_input()
{
		document.getElementById("beruf").disable=true;
		document.getElementById("beruf").value="";
}
