#
# function to check whether string is an integer
# 
# include in calling script with "source" or "."
#
function is_integer() {
temp=`echo "$1" | sed -e 's/^[+-]\?[0-9]\+$//'`
if [ -z "$temp" ]
then
    echo y
else
    echo n
fi
}
