// filter the permissions
/*
values currently used in PA
Nobody="0"
Everybody="1"
Immediate Relations="2"
so to show all info a friend would see
we need to allow perms 1 AND 2
while friends only would be 2
*/
$perms = isset($_POST['perms']) ? $_POST['perms'] : "1,2";
$filter = new Normalizer('filterPerms');
foreach (preg_split('/,\\s*/', $perms) as $p) {
    $parr[] = "perm" . $p;
}
$filter->setParams($parr, TRUE);
$filteredDOM = $filter->transformToDoc($merger->currentProfileDOM);
$exps = array();
foreach ($_POST as $k => $v) {
    if (preg_match('/^expose/', $k)) {
        $exps[] = $k;
    }
}
if (!count($exps)) {
    $exps = $allExposes;
    foreach ($exps as $e) {
        $_POST[$e] = 1;
    }
}
// generate the hCard
displayNone($normalizer, $allExposes);