function parse_user_agent(agent) {
    "use strict";
    var fields = [];

    fields[0] = agent;
    fields[1] = "Mozilla-compatible";
    fields[2] = "Unix-derived";
    return (fields);
}

function parse_user_agent(agent) {
    "use strict";
    var fields = [];

    fields[0] = agent;
    fields[1] = "Mozilla-compatible";
    fields[2] = "Unix-derived";

    if (fields[0] === "") {
        fields[0] = "(no browser identification sent)";
        fields[1] = "(unknown)";
    }
    return (fields);
}

Handle empty or missing user agent responses.
Handle empty or missing user agent responses.
