/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
function zapiszRejestracja() {
    var sPost = new String("");
   sPost += "imie=" + $("#imie").val();
   sPost += "&nazwisko=" + $("#nazwisko").val();
   sPost += "&email=" + $("#email").val();
   sPost += "&motywacja=" + $("#motywacja").val();
   sPost += "&telefon=" + $("#telefon").val();
   sPost += "&firma=" + $("#firma").val();
   sPost += "&referat=" + $("#referat").is(':checked');
   sPost += "&temat=" + $("#temat").val();
   sPost += "&prezentacja=" + $("#prezentacja").is(':checked');
   sPost += "&plakat=" + $("#plakat").is(':checked');
   sPost += "&typ=" + $('input[name=typ]:checked').val();
   sPost += "&seminarium_id=" + $("#seminarium_hidden_id").val();

  
    $.ajax({
	dataType: "json",
	url: "ajax.php?akcja=zapiszRejestracja",
	type: "POST",
	data: sPost,
	success: function(dane) {
	    alert( "Zapisano. Dziękujemy.");
	    document.location = "http://www.ekoforum.opole.pl";
	},
	error: function (XMLHttpRequest, textStatus, errorThrown) {alert("Wystąpił błąd aplikacji: \n\n" + XMLHttpRequest.responseText)}
    }
    )
}

function showHideTemat( oCheckbox ){
    if ( $(oCheckbox).is(":checked") ){
	$("#divTematReferatu").show(700);
    }
    else{
	$("#divTematReferatu").hide(700);
    }
}



