function posid($field, $value) { return $value && $value != -99 ? 1 : 0; }