ok I will explain in detail.... The code on html btn click is (on click = "clearFields('frmMain')") /* The elements to be cleared can be passed as either: a) a set of arguments, each is a String containing an element name or b) a String containing all element names separated by single space. You can also use a combination, that is, a set of arguements, each being a String as described in b). This option may seem redundant, but may help readability of the code. */ function clearFields(form_) { var args = clearFields.arguments; if(args.length > 1) { for(var i=1; i 0 ) { for(var ii=0; iiBalasaheb Software Developer Platform: Asp.net,vb.net Database: SQL Server 2000