Hi,
I'm creating several VBScript functions on my ASP page to be run on the client side. Currently I'm running a line of code:

document.form1.compTotal.value = 200

(compTotal is my textbox where I want to put some value in)
(form1 is the name of the form where my textboxes are located)

inside my VBscript bracket. However everytime I load my page this line doesn't seemed to get executed at all (textbox remains empty)

Does anyone have input and suggestions what should I look into to solve this problem? Thank you in advance for help.