before writing the function declare num1 as a variable. do var num1 = ""; see if that works ryan _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com