function saveForm() {
	if (validateForm()) zapiszKomentarz(1);
	
}
	
function validateForm() { return true; }

function showComment() {
	var comm = document.getElementById("artykulkomentarzeAdd");
	comm.style.display = '';
}
function saveComment(id_reload) {

	var idw = document.getElementById("comment_idw").value;
	var idj = document.getElementById("comment_idj").value;
	var dest = document.getElementById("artykulkomentarze");
	var comm = document.getElementById("artykulkomentarzeAdd");
	//alert(comm.style.display);
	comm.style.display = "none";
	
    advAJAX.setDefaultParameters({});
	advAJAX.submit(document.getElementById("form_komentarz_edit"), 
	{
				onError : function(obj) { 
					alert("Error: " + obj.status); },

				onFinalization  : function() { 
					
					advAJAX.get(
						{
								url: "_inc/inc_komentarze.php", 
								parameters : {
									"komentarzReload" : 1,
									"idw" : idw,
									"idj" : idj
								},
								onLoading : function(obj2) { 
									dest.innerHTML = "<p align='center'><img src='../_images/ajax-loader.gif' ></p>";
								},
								onComplete : function(obj2) { 
									dest.innerHTML = '';
								},
								onError : function(obj2) {
									alert("Error: " + obj2.status); 
								},
								onSuccess : function(obj2) {
									dest.innerHTML = obj2.responseText;
									
								}
						});
				}, 
				disableForm : true
			});
		
}
