Setting input.type= doesn't work in oldIE. Hide the input using css instead.