If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Variable not acting global

This shouldn't be so hard to help me with. This is the text game I'm making. I'm making it to learn Javascript. The variable name is declared outside the function but it's not acting like a global function. When you run the program the variable called name gets the users name in the function getname but goes blank when in the function tarien.
What am I doing wrong?