It looks like that by having 'var gros's inside a function you nullify its roll as a global function as previously declared. Try removing var in front of gross inside the function. Carl > From: SoitPP at aol.com > Reply-To: javascript at LaTech.edu > Date: Sat, 23 Mar 2002 20:43:18 EST > To: javascript at latech.edu > Subject: [Javascript] New to JavaScript, trouble w/ first prog > > var gross