Reference a JSF InputBox

I have javascript firing from an onclick event:

the script:

<script type="text/javascript">

function showAlert(cForm){

alert("test");

document.cForm.getElementById('text7').value = "C:\\testagain123.rtf"

}

I get the error that 'document.cForm' is not an object or is null.

[331 byte] By [SLDykea] at [2007-11-27 6:09:23]
# 1
In what way is that related to Java? Java isn't javascript.Kaj
kajbja at 2007-7-12 17:13:10 > top of Java-index,Java Essentials,New To Java...
# 2
Sorry about that.
SLDykea at 2007-7-12 17:13:10 > top of Java-index,Java Essentials,New To Java...