

function send_feedback()
{

	var msg = $(".feedback_content").val();
//	alert('send '+msg);
	
	$.ajax({
	    url: '/includes/send_feedback.php',
	    type: 'POST',	  
	    data: "message="+msg,  
	    dataType: "html",
	    timeout: 3000,	    	    
	    success: function(result){	    
	        $('#feedback').html(result);
	    }
	});		
}

function addMsgError(msg)
{
	$('#msg_box').html('<div class="info_error">'+msg+'</div>');
}


function refresh_pad(page)
{

	var content = document.getElementById('notebook');

	function callback(){
		
		$.ajax({
		    url: '/includes/refresh_pad.php',
		    type: 'POST',	  
		    data: "page="+page,  		    
		    timeout: 3000,	
		    error: function(){	    	
		        refresh_pad(page);
	   		 },    	    
		    success: function(result){	   		    	
		        
		        content.innerHTML = result;
		        
		        $(".notebook_pad2").fadeIn("slow");
		        $(".account").fadeIn("slow");
		        $("#notebook_nav").fadeIn("slow");
		    }
		});		
	}
	$("#notebook_nav").fadeOut("normal");
	$(".account").fadeOut("normal");
	$(".notebook_pad2").fadeOut("normal",callback);
	
		
}