Profiles={
    getAllProfiles: function (){
        $("#profiles").append(loader);

            var query = new net.nextdb.Query("PUBLIC_USERS_VIEW");
            query.setPageSize(100);
            conn.executeQuery(query, function(rows,error){
                if(error){
                    alert(error.getMessage());
                }else{
                    $("#profiles").empty();
                    var html=""
                    for(var i=0;i<rows.length;i++){
                        if(rows[i].USER.visible=="1"){
                            html+=("<div style='height:auto;padding:0px;border-bottom:1px solid #eee;'>")
                            html+=("<div><b>name:</b> "+
                                rows[i].USER.first_name+" "+
                                rows[i].USER.last_name+"<br>"+
                                "<b>location :</b> "+rows[i].USER.country+"</div><br/><br/>")
                            html+=("<br>")
                        }
                    }
                    $("#profiles").append(html);

                }
                });
    }
}