function ClearTextBoxExample(){var loTextBox = document.forms[0].elements;for(var i=0;i{ if(loTextBox[i]=="input") { loTextBox[i].value = ""; }}}