<?PHP
/**
* Prints a value with html special characters escaped.
* @param mixed $Value The value to be printed.
*/
function pv($Value) {  print(htmlspecialchars($Value));  }

/**
* Prints "checked" if a value is true.
* @param mixed $Value The value to be evaluated.
*/
function pc($Value) {  print($Value ? " checked" : "");  }

/**
* Prints "checked" if two values are equal.
* @param mixed $ValOne The first value to be compared.
* @param mixed $ValTwo The second value to be compared.
*/
function pe($ValOne, $ValTwo) {  print(($ValOne == $ValTwo) ? " checked" : "");  }

/**
* Prints "readonly" if two values are equal.
* @param mixed $ValOne The first value to be compared.
* @param mixed $ValTwo The second value to be compared.
*/
function pr($ValOne, $ValTwo = TRUE) {  print(($ValOne == $ValTwo) ? " readonly" : "");  }

/**
* Prints "disabled" if two values are equal.
* @param mixed $ValOne The first value to be compared.
* @param mixed $ValTwo The second value to be compared.
*/
function pd($ValOne, $ValTwo = TRUE) {  print(($ValOne == $ValTwo) ? " disabled" : "");  }
?>
