function _Ajax_Form(form, zrodlo, cel)
{
	var get_data = ' ' + $(form).serialize() + ' ';

$.ajax({contentType: "text/html; charset=UTF-8",
		type: "GET",
		url: zrodlo,
		dataType : "html",
		data: get_data,
		async: false,
		success:function(data){
			response = data;
		},
		error:function(x,e){
			if(x.status==0){
				response = 'You are offline!! Please Check Your Network.';
				}else if(x.status==404){
				response = 'Requested URL not found.';
				}else if(x.status==500){
				response = 'Internel Server Error.';
				}else if(e=='parsererror'){
				response = 'Error. Parsing JSON Request failed.';
				}else if(e=='timeout'){
				response = 'Request Time out.';
				}else {
				response = 'Unknow Error.\n'+x.responseText;
			}
		}
	});

	$("#"+cel).html( response );
};



function _Ajax(zrodlo, cel)
{
//console.log('_Ajax');
	$("#sender").ajaxSend(function(evt, request, settings){
		$(this).html("Laduje dane...");
	});

	$.ajax({contentType: "text/html; charset=utf-8",
		type: "GET",
		url: zrodlo,
		dataType:"html",
		async: false,
		success:function(data){
			response = data;
			$("#_"+cel).remove();
		},
		error:function(){
			response = '<I>[ Blad odczytu danych ]</I>';
			$("#_"+cel).html("Ponów");
		}
	});

	$("#"+cel).html( response );
};
