function book($a) { $a=mysql_real_escape_string(htmlspecialchars(trim($a))); return $a; }
function num($a) { $a=intval(abs($a)); return $a; }