5132: Splitted function definitions from vitals.inc.php so they can be included separately without other parts from vitals.