function FormAjaxStuff($currentPage){
	var $searchValue = $("#textSearch").attr("value");
	/*if($searchValue == 'ce anume cauti?'){
		alert('va rugam tastati cuvantul sau expresia pentru a putea efectua cautarea!');
		return false;
	}*/
	
	$.ajax({
		type: "GET",
		url: "tags.php",
		data: 	"cuvant=" + $searchValue + "&action=add",
		success: function(html){
		}
	});

	var $ppr = $("#ppr").attr("value");
	$.ajax({
		type: "GET",
		url: "twitter.php",
		dataType: "html",
		data: "q=" + $searchValue +"&ppr="+ $ppr + "&currentPage=" + $currentPage,
		success: function(response){
			// if sucessful; response will contain some stuff echo-ed from .php
			// Append this response to some <div> => let's append it to div with id "serverMsg"
			
		    $("#footer").css('position', 'relative');
		    $(".footerBox").css('margin-top', '100px');

			$("#containerResponse").fadeIn(100, function(){
				$("#serverMsg").html(response);
				$testRezultat = $("#hiderequest").text();
				if($testRezultat == 'fara rezultate'){
					FormAjaxStuff($currentPage);
				}else{
					$("#fade").fadeOut(100);
					$("#lightboxText").fadeOut(100);
					
					$("#currentPage").html($currentPage);
					$('html, body').animate({scrollTop: '200px'}, 300);
					
					$(".tableOver").fadeTo(0.9, 1);
					$(".tableOver").hover(
						function () {
							$(this).fadeTo("fast", 0.8);
						},
						function () {
							$(this).fadeTo("normal", 1);
						}
					);
				}
				
			});
			
		},error: function(){
			alert("Error occured during Ajax request...");
		}
	});
} // END OF FormAjaxStuff()
