Code:
Function CalledOn(elementTxtBox)
{
	var paramElementTxtBox = form.elements.item(elementTxtBox);
	alert(elementTxtBox.value)
}

FunctionProper() {
	CalledOn(document.form.item("text1"))		
}
I want to try & pass an element into a function, and call on it's properties & methods (bit like vb's Controls collection). Apparently this is possible in Javascript, using the name of the element rather than the element number/index.

Anyone got any ideas how I can do this one please ?!?!?!?!
Cheers!