On Wed, 08 Jun 2005 14:33:02 -0700, puneet.bansal wrote:
> I am trying to use the following
>
[quoted text clipped - 3 lines]
> of brand on the server, not all the ones that user selected in the
> multiple select
Her question, I believe, was "is this Javascript, or Java?". If it's
JavaScript, you put it between <script> tags or in onClick/onWhatever
actions in an HTML document (among other things) and is _OFF TOPIC_ here.
If it's Java, you'll have to give us the declarations of the variables
'window' and 'document' before we can make sense of that.
(If it's Java, your quoting's wrong, anyways; I'm sure you're using
javascript, in which case you should take your question to an appropriate
newsgroup. comp.lang.javascript, probably.)