En realidad no se refiere a esa línea 49, sino a la línea 49 del código generado en el navegador. Así que dale en el navegador a "Ver código fuente" y busca la línea 49.
Como indicación general, yo que tú pondría al <form> y a los <input> a cada uno su id:
Código html:
Ver original<form name="frmClientes" id="frmClientes" method="post" action="facturas_final.asp" autocomplete = "off"> <!-- ... -->
<td width="120" ><input name="rut" id="rut" value="<%=rut%>">
</td> <%if session("rut") <>9999-9 then%>
<td width="250"><input name="razon" id="razon" value="<%=razon%>" size=50>
</td> <td width="120"><input name="folio" id="folio" value="<%=folio%>" size=20 >
</td> <td width="120"><input name="fecha" id="fecha" value="<%=fecha_actual%>" readonly size=20 >
</td> <td width="202"><input name="orden" id="orden" value="<%=orden%>" size=20>
</td> <!-- ... -->
Y luego haría referencia a ellos en Javascript usando document.getElementById:
Código javascript
:
Ver originalfunction insertar() {
var formulario = document.getElementById("frmClientes");
formulario.action='insert_clientes.asp?rut=' + document.getElementById("rut").value +
'&razon=' + document.getElementById("razon").value +
'&folio=' + document.getElementById("folio").value +
'&fecha=' + document.getElementById("fecha").value +
'&orden=' + document.getElementById("orden").value;
formulario.method="POST";
formulario.submit();
}