Great function. I like the idea of simplicity and non-obtrusiveness. On first use, it failed on my system (therefor four stars instead of five). This was because of this condition evaluating to false where it should have been true:
if axPos(4) == defAx(4)
Comparing floats can be a dangerous thing. For improved robustness you might want to consider rewriting this into
if abs(axPos(4)-defAx(4)) < eps
The same holds for the similar check a couple of lines below.