How to run apt-get update/install from behind a proxy

Hi I wrote this script to use apt-get behind a proxy , My password must change everymonth due to company policy's ,
This makes it easier to update, ( you can mayby use this script with cron to force a user to update the password on a specific date