controls= document.getElementsByTagName('input');
for(var i = 0; i < controls.length; i++)
{
if(controls[i].type == "text")
{
controls[i].value = ""; //attribute }
}
for(var i = 0; i < controls.length; i++)
{
if(controls[i].type == "text")
{
controls[i].value = ""; //attribute }
}
document.forms[0].reset();