I am using this java script to change the input type for a field, it doesn't seem to work. please help
<script type="text/javascript" charset="UTF-8" language="JavaScript">{literal}
addLoadEvent(function () {
document.getElementById(“form1").attributes["type"] = "text";
}
);
{/literal}</script>