added javascript  reset and validate functions for GADGET values