function disableAutocomplete(formId)
{
    var f = document.getElementById(formId);
    var inputs = f.getElementsByTagName("input");
    
    for(var i=0; i<inputs.length; i++){
        if(inputs[i] != null)
        {
            inputs[i].setAttribute("autocomplete", "off");
        }
    }
}