Sorry,guys,another question is how to know whether a element exists or not?
say,
var testElement = document.myform.firstinput
sometimes the firstinput does not exist,so "testElement" will be undefined.
how do i know it,is there a function to
test it?