$(function(){
     var uid=$("#uid").val();
    $("#postcomment").click(function(){

       var action =$("#wallform").attr("action");
       var comment=$("#comment").val();


       if(comment.length > 1){
       $.post(action,{
             comment: comment,
             uid: uid,
             time: new Date()
           }, function(data) {

                if(data=="OK"){
                    show_msg('Your Comment has been posted');
        		     $("#wall_list").load(baseurl+'/user_walls/list_wall/'+uid,{t:new Date()});
                    $("#comment").val("");
                 }else{
                      show_msg('You have to be Member of site to do this',1);
                 }
       });

      }else{
            show_msg('Please write something in comment box',1);
      }

    });

  
});

function postcomment(){



return false;
}