ive been fooling with this for a little while now. how do you pass an argument to a function.

this is the function in the head:
<script language="javascript">
function jinky(){
some.style.display='inline'}
</script>

this is the call:
<div onClick="jinky()"></div>

now this makes the div 'some' which did have a display of 'none' now become visible. which is fine. however i have several i want to do this with. why doesnt this function work:
<script language="javascript">
function jinky(txt){
txt.style.display='inline'}
</script>

this is the call:
<div onClick="jinky('some')"></div>

when i use this i get an error message. in short i guess in short how do you pass an argument to a function.

thx,
Greg


------------------
'yall sell biscuits in here'--slingblade