Assign a value to a textbox in vbscript Error

I have a textbox on an asp.net. I am trying to assign a value to it via vbscript and I am getting the follow attached error.

Here is the VBScript code:

<script language=VBScript>
dim retval
retval = window.showModalDialog ("../../../custserv/WebPes/Misc/Launch.aspx?url=HomeCopyType.aspx",window,"dialogHeight: 270px; dialogWidth: 390px; dialogTop: px; dialogLeft: px; edge: Raised; center: Yes; help: No; resizable: No; status: No;")
if retval <> "" and not isnull(retval) then
Form1.PolicyNav1_txtQuoteType.value = retval
end if
</script>

Thanks,
Michael
[645 byte] By [cmptrnerd9] at [2007-11-20 8:13:14]
# 1 Re: Assign a value to a textbox in vbscript Error
Don't forget to use Document. And value should be Value.

Document.Form1.PolicyNav1_txtQuoteType.Value = retval
PeejAvery at 2007-11-8 0:42:34 >