var switchSendebeitraege = function(f)
{
	var query = "";
    var xmlhttp = new ajaxRequest(
        "module/sendemodul/getsendeinfos.php",
        function()
        {
            var r = xmlhttp.req;
            if (r.readyState==4)
            {
				document.getElementById('sendeInfoShort').style.display = 'none';

				document.getElementById('sendeInfoDetail').innerHTML = r.responseText;
				document.getElementById('sendeInfoDetail').style.display = 'block';
            }
        },
        "GET",
        query,
        ["Content-Type","application/x-www-form-urlencoded"]
    );
    xmlhttp.doRequest();
}

function toggleSendebeitraege(sendung_id)
{
	//alert(sendung_id);
	var url = 'module/sendemodul/getsendeinfos.php?sendungs_id=' + sendung_id;
	//alert(url);
	new Ajax.Request( url, 
	{
		method: 'get',
		onComplete: function(r)
		{
			document.getElementById('sendeInfoShort').style.display = 'none';

			document.getElementById('sendeInfoDetail').innerHTML = r.responseText;
			document.getElementById('sendeInfoDetail').style.display = 'block';
		},
		onFailure: function()
		{
			document.getElementById('sendeInfoShort').style.display = 'none';
			document.getElementById('sendeInfoDetail').innerHTML = originalRequest.responseText;
			document.getElementById('sendeInfoDetail').style.display = 'block';
		}
		}
	);
}

function toggleContactData()
{
	if($('contact_data'))
	{
		if($('contact_data').style.display == 'none')
			new Effect.SlideDown('contact_data');
		else
			new Effect.SlideUp('contact_data');
	}	
}