parent on only one axis

How can I make an object parent on only one axis?
thanks

With the copy constraints you can limit them to a particular axis.
http://wiki.blender.org/index.php/Doc:2.5/Manual#Constraints