> Is there a way for the same vaiable to be defined inside > and outside a > function? > > ie > > function getNum > { > whatever = num1; > alert(num1); > } > > alert(num1) just define the variable first, like this: var num1 function getNum { whatever = num1; alert(num1); } alert(num1) -Bekah - http://NightVisions.com *** Web Design and Renovation http://nightvisions.com/homepage - Portfolio http://nightvisions.com/ooey_gui - Icons http://nightvisions.com/personal - Personal