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