opa vlww ae rapaziada pela ajuda....então fiz um teste aqui , funciona consegue sim chamar outro arquivos.. beleza.. fiz o teste com jquery porem sem sucesso vou explicar o porque... tenho uma tela de inclusao de orçamento essa ta em um form. tem o campo Preço Unitario que eu preciso que grave em 6 casas decimais - so que nesse orçamento tenho o 1º item do orçamento que já vem automatico ... ai tenho um botao que adiciona um novo item ... ai tenho q colocar o Preço Unitario , e exatamente esse que da erro no script que to usando ... não fui eu que desenvolveu essa parte... então nem sei o que o cara fez... vou postar a parte que adiciona o segundo item na tela e quando adiciona esse segundo item a mascara não funciona.... vou postar o script q to usando ================= <script language=javascript src=""></SCRIPT> <script src="imagens/event.js" type="text/javascript"></script> <script type="text/javascript"> //<![CDATA[ document.write = function(){ document.getElementById("content").appendChild(document.createElement("span")).innerHTML = [].slice.call(arguments).join(""); }; function formatCurrency(o, n, dig, dec){ new function(CJ_PUNIT1, dig, dec, m){ addEvent(o, "keypress", function(e, _){ if((_ = e.key == 45) || e.key > 47 && e.key < 58){ var o = this, d = 0, n, s, h = o.value.charAt(0) == "-" ? "-" : "", l = (s = (o.value.replace(/^(-?)0+/g, "$1") + String.fromCharCode(e.key)).replace(/\D/g, "")).length; m + 1 && (o.maxLength = m + (d = o.value.length - l + 1)); if(m + 1 && l >= m && !_) return false; l <= (n = CJ_PUNIT1) && (s = new Array(n - l + 2).join("0") + s); for(var i = (l = (s = s.split("")).length) - n; (i -= 3) > 0; s[i - 1] += dig); n && n < l && (s[l - ++n] += dec); _ ? h ? m + 1 && (o.maxLength = m + d) : s[0] = "-" + s[0] : s[0] = h + s[0]; o.value = s.join(""); } e.key > 30 && e.preventDefault(); }); }(!isNaN(n) ? Math.abs(n) : 2, typeof dig != "string" ? "." : dig, typeof dec != "string" ? "," : dec, o.maxLength); } //]]> </script> <script language=JavaScript> ============================= esse aqui e o que valida o input com a mascara certa .... <script type="text/javascript"> //<![CDATA[ formatCurrency(document.forms.inc.CJ_PUNIT1, 6); //]]> </script> vou destacar em vermelho .... queria uma ajuda como chamo a função para adicionar no input name="CJ_PUNIT' q ta em vermelho ... tipo o onkeypress ai eu sei q funciona... porque o antigo era assim .... ====================== function Adiciona_Item() { var table = document.getElementById("tabela_itens"); var numOfRows = table.rows.length; var numOfCols = table.rows[numOfRows-1].cells.length; var newRow = ''; var cHtml = ''; newRow = table.insertRow(numOfRows); //Insere a linha com os dados preenchidos newCell = newRow.insertCell(0) newCell.innerHTML = '<a href="#" onclick="Remove_Item(this);"><img src="imagens/delete.png" width="25" height="25" border="0" align="absmiddle"></a>'; newCell = newRow.insertCell(3) cHtml = '<input name="CJ_PUNIT' + numOfRows +'" type="text"' ; cHtml = cHtml + '" size="7" maxlength="16" value="0,00" onblur=calc1("CJ_QTD'+ numOfRows+'","CJ_PUNIT'+ numOfRows+'","CJ_PTOT'+numOfRows+'","CJ_2QTD'+numOfRows+'","CJ_2PTOT'+numOfRows+'")>'; newCell.innerHTML = cHtml; =====================================================