Function Bug in script - need help

My script is erroring with: testtapemgr.sh: FTP_RETURNS: not found
I cannot see what I am doing wrong..when it calls that function from the Volume returns function and says taht FTP_RETURNS is not found and exits out of the script. What am I not seeing here?

#### Return Volume Function Section ############
Volume_Returns()
{
echo "Enter Volumes to be returned"; read input
total_ret=`mminfo -q volume=$input -r volume,location,pool,volretent > $ERVTAPE_RET; cat $ERVTAPE_RET | wc -l`
echo "Is this the volume you would like to return.. $input (y/n)"
total_ret=`expr $total_ret - 1`
echo " Please return the tapes listed"| cat $ERVTAPE_RET
read response
if [ $response = "y" ]; then
echo "Please return the following Tape(s)" >>$ERVTAPE_RET
echo " Please return the tapes listed"| cat $ERVTAPE_RET
RETURN_FLAG="y"
CUT_ERVTAPE_FILE;
#EMAIL_ERV_RET;
FTP_RETURNS

else 
	echo "incorrect response"; Volume_Returns
	exit
fi

}

########################### OFFSITE VOLUMES TO BE RETURNED
FTP_RETURNS()
{
echo "In ftp_ret routine"
echo "$ERVTAPE_RTMP File Transferring to $FTP_HOST.................Return_TAPES"
ftp -n $FTP_HOST <<END_FTP_RET
quote USER $FTP_LOGIN
quote PASS $FTP_PWD
put $ERVTAPE_RTMP
put $RETURN_TAPES_RPT
rename $ERVTAPE_RTMP /export/home/legato/tapemgr/rpts/offsite/returns/ERVTAPE_return.tmp
rename $RETURN_TAPES_RPT /export/home/legato/tapemgr/rpts/offsite/returns/returns_erv.rpt$dat
echo $ERVTAPE_RTMP; echo $RETURN_TAPES_RPT
END_FTP_RET
}
clear
tapemgr_Main_Menu

You must first define the function before calling it.

Not sure what you mean. I did define the function as

FTP_RETURNS()

..see the script where I call the function.

the function should be defined BEFORE it's being CALLED

Gosh...sometimes I am so dense...Thanks for your help!! I guess I have been looking at it too long....duh!! :eek: