Passing Parameters at the time of creating Functions
1)Develop the form
2)Register the form
3)Create Two functions for the same form. first function without parameters second function is with parameter called 'QUERY_0NLY="YES" 'enter the paraneter in the field called Parameter field.