Feature request [1876625] Keyboard related functions and variables translated to English
authorDavid Baz Fayos <david.baz@openbravo.com>
Mon, 21 Jan 2008 18:49:59 +0000
changeset 347 adf8b19cf2a8
parent 346 2cd1685beba1
child 348 ef55b471b5b5
Feature request [1876625] Keyboard related functions and variables translated to English
src-wad/src/org/openbravo/wad/Template_ActionButton.html
src-wad/src/org/openbravo/wad/Template_Relation.html
src-wad/src/org/openbravo/wad/controls/WADPAttribute.java
src-wad/src/org/openbravo/wad/controls/WADSearch.java
src/org/openbravo/erpCommon/ad_actionButton/CopyFromOrder_F1.html
src/org/openbravo/erpCommon/ad_actionButton/CopyFromSettlement_F1.html
src/org/openbravo/erpCommon/ad_actionButton/CreateFromMultiple_Receipt.html
src/org/openbravo/erpCommon/ad_actionButton/CreateFromMultiple_Shipment.html
src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Bank.html
src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_CRemittance.html
src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_DPManagement.html
src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Invoice.html
src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Settlement.html
src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Shipment.html
src/org/openbravo/erpCommon/ad_actionButton/EditCCPMeasureValues_F1.html
src/org/openbravo/erpCommon/ad_actionButton/EncryptedButtons.html
src/org/openbravo/erpCommon/ad_forms/AlertManagement.html
src/org/openbravo/erpCommon/ad_forms/BackgroundProcessList.html
src/org/openbravo/erpCommon/ad_forms/CallAcctServer.html
src/org/openbravo/erpCommon/ad_forms/DebtPaymentUnapply.html
src/org/openbravo/erpCommon/ad_forms/EdiFileImport.html
src/org/openbravo/erpCommon/ad_forms/FileImport.html
src/org/openbravo/erpCommon/ad_forms/GenerateInvoicesmanual.html
src/org/openbravo/erpCommon/ad_forms/GenerateShipmentsmanual.html
src/org/openbravo/erpCommon/ad_forms/InformeInOut.html
src/org/openbravo/erpCommon/ad_forms/InitialClientSetup.html
src/org/openbravo/erpCommon/ad_forms/InvoiceVendorMultiline.html
src/org/openbravo/erpCommon/ad_forms/InvoiceVendorMultiline_Lines.html
src/org/openbravo/erpCommon/ad_forms/MatchingPO-Receipt-Invoice_F1.html
src/org/openbravo/erpCommon/ad_forms/MatchingPO-Receipt-Invoice_F2.html
src/org/openbravo/erpCommon/ad_forms/MatchingPO-Receipt-Invoice_F4.html
src/org/openbravo/erpCommon/ad_forms/MaterialReceiptPending.html
src/org/openbravo/erpCommon/ad_forms/MaterialTransactions.html
src/org/openbravo/erpCommon/ad_forms/MaterialTransactions_F1.html
src/org/openbravo/erpCommon/ad_forms/MaterialTransactions_F2.html
src/org/openbravo/erpCommon/ad_forms/RemittanceCancel.html
src/org/openbravo/erpCommon/ad_forms/SQLExecutor.html
src/org/openbravo/erpCommon/ad_forms/ShowSession.html
src/org/openbravo/erpCommon/ad_forms/ShowSessionPreferences.html
src/org/openbravo/erpCommon/ad_forms/Translation.html
src/org/openbravo/erpCommon/ad_help/DisplayHelp_Edit_Element_F1.html
src/org/openbravo/erpCommon/ad_help/DisplayHelp_Edit_F1.html
src/org/openbravo/erpCommon/ad_help/DisplayHelp_Edit_Field_F1.html
src/org/openbravo/erpCommon/ad_process/CashBankOperations.html
src/org/openbravo/erpCommon/ad_process/ChangeOrderOrg.html
src/org/openbravo/erpCommon/ad_process/CopyFromGLJournal_F2.html
src/org/openbravo/erpCommon/ad_process/CreateAccountingReport.html
src/org/openbravo/erpCommon/ad_process/CreateCashFlowStatement.html
src/org/openbravo/erpCommon/ad_process/CreateTaxReport.html
src/org/openbravo/erpCommon/ad_process/DeleteClient.html
src/org/openbravo/erpCommon/ad_process/ExpenseAPInvoice.html
src/org/openbravo/erpCommon/ad_process/ImportAccountServlet.html
src/org/openbravo/erpCommon/ad_process/ImportBPartnerServlet.html
src/org/openbravo/erpCommon/ad_process/ImportBudgetServlet.html
src/org/openbravo/erpCommon/ad_process/ImportOrderServlet.html
src/org/openbravo/erpCommon/ad_process/ImportProductServlet.html
src/org/openbravo/erpCommon/ad_process/ImportTaxServlet.html
src/org/openbravo/erpCommon/ad_process/PrintInvoices.html
src/org/openbravo/erpCommon/ad_process/RequestReOpen.html
src/org/openbravo/erpCommon/ad_process/SendMailText.html
src/org/openbravo/erpCommon/ad_reports/ABCbPartner.html
src/org/openbravo/erpCommon/ad_reports/ABCproduct.html
src/org/openbravo/erpCommon/ad_reports/GeneralAccountingReports.html
src/org/openbravo/erpCommon/ad_reports/GenerateModel347.html
src/org/openbravo/erpCommon/ad_reports/MInOutTraceReports.html
src/org/openbravo/erpCommon/ad_reports/ReportAccountingCountDimensionalAnalysesFilter.html
src/org/openbravo/erpCommon/ad_reports/ReportBank.html
src/org/openbravo/erpCommon/ad_reports/ReportBankJR.html
src/org/openbravo/erpCommon/ad_reports/ReportBudgetGenerateExcel.html
src/org/openbravo/erpCommon/ad_reports/ReportCash.html
src/org/openbravo/erpCommon/ad_reports/ReportCashEdit.html
src/org/openbravo/erpCommon/ad_reports/ReportCashFlow.html
src/org/openbravo/erpCommon/ad_reports/ReportCashFlow_F1.html
src/org/openbravo/erpCommon/ad_reports/ReportCashJR.html
src/org/openbravo/erpCommon/ad_reports/ReportCashflowForecast.html
src/org/openbravo/erpCommon/ad_reports/ReportDebtPayment.html
src/org/openbravo/erpCommon/ad_reports/ReportDebtPaymentTrack.html
src/org/openbravo/erpCommon/ad_reports/ReportExpense.html
src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedger.html
src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedgerJournal.html
src/org/openbravo/erpCommon/ad_reports/ReportGuaranteeDateJR.html
src/org/openbravo/erpCommon/ad_reports/ReportInventory.html
src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerDimensionalAnalysesFilter.html
src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerDimensionalAnalysesJRFilter.html
src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerFilter.html
src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerFilterJR.html
src/org/openbravo/erpCommon/ad_reports/ReportInvoiceDiscount.html
src/org/openbravo/erpCommon/ad_reports/ReportInvoiceDiscountJR.html
src/org/openbravo/erpCommon/ad_reports/ReportInvoiceVendorDimensionalAnalysesFilterJR.html
src/org/openbravo/erpCommon/ad_reports/ReportInvoiceVendorFilterJR.html
src/org/openbravo/erpCommon/ad_reports/ReportInvoices.html
src/org/openbravo/erpCommon/ad_reports/ReportInvoicesJR.html
src/org/openbravo/erpCommon/ad_reports/ReportMaterialDimensionalAnalysesFilterJR.html
src/org/openbravo/erpCommon/ad_reports/ReportMaterialTransactionEditionJR.html
src/org/openbravo/erpCommon/ad_reports/ReportMaterialTransactionFilter.html
src/org/openbravo/erpCommon/ad_reports/ReportNotPosted.html
src/org/openbravo/erpCommon/ad_reports/ReportOffer.html
src/org/openbravo/erpCommon/ad_reports/ReportOrderNotInvoiceFilterJR.html
src/org/openbravo/erpCommon/ad_reports/ReportPendingProductionJr.html
src/org/openbravo/erpCommon/ad_reports/ReportPricelist.html
src/org/openbravo/erpCommon/ad_reports/ReportProductMovement.html
src/org/openbravo/erpCommon/ad_reports/ReportProduction.html
src/org/openbravo/erpCommon/ad_reports/ReportProductionCost.html
src/org/openbravo/erpCommon/ad_reports/ReportProductionJR.html
src/org/openbravo/erpCommon/ad_reports/ReportProductionRunJR.html
src/org/openbravo/erpCommon/ad_reports/ReportProjectBuildingSite.html
src/org/openbravo/erpCommon/ad_reports/ReportProjectBuildingSiteJR.html
src/org/openbravo/erpCommon/ad_reports/ReportProjectBuildingSitePop.html
src/org/openbravo/erpCommon/ad_reports/ReportProjectProfitabilityJR.html
src/org/openbravo/erpCommon/ad_reports/ReportPurchaseDimensionalAnalysesFilterJR.html
src/org/openbravo/erpCommon/ad_reports/ReportRefundInvoiceCustomerDimensionalAnalysesFilter.html
src/org/openbravo/erpCommon/ad_reports/ReportRefundSalesDimensionalAnalysesFilter.html
src/org/openbravo/erpCommon/ad_reports/ReportSalesDimensionalAnalyzeJRFilter.html
src/org/openbravo/erpCommon/ad_reports/ReportSalesOrderFilterJR.html
src/org/openbravo/erpCommon/ad_reports/ReportSalesOrderInvoicedJasper.html
src/org/openbravo/erpCommon/ad_reports/ReportSalesOrderOpenItem.html
src/org/openbravo/erpCommon/ad_reports/ReportSalesOrderOpenItemJR.html
src/org/openbravo/erpCommon/ad_reports/ReportSalesOrderProvidedJR.html
src/org/openbravo/erpCommon/ad_reports/ReportShipmentDimensionalAnalyzeJRFilter.html
src/org/openbravo/erpCommon/ad_reports/ReportShipmentFilterJR.html
src/org/openbravo/erpCommon/ad_reports/ReportShipper.html
src/org/openbravo/erpCommon/ad_reports/ReportStandardCostJRFilter.html
src/org/openbravo/erpCommon/ad_reports/ReportTaxInvoice.html
src/org/openbravo/erpCommon/ad_reports/ReportToInvoiceConsignment.html
src/org/openbravo/erpCommon/ad_reports/ReportToInvoiceConsignmentJR.html
src/org/openbravo/erpCommon/ad_reports/ReportTotalProductTemplate.html
src/org/openbravo/erpCommon/ad_reports/ReportTrialBalance.html
src/org/openbravo/erpCommon/ad_reports/ReportTrialBalanceDetail.html
src/org/openbravo/erpCommon/ad_reports/ReportValuationStock.html
src/org/openbravo/erpCommon/ad_reports/ReportWarehouseControl.html
src/org/openbravo/erpCommon/ad_reports/ReportWarehouseDetailInventoryJR.html
src/org/openbravo/erpCommon/ad_reports/ReportWarehousePartnerJR.html
src/org/openbravo/erpCommon/ad_reports/ReportWorkRequirementDaily.html
src/org/openbravo/erpCommon/ad_reports/ReportWorkRequirementDailyEnv.html
src/org/openbravo/erpCommon/ad_reports/ReportWorkRequirementJR.html
src/org/openbravo/erpCommon/ad_reports/Rpt_Etiquetas_Config.html
src/org/openbravo/erpCommon/businessUtility/Buscador.html
src/org/openbravo/erpCommon/businessUtility/Buscador.java
src/org/openbravo/erpCommon/businessUtility/TabFilter.html
src/org/openbravo/erpCommon/info/Account_F1.html
src/org/openbravo/erpCommon/info/Account_F2.html
src/org/openbravo/erpCommon/info/AttributeSetInstance_F1.html
src/org/openbravo/erpCommon/info/BusinessPartnerMultiple_F1.html
src/org/openbravo/erpCommon/info/BusinessPartnerMultiple_F2.html
src/org/openbravo/erpCommon/info/BusinessPartner_F1.html
src/org/openbravo/erpCommon/info/BusinessPartner_F2.html
src/org/openbravo/erpCommon/info/CashJournal_F1.html
src/org/openbravo/erpCommon/info/CashJournal_F2.html
src/org/openbravo/erpCommon/info/DebtPayment_F1.html
src/org/openbravo/erpCommon/info/DebtPayment_F2.html
src/org/openbravo/erpCommon/info/ImageInfo_F1.html
src/org/openbravo/erpCommon/info/ImageInfo_F2.html
src/org/openbravo/erpCommon/info/Invoice.java
src/org/openbravo/erpCommon/info/InvoiceLine_F1.html
src/org/openbravo/erpCommon/info/InvoiceLine_F2.html
src/org/openbravo/erpCommon/info/Invoice_F1.html
src/org/openbravo/erpCommon/info/Invoice_F2.html
src/org/openbravo/erpCommon/info/Location_F1.html
src/org/openbravo/erpCommon/info/Locator.html
src/org/openbravo/erpCommon/info/Locator_F1.html
src/org/openbravo/erpCommon/info/Locator_F2.html
src/org/openbravo/erpCommon/info/ProductComplete_F1.html
src/org/openbravo/erpCommon/info/ProductComplete_F2.html
src/org/openbravo/erpCommon/info/ProductMultiple_F1.html
src/org/openbravo/erpCommon/info/ProductMultiple_F2.html
src/org/openbravo/erpCommon/info/Product_F1.html
src/org/openbravo/erpCommon/info/Product_F2.html
src/org/openbravo/erpCommon/info/Project_F1.html
src/org/openbravo/erpCommon/info/Project_F2.html
src/org/openbravo/erpCommon/info/Requests_F1.html
src/org/openbravo/erpCommon/info/Requests_F2.html
src/org/openbravo/erpCommon/info/SalesOrderLine_F1.html
src/org/openbravo/erpCommon/info/SalesOrderLine_F2.html
src/org/openbravo/erpCommon/info/SalesOrder_F1.html
src/org/openbravo/erpCommon/info/SalesOrder_F2.html
src/org/openbravo/erpCommon/info/ShipmentReceiptLine_F1.html
src/org/openbravo/erpCommon/info/ShipmentReceiptLine_F2.html
src/org/openbravo/erpCommon/info/ShipmentReceipt_F1.html
src/org/openbravo/erpCommon/info/ShipmentReceipt_F2.html
src/org/openbravo/erpCommon/info/UserContact_F1.html
src/org/openbravo/erpCommon/info/UserContact_F2.html
src/org/openbravo/erpCommon/security/Login_F1.html
src/org/openbravo/erpCommon/security/Login_Options_F1.html
src/org/openbravo/erpCommon/utility/Home.html
src/org/openbravo/erpCommon/utility/KeyMap.java
src/org/openbravo/erpCommon/utility/PoolStatus.html
src/org/openbravo/erpCommon/utility/SetPriority.html
web/js/utils.js
--- a/src-wad/src/org/openbravo/wad/Template_ActionButton.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src-wad/src/org/openbravo/wad/Template_ActionButton.html	Mon Jan 21 18:49:59 2008 +0000
@@ -73,7 +73,7 @@
 }
 </script>
 </head>
-<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="onloadClient();focoPrimerControl();">
+<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="onloadClient();setFocusFirstControl();">
 <form id="form" method="POST" action="Window_Edition.html" name="frmMain">
 <input type="hidden" name="Command">
 <input type="hidden" name="inpLastFieldChanged">
--- a/src-wad/src/org/openbravo/wad/Template_Relation.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src-wad/src/org/openbravo/wad/Template_Relation.html	Mon Jan 21 18:49:59 2008 +0000
@@ -60,7 +60,7 @@
       return false;
     }
     if (inputValue(key)==null || inputValue(key)=="") {
-      focoPrimerControl();
+      setFocusFirstControl();
       return false;
     }
   } else if (action=="EDIT") {
--- a/src-wad/src/org/openbravo/wad/controls/WADPAttribute.java	Fri Jan 18 16:25:16 2008 +0000
+++ b/src-wad/src/org/openbravo/wad/controls/WADPAttribute.java	Mon Jan 21 18:49:59 2008 +0000
@@ -71,7 +71,7 @@
       text.append(commandScript).append(", 'Command', 'KEY'");
       commandScript.append(");");
       text.append(");");
-      setOnLoad("arrTeclas[arrTeclas.length] = new Teclas(\"ENTER\", \"" + text.toString() + "\", \"inp" + getData("ColumnNameInp") + "_R\", \"null\");");
+      setOnLoad("keyArray[keyArray.length] = new keyArrayItem(\"ENTER\", \"" + text.toString() + "\", \"inp" + getData("ColumnNameInp") + "_R\", \"null\");");
       this.imageName = "AttributeSetInstance";
       this.searchName = getData("Name");
       this.command = commandScript.toString();
--- a/src-wad/src/org/openbravo/wad/controls/WADSearch.java	Fri Jan 18 16:25:16 2008 +0000
+++ b/src-wad/src/org/openbravo/wad/controls/WADSearch.java	Mon Jan 21 18:49:59 2008 +0000
@@ -107,7 +107,7 @@
       text.append(commandScript).append(", 'Command', 'KEY'");
       commandScript.append(");");
       text.append(");");
-      setOnLoad("arrTeclas[arrTeclas.length] = new Teclas(\"ENTER\", \"" + text.toString() + "\", \"inp" + getData("ColumnNameInp") + "_R\", \"null\");");
+      setOnLoad("keyArray[keyArray.length] = new keyArrayItem(\"ENTER\", \"" + text.toString() + "\", \"inp" + getData("ColumnNameInp") + "_R\", \"null\");");
       this.command = commandScript.toString();
       this.hiddenFields = hiddenScript.toString();
     }
--- a/src/org/openbravo/erpCommon/ad_actionButton/CopyFromOrder_F1.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_actionButton/CopyFromOrder_F1.html	Mon Jan 21 18:49:59 2008 +0000
@@ -34,7 +34,7 @@
   <script language="JavaScript" type="text/javascript" id="keyMap"></script>
 <SCRIPT language="JavaScript" type="text/javascript">
 
-activarControlTeclas();
+enableShortcuts();
 
 function marcarTodosDatos(chk, bolMarcar)
 {
--- a/src/org/openbravo/erpCommon/ad_actionButton/CopyFromSettlement_F1.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_actionButton/CopyFromSettlement_F1.html	Mon Jan 21 18:49:59 2008 +0000
@@ -83,7 +83,7 @@
     </script>
 
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();">
 <FORM name="frmMain" method="POST" action="CopyFromSettlement_F1.html" target="superior">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateFromMultiple_Receipt.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_actionButton/CreateFromMultiple_Receipt.html	Mon Jan 21 18:49:59 2008 +0000
@@ -29,10 +29,10 @@
 <SCRIPT language="JavaScript" src="../../../../../web/js/String.js" type="text/javascript"></SCRIPT>
 <SCRIPT language="JavaScript" src="../../../../../web/js/TypeAheadCombo.js" type="text/javascript"></SCRIPT>
 <SCRIPT language="JavaScript" type="text/javascript">
-arrTeclas = new Array(
-new Teclas("ENTER", "openSearch(null, null, '../info/ProductComplete_FS.html', 'SELECTOR_PRODUCT', true, 'frmMain', 'inpmProductId', 'inpmProductId_DES', document.frmMain.inpmProductId_DES.value, 'Command', 'KEY');", "inpmProductId_DES", "null")
+keyArray = new Array(
+new keyArrayItem("ENTER", "openSearch(null, null, '../info/ProductComplete_FS.html', 'SELECTOR_PRODUCT', true, 'frmMain', 'inpmProductId', 'inpmProductId_DES', document.frmMain.inpmProductId_DES.value, 'Command', 'KEY');", "inpmProductId_DES", "null")
 );
-activarControlTeclas();
+enableShortcuts();
 
 function debugSearch(key, text, keyField) {
   if (keyField=="inpmProductId") {
@@ -95,7 +95,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"  onload="focoPrimerControl();onloadFunctions();return true;">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"  onload="setFocusFirstControl();onloadFunctions();return true;">
 <FORM id="form" method="POST" action="../ad_actionButton/CreateFromMultiple_F1.html" name="frmMain">
   <INPUT type="hidden" name="Command"></INPUT>
   <INPUT type="hidden" name="inpLastFieldChanged"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateFromMultiple_Shipment.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_actionButton/CreateFromMultiple_Shipment.html	Mon Jan 21 18:49:59 2008 +0000
@@ -28,11 +28,11 @@
 <SCRIPT language="JavaScript" src="../../../../../web/js/String.js" type="text/javascript"></SCRIPT>
 <SCRIPT language="JavaScript" src="../../../../../web/js/TypeAheadCombo.js" type="text/javascript"></SCRIPT>
 <SCRIPT language="JavaScript" type="text/javascript">
-arrTeclas = new Array(
-new Teclas("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpcBpartnerId_DES', document.frmMain.inpcBpartnerId_DES.value, 'Command', 'KEY');", "inpcBpartnerId_DES", "null"), 
-new Teclas("ENTER", "openSearch(null, null, '../info/ProductComplete_FS.html', 'SELECTOR_PRODUCT', false, 'frmMain', 'inpmProductId', 'inpmProductId_DES', document.frmMain.inpmProductId_DES.value, 'Command', 'KEY');", "inpmProductId_DES", "null")
+keyArray = new Array(
+new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpcBpartnerId_DES', document.frmMain.inpcBpartnerId_DES.value, 'Command', 'KEY');", "inpcBpartnerId_DES", "null"), 
+new keyArrayItem("ENTER", "openSearch(null, null, '../info/ProductComplete_FS.html', 'SELECTOR_PRODUCT', false, 'frmMain', 'inpmProductId', 'inpmProductId_DES', document.frmMain.inpmProductId_DES.value, 'Command', 'KEY');", "inpmProductId_DES", "null")
 );
-activarControlTeclas();
+enableShortcuts();
 
 function displayLogic() {
 	if (inputValue(document.frmMain.inphasseconduom) == 1) {
@@ -78,7 +78,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"  onload="focoPrimerControl();onloadFunctions();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"  onload="setFocusFirstControl();onloadFunctions();">
 <FORM id="form" method="POST" action="../ad_actionButton/CreateFromMultiple_F1.html" name="frmMain">
   <INPUT type="hidden" name="Command"></INPUT>
   <INPUT type="hidden" name="inpLastFieldChanged"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Bank.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Bank.html	Mon Jan 21 18:49:59 2008 +0000
@@ -44,8 +44,8 @@
 <SCRIPT language="JavaScript" type="text/javascript">
 
 
-function activarTeclas() {
-  arrTeclas[arrTeclas.length] = new Teclas("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpcBpartnerId_DES', document.frmMain.inpcBpartnerId_DES.value, 'Command', 'KEY');", "inpcBpartnerId_DES", "null");
+function enableLocalShortcuts() {
+  keyArray[keyArray.length] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpcBpartnerId_DES', document.frmMain.inpcBpartnerId_DES.value, 'Command', 'KEY');", "inpcBpartnerId_DES", "null");
 }
 
 function depurar(action) {
@@ -131,10 +131,10 @@
   new TypeAheadCombo("inpisreceipt");
   new TypeAheadCombo("inpcBankaccountId");
   new TypeAheadCombo("inpadOrgId");
-  activarTeclas();
+  enableLocalShortcuts();
 }
 </SCRIPT></HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();onloadFunctions();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();onloadFunctions();">
 <FORM id="form" method="POST" action="../ad_actionButton/CreateFrom.html" name="frmMain">
 <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1">
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_CRemittance.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_CRemittance.html	Mon Jan 21 18:49:59 2008 +0000
@@ -42,9 +42,9 @@
     dojo.hostenv.writeIncludes(); //makes debugging in Venkman possible
   </script>
 <SCRIPT language="JavaScript" type="text/javascript">
-var arrTeclas = new Array();
-function activarTeclas() {
-arrTeclas = new Array(new Teclas("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpcBpartnerId_DES', document.frmMain.inpcBpartnerId_DES.value, 'Command', 'KEY');", "inpcBpartnerId_DES", "null"));
+var keyArray = new Array();
+function enableLocalShortcuts() {
+keyArray = new Array(new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpcBpartnerId_DES', document.frmMain.inpcBpartnerId_DES.value, 'Command', 'KEY');", "inpcBpartnerId_DES", "null"));
 }
 function depurar(action) {
   	var frm=document.frmMain;
@@ -106,10 +106,10 @@
 	new TypeAheadCombo("inppaymentrule");
   new TypeAheadCombo("inpisreceipt");
   new TypeAheadCombo("inpadOrgId");
-  activarTeclas();
+  enableLocalShortcuts();
 }
 </SCRIPT></HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"  onload="focoPrimerControl();onloadFunctions();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"  onload="setFocusFirstControl();onloadFunctions();">
 <FORM id="form" method="POST" action="../ad_actionButton/CreateFrom.html" name="frmMain">
 <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_DPManagement.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_DPManagement.html	Mon Jan 21 18:49:59 2008 +0000
@@ -41,8 +41,8 @@
  <script language="JavaScript" type="text/javascript" id="keyMap"></script>
 <SCRIPT language="JavaScript" type="text/javascript">
 
-function activarTeclas() {
-arrTeclas = new Array(new Teclas("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpBpartnerId_DES', document.frmMain.inpBpartnerId_DES.value, 'Command', 'KEY');", "inpBpartnerId_DES", "null"));
+function enableLocalShortcuts() {
+keyArray = new Array(new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpBpartnerId_DES', document.frmMain.inpBpartnerId_DES.value, 'Command', 'KEY');", "inpBpartnerId_DES", "null"));
 }
 
 function depurar(action) {
@@ -103,14 +103,14 @@
 	new TypeAheadCombo("inppaymentrule");
   new TypeAheadCombo("inpisreceipt");
   new TypeAheadCombo("inpadOrgId");
-  activarTeclas();
+  enableLocalShortcuts();
 }
 </SCRIPT></HEAD>
 
 
 
 
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();onloadFunctions();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();onloadFunctions();">
 <FORM id="form" method="POST" action="../ad_actionButton/CreateFrom.html" name="frmMain">
 <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Invoice.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Invoice.html	Mon Jan 21 18:49:59 2008 +0000
@@ -44,8 +44,8 @@
 <SCRIPT language="JavaScript" type="text/javascript">
 
 
-function activarTeclas() {
-  arrTeclas[arrTeclas.length] = new Teclas("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpBpartnerId_DES', document.frmMain.inpBpartnerId_DES.value, 'Command', 'KEY');", "inpBpartnerId_DES", "null");
+function enableLocalShortcuts() {
+  keyArray[keyArray.length] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpBpartnerId_DES', document.frmMain.inpBpartnerId_DES.value, 'Command', 'KEY');", "inpBpartnerId_DES", "null");
 }
 
 function debugSearch(strClave, strTexto, gCampoClave) {
@@ -73,7 +73,7 @@
 function onloadFunctions() {
 	new TypeAheadCombo("inpPurchaseOrder");
   new TypeAheadCombo("inpShipmentReciept");
-  activarTeclas();
+  enableLocalShortcuts();
 }
 </SCRIPT>
   <script language="JavaScript" type="text/javascript">
@@ -102,7 +102,7 @@
 
 
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"  onload="resizeArea();focoPrimerControl();onloadFunctions();" onresize="resizeArea();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"  onload="resizeArea();setFocusFirstControl();onloadFunctions();" onresize="resizeArea();">
 
 <FORM id="form" method="POST" action="../ad_actionButton/CreateFrom.html" name="frmMain">
   <INPUT type="hidden" name="Command">
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Settlement.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Settlement.html	Mon Jan 21 18:49:59 2008 +0000
@@ -44,8 +44,8 @@
   </script>
   <SCRIPT language="JavaScript" type="text/javascript">
 
-function activarTeclas() {
-  arrTeclas[arrTeclas.length] = new Teclas("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpBpartnerId_DES', document.frmMain.inpBpartnerId_DES.value, 'Command', 'KEY');", "inpBpartnerId_DES", "null");
+function enableLocalShortcuts() {
+  keyArray[keyArray.length] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpBpartnerId_DES', document.frmMain.inpBpartnerId_DES.value, 'Command', 'KEY');", "inpBpartnerId_DES", "null");
 }
 
     function depurar(action) {
@@ -100,11 +100,11 @@
       new TypeAheadCombo("inppaymentrule");
       new TypeAheadCombo("inpisreceipt");
       new TypeAheadCombo("inpadOrgId");
-      activarTeclas();
+      enableLocalShortcuts();
     }
   </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();onloadFunctions();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();onloadFunctions();">
 <FORM id="form" method="POST" action="../ad_actionButton/CreateFrom.html" name="frmMain">
 <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Shipment.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Shipment.html	Mon Jan 21 18:49:59 2008 +0000
@@ -41,11 +41,11 @@
 	return true;
 }
 
-arrTeclas = new Array(
-new Teclas("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', 'SELECTOR_BUSINESS', true, 'frmMain', 'inpcBpartnerId', 'inpBpartnerId_DES', document.frmMain.inpBpartnerId_DES.value, 'Command', 'KEY');", "inpBpartnerId_DES", "null"),
-new Teclas("ENTER", "openSearch(null, null, '../info/Locator_FS.html', null, false, 'frmMain', 'inpmLocatorId', 'inpmLocatorId_DES', document.frmMain.inpmLocatorId_DES.value, 'Command', 'KEY', 'WindowID', 'CreateFrom_Shipment');", "inpmLocatorId_DES", "null") 
+keyArray = new Array(
+new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', 'SELECTOR_BUSINESS', true, 'frmMain', 'inpcBpartnerId', 'inpBpartnerId_DES', document.frmMain.inpBpartnerId_DES.value, 'Command', 'KEY');", "inpBpartnerId_DES", "null"),
+new keyArrayItem("ENTER", "openSearch(null, null, '../info/Locator_FS.html', null, false, 'frmMain', 'inpmLocatorId', 'inpmLocatorId_DES', document.frmMain.inpmLocatorId_DES.value, 'Command', 'KEY', 'WindowID', 'CreateFrom_Shipment');", "inpmLocatorId_DES", "null") 
 );
-activarControlTeclas();
+enableShortcuts();
 
 function depurar(action) {
   var frm=document.frmMain;
--- a/src/org/openbravo/erpCommon/ad_actionButton/EditCCPMeasureValues_F1.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_actionButton/EditCCPMeasureValues_F1.html	Mon Jan 21 18:49:59 2008 +0000
@@ -53,7 +53,7 @@
 
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"  onload="focoPrimerControl();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"  onload="setFocusFirstControl();">
 <DIV class="Popup_ContentPane_CircleLogo">
   <DIV class="Popup_WindowLogo">
     <img class="Popup_WindowLogo_Icon Popup_WindowLogo_Icon_process" src="../../../../../web/images/blank.gif" border=0/></img>
--- a/src/org/openbravo/erpCommon/ad_actionButton/EncryptedButtons.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_actionButton/EncryptedButtons.html	Mon Jan 21 18:49:59 2008 +0000
@@ -36,10 +36,10 @@
 var baseDirection="../../../../../web/";
 </SCRIPT>
 <SCRIPT language="JavaScript" type="text/javascript">
-arrTeclas = new Array(
-new Teclas("ENTER", "saveChanges();", null, null)
+keyArray = new Array(
+new keyArrayItem("ENTER", "saveChanges();", null, null)
 );
-activarControlTeclas();
+enableShortcuts();
 
 function saveChanges() {
 	var frm = document.frmMain;
@@ -52,7 +52,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY onload="focoPrimerControl();xx();"  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" id="paramBody">
+<BODY onload="setFocusFirstControl();xx();"  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" id="paramBody">
 <FORM name="frmMain" method="post" action="EncryptedButtons.html" id="fieldForm">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_forms/AlertManagement.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/AlertManagement.html	Mon Jan 21 18:49:59 2008 +0000
@@ -69,7 +69,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY onload="onloadFunctions();xx();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" id="paramMessage">
+<BODY onload="onloadFunctions();xx();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" id="paramMessage">
 <FORM method="POST" action="AlertManagement.html" name="frmMain" >
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_forms/BackgroundProcessList.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/BackgroundProcessList.html	Mon Jan 21 18:49:59 2008 +0000
@@ -48,7 +48,7 @@
       dojo.hostenv.writeIncludes(); //makes debugging in Venkman possible
 </script> 
 </HEAD>
-<BODY onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
+<BODY onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
 <FORM method="POST" action="BackgroundProcessList.html" name="frmMain" >
 <input type="hidden" name="Command"></input>
 <input type="hidden" name="inpKey"></input>
--- a/src/org/openbravo/erpCommon/ad_forms/CallAcctServer.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/CallAcctServer.html	Mon Jan 21 18:49:59 2008 +0000
@@ -49,7 +49,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');xx();focoPrimerControl();" onresize="resizeArea();" id="paramBody">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');xx();setFocusFirstControl();" onresize="resizeArea();" id="paramBody">
 <FORM name="frmMain" method="POST" action="CallAcctServer.html">
 	<INPUT type="hidden" name="Command"></INPUT>
 
--- a/src/org/openbravo/erpCommon/ad_forms/DebtPaymentUnapply.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/DebtPaymentUnapply.html	Mon Jan 21 18:49:59 2008 +0000
@@ -50,9 +50,9 @@
       dojo.hostenv.writeIncludes(); //makes debugging in Venkman possible
 </script> 
 <SCRIPT language="JavaScript" type="text/javascript">
-//arrTeclas = new Array();
-//arrTeclas[2] = new Teclas("M", "mostrarMenu();", null, "ctrlKey")
-//activarControlTeclas();
+//keyArray = new Array();
+//keyArray[2] = new keyArrayItem("M", "mostrarMenu();", null, "ctrlKey")
+//enableShortcuts();
 
 function depurar(action) {
   var frm=document.frmMain;
@@ -67,7 +67,7 @@
 
 </SCRIPT>
 </HEAD>
-<BODY onload="xx();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();"  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" id="paramMessage">
+<BODY onload="xx();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();"  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" id="paramMessage">
 <FORM method="POST" action="DebtPaymentUnapply.html" name="frmMain" >
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_forms/EdiFileImport.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/EdiFileImport.html	Mon Jan 21 18:49:59 2008 +0000
@@ -60,7 +60,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();focoPrimerControl();porDefecto('submitCommandForm(\'FIND\', true)');resizeArea();updateMenuIcon('buttonMenu');" onresize="resizeArea();" id="paramMensaje">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();setFocusFirstControl();byDefaultAction('submitCommandForm(\'FIND\', true)');resizeArea();updateMenuIcon('buttonMenu');" onresize="resizeArea();" id="paramMensaje">
 <FORM name="frmSelector" method="POST" action="EdiFileImport.html" target="medio" enctype="multipart/form-data">
         <INPUT type="hidden" name="Command"></INPUT>
   <input type="hidden" name="inpLastFieldChanged" value="">
--- a/src/org/openbravo/erpCommon/ad_forms/FileImport.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/FileImport.html	Mon Jan 21 18:49:59 2008 +0000
@@ -72,7 +72,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();xx();focoPrimerControl();porDefecto('submitCommandForm(\'FIND\', true)');resizeArea();updateMenuIcon('buttonMenu');" onresize="resizeArea();" id="paramMensaje">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();xx();setFocusFirstControl();byDefaultAction('submitCommandForm(\'FIND\', true)');resizeArea();updateMenuIcon('buttonMenu');" onresize="resizeArea();" id="paramMensaje">
 <FORM name="frmSelector" method="POST" action="FileImport.html" enctype="multipart/form-data">
 <INPUT type="hidden" name="Command"></INPUT>
   <input type="hidden" name="inpLastFieldChanged" value="">
--- a/src/org/openbravo/erpCommon/ad_forms/GenerateInvoicesmanual.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/GenerateInvoicesmanual.html	Mon Jan 21 18:49:59 2008 +0000
@@ -75,7 +75,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" id="paramMessage">
+<BODY onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" id="paramMessage">
       
 <FORM method="POST" action="GenerateInvoicesmanual.html" name="frmMain" >
 <INPUT type="hidden" name="Command"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_forms/GenerateShipmentsmanual.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/GenerateShipmentsmanual.html	Mon Jan 21 18:49:59 2008 +0000
@@ -53,11 +53,11 @@
       dojo.hostenv.writeIncludes(); //makes debugging in Venkman possible
 </script> 
 <SCRIPT language="JavaScript" type="text/javascript">
-//arrTeclas = new Array();
-//arrTeclas[0] = new Teclas("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpBpartnerId_DES', document.frmMain.inpBpartnerId_DES.value, 'Command', 'KEY', 'WindowID', 'GenerateShipmentsmanual');", "inpBpartnerId_DES", "null");
-//arrTeclas[1] = new Teclas("ENTER", "submitCommandForm('FIND');", null, null),
-//arrTeclas[2] = new Teclas("M", "mostrarMenu();", null, "ctrlKey")
-//activarControlTeclas();
+//keyArray = new Array();
+//keyArray[0] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpBpartnerId_DES', document.frmMain.inpBpartnerId_DES.value, 'Command', 'KEY', 'WindowID', 'GenerateShipmentsmanual');", "inpBpartnerId_DES", "null");
+//keyArray[1] = new keyArrayItem("ENTER", "submitCommandForm('FIND');", null, null),
+//keyArray[2] = new keyArrayItem("M", "mostrarMenu();", null, "ctrlKey")
+//enableShortcuts();
 
 function depurar(action) {
   var frm=document.frmMain;
@@ -81,7 +81,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY onload="onloadFunctions();xx();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" id="paramMessage">
+<BODY onload="onloadFunctions();xx();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" id="paramMessage">
 
 <FORM method="POST" action="GenerateShipmentsmanual.html" name="frmMain" >
 <INPUT type="hidden" name="Command"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_forms/InformeInOut.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/InformeInOut.html	Mon Jan 21 18:49:59 2008 +0000
@@ -39,7 +39,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"  onload="onloadFunctions();focoPrimerControl();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"  onload="onloadFunctions();setFocusFirstControl();">
 <H1>Excel InOut report</H1>
 <FORM method="POST" action="InformeInOut.xls" name="frmMain">
   <INPUT type="hidden" name="Command"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_forms/InitialClientSetup.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/InitialClientSetup.html	Mon Jan 21 18:49:59 2008 +0000
@@ -77,7 +77,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
   <FORM name="frmMain" method="POST" action="InitialClientSetup.html" enctype="multipart/form-data" id="form"> 
   <INPUT type="hidden" name="Command"></INPUT>
   <input type="hidden" name="inpLastFieldChanged" value="">
--- a/src/org/openbravo/erpCommon/ad_forms/InvoiceVendorMultiline.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/InvoiceVendorMultiline.html	Mon Jan 21 18:49:59 2008 +0000
@@ -42,7 +42,7 @@
 <SCRIPT language="JavaScript" src="../../../../../web/js/TypeAheadCombo.js" type="text/javascript"></SCRIPT>
 <script language="JavaScript" type="text/javascript" id="keyMap"></script>
 <SCRIPT language="javascript" type="text/javascript">
-arrTeclas[arrTeclas.length] = new Teclas("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', null, true, 'frmMain', 'inpcBpartnerId', 'inpcBpartnerId_D', document.frmMain.inpcBpartnerId_D.value, 'inpIDValue', document.frmMain.inpcBpartnerId.value, 'Command', 'KEY', 'WindowID', 'InvoiceVendorMultiline.html');", "inpcBpartnerId_D", "null");
+keyArray[keyArray.length] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', null, true, 'frmMain', 'inpcBpartnerId', 'inpcBpartnerId_D', document.frmMain.inpcBpartnerId_D.value, 'inpIDValue', document.frmMain.inpcBpartnerId.value, 'Command', 'KEY', 'WindowID', 'InvoiceVendorMultiline.html');", "inpcBpartnerId_D", "null");
 
 function calloutSE_Invoice_BPartner(changedField) {
 submitCommandFormParameter('DEFAULT', frmMain.inpLastFieldChanged, changedField, false, null, '../ad_callouts/SE_Invoice_BPartner.html', 'frameOculto', null, null, true);
@@ -61,7 +61,7 @@
   new TypeAheadCombo("reportC_BPartner_Location_ID_S");
   new TypeAheadCombo("reportPaymentRule_S");
   new TypeAheadCombo("reportC_PaymentTerm_ID_S");
-  activarTeclas();
+  enableLocalShortcuts();
 }
 
 function depurar() {
@@ -69,7 +69,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="resizeArea();updateMenuIcon('buttonMenu');onloadFunctions();xx();focoPrimerControl();" onresize="resizeArea();" id="paramBody">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="resizeArea();updateMenuIcon('buttonMenu');onloadFunctions();xx();setFocusFirstControl();" onresize="resizeArea();" id="paramBody">
 <form id="form" method="POST" action="InvoiceVendorMultiline.html" name="frmMain">
   <input type="hidden" name="Command">
   <input type="hidden" name="inpCommandType" value="" id="paramCommandType">
--- a/src/org/openbravo/erpCommon/ad_forms/InvoiceVendorMultiline_Lines.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/InvoiceVendorMultiline_Lines.html	Mon Jan 21 18:49:59 2008 +0000
@@ -33,24 +33,24 @@
 <SCRIPT language="JavaScript" type="text/javascript" id="paramDirection">var baseDirection = "../../../../../web/";</SCRIPT>
 <SCRIPT language="JavaScript" type="text/javascript" id="paramLanguage">	LNG_POR_DEFECTO = "en_US";</SCRIPT>
 <SCRIPT language="javascript" type="text/javascript">
-  var arrTeclas = new Array();
-  function activarTeclas() {
-    arrTeclas[0] = new Teclas("M", "mostrarMenu();", null, "ctrlKey");
-    arrTeclas[1] = new Teclas("N", "submitCommandForm('NEW', false, null, 'InvoiceVendorMultiline.html', '_parent', null, true, null, true);", null, "ctrlKey");
-    arrTeclas[3] = new Teclas("L", "submitCommandForm('RELATION', true, null, 'InvoiceVendorMultiline.html', '_parent', null, true, null, true);", null, "ctrlKey");
+  var keyArray = new Array();
+  function enableLocalShortcuts() {
+    keyArray[0] = new keyArrayItem("M", "mostrarMenu();", null, "ctrlKey");
+    keyArray[1] = new keyArrayItem("N", "submitCommandForm('NEW', false, null, 'InvoiceVendorMultiline.html', '_parent', null, true, null, true);", null, "ctrlKey");
+    keyArray[3] = new keyArrayItem("L", "submitCommandForm('RELATION', true, null, 'InvoiceVendorMultiline.html', '_parent', null, true, null, true);", null, "ctrlKey");
     var clave=document.frmMain.inpCommandType.value;
     if (clave!=null && clave!="" && clave=="EDIT") {
-      arrTeclas[4] = new Teclas("D", "submitCommandForm('DELETE', true, null, 'InvoiceVendorMultiline.html', '_parent');", null, "ctrlKey");
-      arrTeclas[5] = new Teclas("S", "submitCommandForm('SAVE_EDIT_EDIT', true, null, 'InvoiceVendorMultiline.html', '_parent', null, null, null, true);", null, "ctrlKey");
-      arrTeclas[6] = new Teclas("G", "submitCommandForm('SAVE_EDIT_RELATION', true, null, 'InvoiceVendorMultiline.html', '_parent', null, null, null, true);", null, "ctrlKey");
-      arrTeclas[7] = new Teclas("H", "submitCommandForm('SAVE_EDIT_NEW', true, null, 'InvoiceVendorMultiline.html', '_parent', null, null, null, true);", null, "ctrlKey");
+      keyArray[4] = new keyArrayItem("D", "submitCommandForm('DELETE', true, null, 'InvoiceVendorMultiline.html', '_parent');", null, "ctrlKey");
+      keyArray[5] = new keyArrayItem("S", "submitCommandForm('SAVE_EDIT_EDIT', true, null, 'InvoiceVendorMultiline.html', '_parent', null, null, null, true);", null, "ctrlKey");
+      keyArray[6] = new keyArrayItem("G", "submitCommandForm('SAVE_EDIT_RELATION', true, null, 'InvoiceVendorMultiline.html', '_parent', null, null, null, true);", null, "ctrlKey");
+      keyArray[7] = new keyArrayItem("H", "submitCommandForm('SAVE_EDIT_NEW', true, null, 'InvoiceVendorMultiline.html', '_parent', null, null, null, true);", null, "ctrlKey");
     } else {
-      arrTeclas[4] = new Teclas("S", "submitCommandForm('SAVE_NEW_EDIT', true, null, 'InvoiceVendorMultiline.html', '_parent', null, null, null, true);", null, "ctrlKey");
-      arrTeclas[5] = new Teclas("G", "submitCommandForm('SAVE_NEW_RELATION', true, null, 'InvoiceVendorMultiline.html', '_parent', null, null, null, true);", null, "ctrlKey");
-      arrTeclas[6] = new Teclas("H", "submitCommandForm('SAVE_NEW_NEW', true, null, 'InvoiceVendorMultiline.html', '_parent', null, null, null, true);", null, "ctrlKey");
+      keyArray[4] = new keyArrayItem("S", "submitCommandForm('SAVE_NEW_EDIT', true, null, 'InvoiceVendorMultiline.html', '_parent', null, null, null, true);", null, "ctrlKey");
+      keyArray[5] = new keyArrayItem("G", "submitCommandForm('SAVE_NEW_RELATION', true, null, 'InvoiceVendorMultiline.html', '_parent', null, null, null, true);", null, "ctrlKey");
+      keyArray[6] = new keyArrayItem("H", "submitCommandForm('SAVE_NEW_NEW', true, null, 'InvoiceVendorMultiline.html', '_parent', null, null, null, true);", null, "ctrlKey");
     }
-    arrTeclas[8] = new Teclas("ENTER", "openProductSearch(true);", "inpmProductId_D%", "null");
-    arrTeclas[9] = new Teclas("F8", "submitCommandFormParameter(\"DIRECT\", document.frmSecond.inpmProductId,  document.frmMain.inpmProductId@endinputname@.value, false, document.frmSecond, '../Product/Product_Edition.html', '_parent');", "inpmProductId_D%", "null");
+    keyArray[8] = new keyArrayItem("ENTER", "openProductSearch(true);", "inpmProductId_D%", "null");
+    keyArray[9] = new keyArrayItem("F8", "submitCommandFormParameter(\"DIRECT\", document.frmSecond.inpmProductId,  document.frmMain.inpmProductId@endinputname@.value, false, document.frmSecond, '../Product/Product_Edition.html', '_parent');", "inpmProductId_D%", "null");
   }
 </SCRIPT>
 <SCRIPT language="JavaScript" type="text/javascript">
@@ -199,7 +199,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="activarTeclas();focoPrimerControl();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="enableLocalShortcuts();setFocusFirstControl();">
   <IFRAME name="frameMultiOculto" src="InvoiceVendorMultiline_Lines.html?Command=HIDDEN" width="0" height="0" style="visibility: hidden; overflow:hidden; display: none;"></IFRAME>
   <FORM name="frmMain" method="POST" action="InvoiceVendorMultiline_Lines.html">
     <INPUT type="hidden" name="Command"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_forms/MatchingPO-Receipt-Invoice_F1.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/MatchingPO-Receipt-Invoice_F1.html	Mon Jan 21 18:49:59 2008 +0000
@@ -30,12 +30,12 @@
 <SCRIPT language="JavaScript" src="../../../../../web/js/TypeAheadCombo.js" type="text/javascript"></SCRIPT>
 <SCRIPT language="JavaScript" type="text/javascript" id="paramLanguage">	LNG_POR_DEFECTO = "en_US";</SCRIPT>
 <SCRIPT language="JavaScript" type="text/javascript">
-arrTeclas = new Array(
-new Teclas("M", "mostrarMenu();", null, "ctrlKey"),
-new Teclas("ENTER", "openSearch(null, null, '../info/Product_FS.html', null, false, 'frmMain', 'inpmProductId', 'inpmProductId_DES', document.frmMain.inpmProductId_DES.value, 'Command', 'KEY', 'WindowID', 'MatchingPO');", "inpmProductId_DES", "null"),
-new Teclas("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpcBpartnerId_DES', document.frmMain.inpcBpartnerId_DES.value, 'Command', 'KEY');", "inpcBpartnerId_DES", "null")
+keyArray = new Array(
+new keyArrayItem("M", "mostrarMenu();", null, "ctrlKey"),
+new keyArrayItem("ENTER", "openSearch(null, null, '../info/Product_FS.html', null, false, 'frmMain', 'inpmProductId', 'inpmProductId_DES', document.frmMain.inpmProductId_DES.value, 'Command', 'KEY', 'WindowID', 'MatchingPO');", "inpmProductId_DES", "null"),
+new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpcBpartnerId_DES', document.frmMain.inpcBpartnerId_DES.value, 'Command', 'KEY');", "inpcBpartnerId_DES", "null")
 );
-activarControlTeclas();
+enableShortcuts();
 
 var arrFinalDocs = new Array(
 new Array("1", "2", "Albaran"),
@@ -51,7 +51,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();selectCombo(document.frmMain.inpsourcedoc, 'yy');rellenarComboHijo(document.frmMain.inpfinaldoc, arrFinalDocs, document.frmMain.inpsourcedoc.options[document.frmMain.inpsourcedoc.selectedIndex].value, false, true);selectCombo(document.frmMain.inpfinaldoc, 'xx');selectCombo(document.frmMain.inpsearchmode, 'zz');focoPrimerControl();" id="paramBody">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();selectCombo(document.frmMain.inpsourcedoc, 'yy');rellenarComboHijo(document.frmMain.inpfinaldoc, arrFinalDocs, document.frmMain.inpsourcedoc.options[document.frmMain.inpsourcedoc.selectedIndex].value, false, true);selectCombo(document.frmMain.inpfinaldoc, 'xx');selectCombo(document.frmMain.inpsearchmode, 'zz');setFocusFirstControl();" id="paramBody">
 <TABLE width="100%" border="0" cellspacing="1" cellpadding="0" >
 <TR>
           <TD  width="2%"> <A href="#" onclick="mostrarMenu();return false;" onmouseover="window.status='Menu';return true;" onmouseout="window.status='';return true;" class="TBButton"> 
--- a/src/org/openbravo/erpCommon/ad_forms/MatchingPO-Receipt-Invoice_F2.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/MatchingPO-Receipt-Invoice_F2.html	Mon Jan 21 18:49:59 2008 +0000
@@ -64,7 +64,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();">
 <FORM name="frmMain" method="POST" action="MatchingPO-Receipt-Invoice_F4.html" target="cuatro">
   <INPUT type="hidden" name="Command">
   <INPUT type="hidden" name="inpType">
--- a/src/org/openbravo/erpCommon/ad_forms/MatchingPO-Receipt-Invoice_F4.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/MatchingPO-Receipt-Invoice_F4.html	Mon Jan 21 18:49:59 2008 +0000
@@ -61,7 +61,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();">
 <FORM name="frmMain" method="POST" action="MatchingPO-Receipt-Invoice_FS.html">
   <INPUT type="hidden" name="Command"></INPUT>
   <INPUT type="hidden" name="inpmProductId" value="" id="paramProduct"></INPUT> 
--- a/src/org/openbravo/erpCommon/ad_forms/MaterialReceiptPending.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/MaterialReceiptPending.html	Mon Jan 21 18:49:59 2008 +0000
@@ -92,7 +92,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY onload="onloadFunctions();xx();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" id="paramMessage">
+<BODY onload="onloadFunctions();xx();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" id="paramMessage">
 <FORM method="POST" action="MaterialReceiptPending.html" name="frmMain" >
 <INPUT type="hidden" name="Command"></INPUT>
 <INPUT type="hidden" name="inpcOrderId"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_forms/MaterialTransactions.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/MaterialTransactions.html	Mon Jan 21 18:49:59 2008 +0000
@@ -85,7 +85,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();focoPrimerControl();porDefecto('submitCommandForm(\'FIND\', true, null, null, \'medio\')');resizeArea();updateMenuIcon('buttonMenu');" onresize="resizeArea();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();setFocusFirstControl();byDefaultAction('submitCommandForm(\'FIND\', true, null, null, \'medio\')');resizeArea();updateMenuIcon('buttonMenu');" onresize="resizeArea();">
 <FORM name="frmMain" method="POST" action="MaterialTransactions.html" target="medio">
 <INPUT type="hidden" name="Command"></INPUT>
 <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/src/org/openbravo/erpCommon/ad_forms/MaterialTransactions_F1.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/MaterialTransactions_F1.html	Mon Jan 21 18:49:59 2008 +0000
@@ -31,13 +31,13 @@
 <SCRIPT language="JavaScript" type="text/javascript" id="paramDirection">var baseDirection = "../../../../../web/";</SCRIPT>
 <SCRIPT language="JavaScript" type="text/javascript" id="paramLanguage">	LNG_POR_DEFECTO = "en_US";</SCRIPT>
 <SCRIPT language="JavaScript" type="text/javascript">
-arrTeclas = new Array(
-new Teclas("M", "mostrarMenu();", null, "ctrlKey")
+keyArray = new Array(
+new keyArrayItem("M", "mostrarMenu();", null, "ctrlKey")
 ,
-new Teclas("ENTER", "openSearch(null, null, '../info/Locator_FS.html', null, false, 'frmMain', 'inpmLocatorId', 'inpmLocatorId_DES', document.frmMain.inpmLocatorId_DES.value, 'Command', 'KEY', 'WindowID', '168');", "inpmLocatorId_DES", "null"), 
-new Teclas("ENTER", "openSearch(null, null, '../info/Product_FS.html', null, false, 'frmMain', 'inpmProductId', 'inpmProductId_DES', document.frmMain.inpmProductId_DES.value, 'Command', 'KEY', 'WindowID', '168');", "inpmProductId_DES", "null")
+new keyArrayItem("ENTER", "openSearch(null, null, '../info/Locator_FS.html', null, false, 'frmMain', 'inpmLocatorId', 'inpmLocatorId_DES', document.frmMain.inpmLocatorId_DES.value, 'Command', 'KEY', 'WindowID', '168');", "inpmLocatorId_DES", "null"), 
+new keyArrayItem("ENTER", "openSearch(null, null, '../info/Product_FS.html', null, false, 'frmMain', 'inpmProductId', 'inpmProductId_DES', document.frmMain.inpmProductId_DES.value, 'Command', 'KEY', 'WindowID', '168');", "inpmProductId_DES", "null")
 );
-activarControlTeclas();
+enableShortcuts();
 
 function depurarSelector(action) {
 	var clave = radioValue(parent.medio.document.frmSelector.inpMTransactionId);
@@ -65,7 +65,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();focoPrimerControl();porDefecto('submitCommandForm(\'FIND\', true, null, null, \'medio\')');">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();setFocusFirstControl();byDefaultAction('submitCommandForm(\'FIND\', true, null, null, \'medio\')');">
 <span id="paramToolBar">toolbar</span> <BR></BR>
 <FORM name="frmMain" method="POST" action="MaterialTransactions_F2.html" target="medio">
   <INPUT type="hidden" name="Command"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_forms/MaterialTransactions_F2.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/MaterialTransactions_F2.html	Mon Jan 21 18:49:59 2008 +0000
@@ -29,7 +29,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();">
 <FORM name="frmSelector" method="POST" action="MaterialTransactions_F2.html" target="frameAplicacion">
   <INPUT type="hidden" name="Command"></INPUT>
   <INPUT type="hidden" name="inpTexto"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_forms/RemittanceCancel.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/RemittanceCancel.html	Mon Jan 21 18:49:59 2008 +0000
@@ -117,7 +117,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY onload="onloadFunctions();xx();resizeArea();focoPrimerControl();updateMenuIcon('buttonMenu');porDefecto('submitCommandForm(\'FIND\', true, null, null)');" onresize="resizeArea();" leftmargin="0" topmargin="0" marginwidth="0">
+<BODY onload="onloadFunctions();xx();resizeArea();setFocusFirstControl();updateMenuIcon('buttonMenu');byDefaultAction('submitCommandForm(\'FIND\', true, null, null)');" onresize="resizeArea();" leftmargin="0" topmargin="0" marginwidth="0">
 <FORM name="frmMain" method="POST" action="RemittanceCancel.html">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_forms/SQLExecutor.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/SQLExecutor.html	Mon Jan 21 18:49:59 2008 +0000
@@ -50,7 +50,7 @@
             dojo.hostenv.writeIncludes(); //makes debugging in Venkman possible
         </SCRIPT>
     </HEAD>
-    <BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();xx();" onresize="resizeArea();" id="paramBuscador">
+    <BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();xx();" onresize="resizeArea();" id="paramBuscador">
         <FORM method="POST" action="SQLExecutor.html" name="frmMain" id="form">
             <INPUT type="hidden" name="Command"></INPUT>
             <TABLE height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/src/org/openbravo/erpCommon/ad_forms/ShowSession.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/ShowSession.html	Mon Jan 21 18:49:59 2008 +0000
@@ -68,7 +68,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();" id="paramMessage">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();" id="paramMessage">
 <FORM name="frmMain" method="post" action="Showsession.html">
               <INPUT type="hidden" name="Command"></INPUT>
               <INPUT type="hidden" name="inpSessionValue"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_forms/ShowSessionPreferences.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/ShowSessionPreferences.html	Mon Jan 21 18:49:59 2008 +0000
@@ -52,7 +52,7 @@
       dojo.hostenv.writeIncludes(); //makes debugging in Venkman possible
 </script> 
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();" id="paramMessage">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();" id="paramMessage">
       <FORM name="frmMain" method="post" action="ShowsessionPreferences.html">
         <INPUT type="hidden" name="Command"></INPUT>
   <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/src/org/openbravo/erpCommon/ad_forms/Translation.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/Translation.html	Mon Jan 21 18:49:59 2008 +0000
@@ -59,7 +59,7 @@
 }
 
 </SCRIPT></HEAD>
-<BODY id="paramMensaje" action="Translation.html" onload="onloadFunctions();xx();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"  >
+<BODY id="paramMensaje" action="Translation.html" onload="onloadFunctions();xx();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"  >
 <FORM name="frmSelector" method="POST" action="Translation.html" id="form">
 <INPUT type="hidden" name="Command"></INPUT>
 <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/src/org/openbravo/erpCommon/ad_help/DisplayHelp_Edit_Element_F1.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_help/DisplayHelp_Edit_Element_F1.html	Mon Jan 21 18:49:59 2008 +0000
@@ -70,7 +70,7 @@
     }
   </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();xinha_init();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();xinha_init();">
 <FORM name="frmMain" action="DisplayHelp_Edit_Field_FS.html" method="POST" id="sectionDetail">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_help/DisplayHelp_Edit_F1.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_help/DisplayHelp_Edit_F1.html	Mon Jan 21 18:49:59 2008 +0000
@@ -71,7 +71,7 @@
     }
   </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();xinha_init();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();xinha_init();">
 <FORM name="frmMain" action="DisplayHelp.html" method="POST" target="frameOculto" id="sectionDetail">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_help/DisplayHelp_Edit_Field_F1.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_help/DisplayHelp_Edit_Field_F1.html	Mon Jan 21 18:49:59 2008 +0000
@@ -70,7 +70,7 @@
     }
   </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();xinha_init();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();xinha_init();">
 <FORM name="frmMain" action="DisplayHelp_Edit_Field_FS.html" method="POST" id="sectionDetail">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_process/CashBankOperations.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_process/CashBankOperations.html	Mon Jan 21 18:49:59 2008 +0000
@@ -51,7 +51,7 @@
       
 
 <SCRIPT language="JavaScript" type="text/javascript">
-var arrTeclas = new Array();
+var keyArray = new Array();
 function depurar() {
 	var frm = document.frmMain;
 	if ((frm.inpCBankAccountFromID.value==null || frm.inpCBankAccountFromID.value=="") && (frm.inpCCashFromID.value==null || frm.inpCCashFromID.value=="")) {
--- a/src/org/openbravo/erpCommon/ad_process/ChangeOrderOrg.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_process/ChangeOrderOrg.html	Mon Jan 21 18:49:59 2008 +0000
@@ -78,7 +78,7 @@
     }
   </SCRIPT>
 </HEAD>
-<BODY onload="onloadFunctions();xx();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" id="paramMessage">
+<BODY onload="onloadFunctions();xx();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" id="paramMessage">
 
 <FORM  method="POST" action="ChangeOrderOrg.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_process/CopyFromGLJournal_F2.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_process/CopyFromGLJournal_F2.html	Mon Jan 21 18:49:59 2008 +0000
@@ -66,7 +66,7 @@
   </script>
 </head>
 
-<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();focoPrimerControl();window.focus();" onresize="resizeArea();">
+<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();setFocusFirstControl();window.focus();" onresize="resizeArea();">
 <form name="frmMain" method="POST" action="../ad_process/CopyFromGLJournal_F2.html">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_process/CreateAccountingReport.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_process/CreateAccountingReport.html	Mon Jan 21 18:49:59 2008 +0000
@@ -106,7 +106,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();displayCombos();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();displayCombos();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM id="form" method="POST" action="CreateAccountingReport.html" name="frmMain">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_process/CreateCashFlowStatement.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_process/CreateCashFlowStatement.html	Mon Jan 21 18:49:59 2008 +0000
@@ -54,7 +54,7 @@
 
 
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM id="form" method="POST" action="CreateCashFlowStatement.html" name="frmMain">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_process/CreateTaxReport.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_process/CreateTaxReport.html	Mon Jan 21 18:49:59 2008 +0000
@@ -90,7 +90,7 @@
 
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM id="form" method="POST" action="CreateTaxReport.html" name="frmMain">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_process/DeleteClient.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_process/DeleteClient.html	Mon Jan 21 18:49:59 2008 +0000
@@ -55,7 +55,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();" id="paramMessage">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();" id="paramMessage">
 <FORM id="form" method="POST" action="DeleteClient.html" name="frmMain">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_process/ExpenseAPInvoice.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_process/ExpenseAPInvoice.html	Mon Jan 21 18:49:59 2008 +0000
@@ -50,9 +50,9 @@
       dojo.hostenv.writeIncludes(); //makes debugging in Venkman possible
 </script> 
 <SCRIPT language="JavaScript" type="text/javascript">
-var arrTeclas = new Array();
-function activarTeclas() {
-arrTeclas[0] = new Teclas("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', null, false, 'frmMain', 'inpcBPartnerId', 'inpBpartnerId_D', document.frmMain.inpBpartnerId_D.value, 'Command', 'KEY');", "inpBpartnerId_D", "null");
+var keyArray = new Array();
+function enableLocalShortcuts() {
+keyArray[0] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', null, false, 'frmMain', 'inpcBPartnerId', 'inpBpartnerId_D', document.frmMain.inpBpartnerId_D.value, 'Command', 'KEY');", "inpBpartnerId_D", "null");
 }
 function depurar() {
 	var frm = document.frmMain;
@@ -95,7 +95,7 @@
 
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="activarTeclas();resizeArea();xx;"  id="body" onresize="resizeArea();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="enableLocalShortcuts();resizeArea();xx;"  id="body" onresize="resizeArea();">
 <FORM id="form" method="POST" action="ExpenseAPInvoice.html" name="frmMain">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_process/ImportAccountServlet.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_process/ImportAccountServlet.html	Mon Jan 21 18:49:59 2008 +0000
@@ -40,7 +40,7 @@
   
 
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();" >
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();" >
 <FORM id="form" method="POST" action="ImportAccount.html" name="frmMain">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_process/ImportBPartnerServlet.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_process/ImportBPartnerServlet.html	Mon Jan 21 18:49:59 2008 +0000
@@ -39,7 +39,7 @@
   </SCRIPT>
   
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();" >
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();" >
 <FORM id="form" method="POST" action="ImportBPartner.html" name="frmMain">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_process/ImportBudgetServlet.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_process/ImportBudgetServlet.html	Mon Jan 21 18:49:59 2008 +0000
@@ -37,7 +37,7 @@
   var baseDirection="../../../../../web/";
   </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();" >
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();" >
 <FORM id="form" method="POST" action="ImportBudget.html" name="frmMain">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_process/ImportOrderServlet.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_process/ImportOrderServlet.html	Mon Jan 21 18:49:59 2008 +0000
@@ -39,7 +39,7 @@
   var baseDirection="../../../../../web/";
   </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();" >
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();" >
 <FORM id="form" method="POST" action="ImportOrderServlet.html" name="frmMain">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_process/ImportProductServlet.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_process/ImportProductServlet.html	Mon Jan 21 18:49:59 2008 +0000
@@ -40,7 +40,7 @@
   </SCRIPT>
   
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();" >
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();" >
 <FORM id="form" method="POST" action="ImportProduct.html" name="frmMain">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_process/ImportTaxServlet.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_process/ImportTaxServlet.html	Mon Jan 21 18:49:59 2008 +0000
@@ -40,7 +40,7 @@
   </SCRIPT>
   
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();" >
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();" >
 <FORM id="form" method="POST" action="ImportTax.html" name="frmMain">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_process/PrintInvoices.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_process/PrintInvoices.html	Mon Jan 21 18:49:59 2008 +0000
@@ -53,11 +53,11 @@
 
 
 <SCRIPT language="JavaScript" type="text/javascript">
-arrTeclas = new Array();
-arrTeclas[0] = new Teclas("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpBpartnerId_DES', document.frmMain.inpBpartnerId_DES.value, 'Command', 'KEY');", "inpBpartnerId_DES", "null");
-arrTeclas[1] = new Teclas("ENTER", "submitCommandForm('FIND', false, null, '../RptC_Invoice.pdf', 'PDF');", null, null);
-arrTeclas[2] = new Teclas("M", "mostrarMenu();", null, "ctrlKey");
-activarControlTeclas();
+keyArray = new Array();
+keyArray[0] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpBpartnerId_DES', document.frmMain.inpBpartnerId_DES.value, 'Command', 'KEY');", "inpBpartnerId_DES", "null");
+keyArray[1] = new keyArrayItem("ENTER", "submitCommandForm('FIND', false, null, '../RptC_Invoice.pdf', 'PDF');", null, null);
+keyArray[2] = new keyArrayItem("M", "mostrarMenu();", null, "ctrlKey");
+enableShortcuts();
 
 function onloadFunctions() {
 	new TypeAheadCombo("inpOrg");
--- a/src/org/openbravo/erpCommon/ad_process/RequestReOpen.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_process/RequestReOpen.html	Mon Jan 21 18:49:59 2008 +0000
@@ -25,13 +25,13 @@
 <SCRIPT language="JavaScript" src="../../../../../web/js/searchs.js" type="text/javascript"></SCRIPT>
 <SCRIPT language="JavaScript" type="text/javascript" id="paramDirection">var baseDirection = "http://yourSite/web/";</SCRIPT>
 <SCRIPT language="JavaScript" type="text/javascript">
-var arrTeclas = new Array();
-function activarTeclas() {
-arrTeclas[0] = new Teclas("ENTER", "openSearch(null, null, '../info/Request_FS.html', null, false, 'frmMain', 'inprRequestId', 'inprRequestId_D', document.frmMain.inprRequestId_D.value, 'Command', 'KEY');", "inprRequestId_D", "null");
+var keyArray = new Array();
+function enableLocalShortcuts() {
+keyArray[0] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/Request_FS.html', null, false, 'frmMain', 'inprRequestId', 'inprRequestId_D', document.frmMain.inprRequestId_D.value, 'Command', 'KEY');", "inprRequestId_D", "null");
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="activarTeclas();xx"  id="body">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="enableLocalShortcuts();xx"  id="body">
 <span id="paramToolBar">toolbar</span> <BR></BR>
 <TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
   <TR> 
--- a/src/org/openbravo/erpCommon/ad_process/SendMailText.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_process/SendMailText.html	Mon Jan 21 18:49:59 2008 +0000
@@ -73,7 +73,7 @@
             }
         </SCRIPT>
     </HEAD>
-    <BODY onload="onloadFunctions();focoPrimerControl(null, 'inpMailTemplate');xx();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" id="paramBody">
+    <BODY onload="onloadFunctions();setFocusFirstControl(null, 'inpMailTemplate');xx();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" id="paramBody">
         <FORM id="form" method="POST" action="SendMailText.html" name="frmMain">
             <INPUT type="hidden" name="Command"></INPUT>
             <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/ABCbPartner.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ABCbPartner.html	Mon Jan 21 18:49:59 2008 +0000
@@ -53,7 +53,7 @@
       }
     </SCRIPT>
   </HEAD>
-  <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+  <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
     <FORM method="POST" action="ABCbPartner.html" name="frmMain"  id="form">
       <INPUT type="hidden" name="Command"></INPUT>
       <input type="hidden" name="inpLastFieldChanged" value="">
--- a/src/org/openbravo/erpCommon/ad_reports/ABCproduct.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ABCproduct.html	Mon Jan 21 18:49:59 2008 +0000
@@ -59,7 +59,7 @@
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 
 <FORM method="POST" action="ABCproduct.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/GeneralAccountingReports.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/GeneralAccountingReports.html	Mon Jan 21 18:49:59 2008 +0000
@@ -85,7 +85,7 @@
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
       <FORM method="POST" action="GeneralAccountingReports.pdf" name="frmMain" target="_blank" id="form">
         <input type="hidden" name="Command" />
         <input type="hidden" name="inpLastFieldChanged" value="" />
--- a/src/org/openbravo/erpCommon/ad_reports/GenerateModel347.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/GenerateModel347.html	Mon Jan 21 18:49:59 2008 +0000
@@ -74,7 +74,7 @@
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="GenerateModel347.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <input type="hidden" name="inpLastFieldChanged" value="">
--- a/src/org/openbravo/erpCommon/ad_reports/MInOutTraceReports.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/MInOutTraceReports.html	Mon Jan 21 18:49:59 2008 +0000
@@ -72,12 +72,12 @@
 }
 
 function onloadFunctions(){
-  arrTeclas[arrTeclas.length] = new Teclas("ENTER", "openSearch(null, null, '../info/ProductComplete_FS.html', null, false, 'frmMain', 'inpmProductId', 'inpmProductId_D', inputValue(document.frmMain.inpmProductId_D), 'inpIDValue', inputValue(document.frmMain.inpmProductId), 'Command', 'KEY');", "inpmProductId_D", "null");
+  keyArray[keyArray.length] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/ProductComplete_FS.html', null, false, 'frmMain', 'inpmProductId', 'inpmProductId_D', inputValue(document.frmMain.inpmProductId_D), 'inpIDValue', inputValue(document.frmMain.inpmProductId), 'Command', 'KEY');", "inpmProductId_D", "null");
 }
 
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 
 <FORM method="POST" action="MInOutTraceReports.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportAccountingCountDimensionalAnalysesFilter.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportAccountingCountDimensionalAnalysesFilter.html	Mon Jan 21 18:49:59 2008 +0000
@@ -157,12 +157,12 @@
 function onloadFunctions() {
   new TypeAheadCombo("inpOrg");
   new TypeAheadCombo("inpAccountingCount");
-  arrTeclas[arrTeclas.length] = new Teclas("ENTER", "openSearch(null, null, '../info/Project_FS.html', null, false, 'frmMain', 'inpcProjectId', 'inpcProjectId_D', inputValue(document.frmMain.inpcProjectId_D), 'inpIDValue', 'WindowID', inputValue(document.frmMain.inpcProjectId), 'Command', 'KEY');", "inpcProjectId_D", "null"); 
+  keyArray[keyArray.length] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/Project_FS.html', null, false, 'frmMain', 'inpcProjectId', 'inpcProjectId_D', inputValue(document.frmMain.inpcProjectId_D), 'inpIDValue', 'WindowID', inputValue(document.frmMain.inpcProjectId), 'Command', 'KEY');", "inpcProjectId_D", "null"); 
 
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportAccountingCountDimensionalAnalysesFilter.html" name="frmMain" target="_self" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <input type="hidden" name="inpLastFieldChanged" value="">
--- a/src/org/openbravo/erpCommon/ad_reports/ReportBank.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportBank.html	Mon Jan 21 18:49:59 2008 +0000
@@ -66,7 +66,7 @@
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportBank.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <INPUT type="hidden" name="inpAuxd" value="" id="functionSumAux1"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportBankJR.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportBankJR.html	Mon Jan 21 18:49:59 2008 +0000
@@ -71,7 +71,7 @@
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportBankJR.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <INPUT type="hidden" name="inpAuxd" value="" id="functionSumAux1"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportBudgetGenerateExcel.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportBudgetGenerateExcel.html	Mon Jan 21 18:49:59 2008 +0000
@@ -53,7 +53,7 @@
 </script> 
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportBudgetGenerateExcel.html" name="frmMain"  id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <input type="hidden" name="inpLastFieldChanged" value="">
--- a/src/org/openbravo/erpCommon/ad_reports/ReportCash.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportCash.html	Mon Jan 21 18:49:59 2008 +0000
@@ -74,7 +74,7 @@
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportCash.html" name="frmMain" id="form"">
   <INPUT type="hidden" name="Command"></INPUT>
   <INPUT type="hidden" name="inpAuxd" value="" id="functionSumAux1"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportCashEdit.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportCashEdit.html	Mon Jan 21 18:49:59 2008 +0000
@@ -56,7 +56,7 @@
 
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" >
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" >
   <FORM method="POST" action="ReportCash.html" name="frmMain" id="form">
     <INPUT type="hidden" name="Command"></INPUT>
     <INPUT type="hidden" name="inpAuxd" value="" id="functionSumAux1"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportCashFlow.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportCashFlow.html	Mon Jan 21 18:49:59 2008 +0000
@@ -90,7 +90,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();displayCombos();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();displayCombos();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM id="form" method="POST" action="ReportCashFlow.html" name="frmMain">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportCashFlow_F1.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportCashFlow_F1.html	Mon Jan 21 18:49:59 2008 +0000
@@ -90,7 +90,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();displayCombos();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();displayCombos();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM id="form" method="POST" action="ReportCashFlow_F1.html" name="frmMain">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportCashJR.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportCashJR.html	Mon Jan 21 18:49:59 2008 +0000
@@ -74,7 +74,7 @@
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportCashJR.html" name="frmMain" id="form"">
   <INPUT type="hidden" name="Command"></INPUT>
   <INPUT type="hidden" name="inpAuxd" value="" id="functionSumAux1"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportCashflowForecast.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportCashflowForecast.html	Mon Jan 21 18:49:59 2008 +0000
@@ -59,7 +59,7 @@
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportCashflowForecast.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <INPUT type="hidden" name="inpcDebtPaymentId"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportDebtPayment.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportDebtPayment.html	Mon Jan 21 18:49:59 2008 +0000
@@ -58,11 +58,11 @@
 
 function onloadFunctions() {
   new TypeAheadCombo("inpCPaymentRuleId");
-  arrTeclas[arrTeclas.length] = new Teclas("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', null, false, 'frmMain', 'inpcBpartnerId', 'inpBpartnerId_DES', inputValue(document.frmMain.inpBpartnerId_DES), 'inpIDValue', inputValue(document.frmMain.inpcBpartnerId), 'Command', 'KEY');", "inpBpartnerId_DES", "null");
+  keyArray[keyArray.length] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', null, false, 'frmMain', 'inpcBpartnerId', 'inpBpartnerId_DES', inputValue(document.frmMain.inpBpartnerId_DES), 'inpIDValue', inputValue(document.frmMain.inpcBpartnerId), 'Command', 'KEY');", "inpBpartnerId_DES", "null");
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportDebtPayment.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <INPUT type="hidden" name="inpEntry" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportDebtPaymentTrack.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportDebtPaymentTrack.html	Mon Jan 21 18:49:59 2008 +0000
@@ -68,7 +68,7 @@
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportDebtPaymentTrack.html" name="frmMain" id="form">
  <INPUT type="hidden" name="Command"></INPUT>
   <input type="hidden" name="inpLastFieldChanged" value="">
--- a/src/org/openbravo/erpCommon/ad_reports/ReportExpense.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportExpense.html	Mon Jan 21 18:49:59 2008 +0000
@@ -59,7 +59,7 @@
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportExpense.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <INPUT type="hidden" name="inpsTimeexpenselineId"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedger.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedger.html	Mon Jan 21 18:49:59 2008 +0000
@@ -85,7 +85,7 @@
 }
 </SCRIPT>
 </HEAD>
-<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportGeneralLedger.html" name="frmMain" target="_self" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <INPUT type="hidden" name="inpFactAcctGroupId"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedgerJournal.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedgerJournal.html	Mon Jan 21 18:49:59 2008 +0000
@@ -71,7 +71,7 @@
 }
 </SCRIPT>
 </HEAD>
-<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportGeneralLedgerJournal.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <INPUT type="hidden" name="inpFactAcctGroupId"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportGuaranteeDateJR.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportGuaranteeDateJR.html	Mon Jan 21 18:49:59 2008 +0000
@@ -65,11 +65,11 @@
 
 function onloadFunctions() {
 	new TypeAheadCombo("inpmWarehouseId");
-  arrTeclas[arrTeclas.length] = new Teclas("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', null, false, 'frmMain', 'inpcBPartnerId', 'inpBpartnerId_DES', inputValue(document.frmMain.inpBpartnerId_DES), 'inpIDValue', inputValue(document.frmMain.inpcBpartnerId), 'Command', 'KEY');", "inpBpartnerId_DES", "null");
+  keyArray[keyArray.length] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', null, false, 'frmMain', 'inpcBPartnerId', 'inpBpartnerId_DES', inputValue(document.frmMain.inpBpartnerId_DES), 'inpIDValue', inputValue(document.frmMain.inpcBpartnerId), 'Command', 'KEY');", "inpBpartnerId_DES", "null");
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportGuaranteeDateJR.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <INPUT type="hidden" name="inpmProductId"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportInventory.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportInventory.html	Mon Jan 21 18:49:59 2008 +0000
@@ -56,7 +56,7 @@
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportInventory.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerDimensionalAnalysesFilter.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerDimensionalAnalysesFilter.html	Mon Jan 21 18:49:59 2008 +0000
@@ -102,7 +102,7 @@
 }
 </SCRIPT>
 </HEAD>
-<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportInvoiceCustomerDimensionalAnalysesEdition.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <INPUT type="hidden" name="inpcBPartnerId" value=""></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerDimensionalAnalysesJRFilter.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerDimensionalAnalysesJRFilter.html	Mon Jan 21 18:49:59 2008 +0000
@@ -94,7 +94,7 @@
 }
 </SCRIPT>
 </HEAD>
-<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportInvoiceCustomerDimensionalAnalysesJREdition.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <INPUT type="hidden" name="inpcBPartnerId" value=""></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerFilter.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerFilter.html	Mon Jan 21 18:49:59 2008 +0000
@@ -61,11 +61,11 @@
 }
 function onloadFunctions() {
  // new TypeAheadCombo("inpProjectpublic");
-  arrTeclas[arrTeclas.length] = new Teclas("ENTER", "openSearch(null, null, '../info/Project_FS.html', null, false, 'frmMain', 'inpcProjectId', 'inpcProjectId_D', inputValue(document.frmMain.inpcProjectId_D), 'inpIDValue', 'WindowID', inputValue(document.frmMain.inpcProjectId), 'Command', 'KEY');", "inpcProjectId_D", "null"); 
+  keyArray[keyArray.length] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/Project_FS.html', null, false, 'frmMain', 'inpcProjectId', 'inpcProjectId_D', inputValue(document.frmMain.inpcProjectId_D), 'inpIDValue', 'WindowID', inputValue(document.frmMain.inpcProjectId), 'Command', 'KEY');", "inpcProjectId_D", "null"); 
 }
 </script>
 </head>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 
 <FORM method="POST" action="ReportInvoiceCustomerEdition.html" name="frmMain" id="form">
      <INPUT type="hidden" name="Command">
--- a/src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerFilterJR.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerFilterJR.html	Mon Jan 21 18:49:59 2008 +0000
@@ -70,11 +70,11 @@
 }
 function onloadFunctions() {
  // new TypeAheadCombo("inpProjectpublic");
-  arrTeclas[arrTeclas.length] = new Teclas("ENTER", "openSearch(null, null, '../info/Project_FS.html', null, false, 'frmMain', 'inpcProjectId', 'inpcProjectId_D', inputValue(document.frmMain.inpcProjectId_D), 'inpIDValue', 'WindowID', inputValue(document.frmMain.inpcProjectId), 'Command', 'KEY');", "inpcProjectId_D", "null"); 
+  keyArray[keyArray.length] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/Project_FS.html', null, false, 'frmMain', 'inpcProjectId', 'inpcProjectId_D', inputValue(document.frmMain.inpcProjectId_D), 'inpIDValue', 'WindowID', inputValue(document.frmMain.inpcProjectId), 'Command', 'KEY');", "inpcProjectId_D", "null"); 
 }
 </script>
 </head>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 
 <FORM method="POST" action="ReportInvoiceCustomerFilterJR.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportInvoiceDiscount.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportInvoiceDiscount.html	Mon Jan 21 18:49:59 2008 +0000
@@ -69,7 +69,7 @@
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportInvoiceDiscount.html" name="frmMain"  id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/src/org/openbravo/erpCommon/ad_reports/ReportInvoiceDiscountJR.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportInvoiceDiscountJR.html	Mon Jan 21 18:49:59 2008 +0000
@@ -69,7 +69,7 @@
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportInvoiceDiscountJR.html" name="frmMain"  id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/src/org/openbravo/erpCommon/ad_reports/ReportInvoiceVendorDimensionalAnalysesFilterJR.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportInvoiceVendorDimensionalAnalysesFilterJR.html	Mon Jan 21 18:49:59 2008 +0000
@@ -93,7 +93,7 @@
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportInvoiceVendorDimensionalAnalysesFilterJR.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/src/org/openbravo/erpCommon/ad_reports/ReportInvoiceVendorFilterJR.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportInvoiceVendorFilterJR.html	Mon Jan 21 18:49:59 2008 +0000
@@ -68,12 +68,12 @@
 }
 
 function onloadFunctions(){
-  arrTeclas = new Array(new Teclas("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', null, false, 'frmMain', 'inpcBPartnerId', 'inpBpartnerId_DES', inputValue(document.frmMain.inpBpartnerId_DES), 'inpIDValue', inputValue(document.frmMain.inpcBpartnerId), 'Command', 'KEY');", "inpBpartnerId_DES", "null"),
-  new Teclas("ENTER", "openSearch(null, null, '../info/Project_FS.html', null, false, 'frmMain', 'inpcProjectId', 'inpcProjectId_D', inputValue(document.frmMain.inpcProjectId_D), 'inpIDValue','WindowID', inputValue(document.frmMain.inpcProjectId), 'Command', 'KEY');", "inpcProjectId_D", "null")); 
+  keyArray = new Array(new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', null, false, 'frmMain', 'inpcBPartnerId', 'inpBpartnerId_DES', inputValue(document.frmMain.inpBpartnerId_DES), 'inpIDValue', inputValue(document.frmMain.inpcBpartnerId), 'Command', 'KEY');", "inpBpartnerId_DES", "null"),
+  new keyArrayItem("ENTER", "openSearch(null, null, '../info/Project_FS.html', null, false, 'frmMain', 'inpcProjectId', 'inpcProjectId_D', inputValue(document.frmMain.inpcProjectId_D), 'inpIDValue','WindowID', inputValue(document.frmMain.inpcProjectId), 'Command', 'KEY');", "inpcProjectId_D", "null")); 
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportInvoiceVendorFilterJR.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/src/org/openbravo/erpCommon/ad_reports/ReportInvoices.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportInvoices.html	Mon Jan 21 18:49:59 2008 +0000
@@ -72,7 +72,7 @@
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 
 <FORM method="POST" action="ReportInvoices.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportInvoicesJR.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportInvoicesJR.html	Mon Jan 21 18:49:59 2008 +0000
@@ -72,7 +72,7 @@
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 
 <FORM method="POST" action="ReportInvoicesJR.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportMaterialDimensionalAnalysesFilterJR.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportMaterialDimensionalAnalysesFilterJR.html	Mon Jan 21 18:49:59 2008 +0000
@@ -91,7 +91,7 @@
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportMaterialDimensionalAnalysesFilterJR.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/src/org/openbravo/erpCommon/ad_reports/ReportMaterialTransactionEditionJR.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportMaterialTransactionEditionJR.html	Mon Jan 21 18:49:59 2008 +0000
@@ -70,13 +70,13 @@
 function onloadFunctions() {
 	new TypeAheadCombo("inpmWarehouseId");
   //new TypeAheadCombo("inpcProjectId");
-  arrTeclas = new Array(new Teclas("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', null, false, 'frmMain', 'inpcBPartnerId', 'inpBpartnerId_DES', inputValue(document.frmMain.inpBpartnerId_DES), 'inpIDValue', inputValue(document.frmMain.inpcBpartnerId), 'Command', 'KEY');", "inpBpartnerId_DES", "null"), new Teclas ("ENTER", "openSearch(null, null, '../info/Project_FS.html', null, false, 'frmMain', 'inpcProjectId', 'inpcProjectId_D', inputValue(document.frmMain.inpcProjectId_D), 'inpIDValue', 'WindowID', inputValue(document.frmMain.inpcProjectId), 'Command', 'KEY');", "inpcProjectId_D", "null"));
+  keyArray = new Array(new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', null, false, 'frmMain', 'inpcBPartnerId', 'inpBpartnerId_DES', inputValue(document.frmMain.inpBpartnerId_DES), 'inpIDValue', inputValue(document.frmMain.inpcBpartnerId), 'Command', 'KEY');", "inpBpartnerId_DES", "null"), new keyArrayItem("ENTER", "openSearch(null, null, '../info/Project_FS.html', null, false, 'frmMain', 'inpcProjectId', 'inpcProjectId_D', inputValue(document.frmMain.inpcProjectId_D), 'inpIDValue', 'WindowID', inputValue(document.frmMain.inpcProjectId), 'Command', 'KEY');", "inpcProjectId_D", "null"));
 }
 
 
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportMaterialTransactionEditionJR.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/src/org/openbravo/erpCommon/ad_reports/ReportMaterialTransactionFilter.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportMaterialTransactionFilter.html	Mon Jan 21 18:49:59 2008 +0000
@@ -70,13 +70,13 @@
 function onloadFunctions() {
 	new TypeAheadCombo("inpmWarehouseId");
   //new TypeAheadCombo("inpcProjectId");
-  arrTeclas = new Array(new Teclas("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', null, false, 'frmMain', 'inpcBPartnerId', 'inpBpartnerId_DES', inputValue(document.frmMain.inpBpartnerId_DES), 'inpIDValue', inputValue(document.frmMain.inpcBpartnerId), 'Command', 'KEY');", "inpBpartnerId_DES", "null"), new Teclas ("ENTER", "openSearch(null, null, '../info/Project_FS.html', null, false, 'frmMain', 'inpcProjectId', 'inpcProjectId_D', inputValue(document.frmMain.inpcProjectId_D), 'inpIDValue', 'WindowID', inputValue(document.frmMain.inpcProjectId), 'Command', 'KEY');", "inpcProjectId_D", "null"));
+  keyArray = new Array(new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', null, false, 'frmMain', 'inpcBPartnerId', 'inpBpartnerId_DES', inputValue(document.frmMain.inpBpartnerId_DES), 'inpIDValue', inputValue(document.frmMain.inpcBpartnerId), 'Command', 'KEY');", "inpBpartnerId_DES", "null"), new keyArrayItem("ENTER", "openSearch(null, null, '../info/Project_FS.html', null, false, 'frmMain', 'inpcProjectId', 'inpcProjectId_D', inputValue(document.frmMain.inpcProjectId_D), 'inpIDValue', 'WindowID', inputValue(document.frmMain.inpcProjectId), 'Command', 'KEY');", "inpcProjectId_D", "null"));
 }
 
 
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportMaterialTransactionEdition.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/src/org/openbravo/erpCommon/ad_reports/ReportNotPosted.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportNotPosted.html	Mon Jan 21 18:49:59 2008 +0000
@@ -68,7 +68,7 @@
 }
 
 </SCRIPT></HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportNotPosted.html" name="frmMain" id="form">
   <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
     <tr>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportOffer.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportOffer.html	Mon Jan 21 18:49:59 2008 +0000
@@ -136,7 +136,7 @@
 </SCRIPT>
 
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportOffer.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <INPUT type="hidden" name="inpToday" id="paramToday" value=""></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportOrderNotInvoiceFilterJR.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportOrderNotInvoiceFilterJR.html	Mon Jan 21 18:49:59 2008 +0000
@@ -56,11 +56,11 @@
 function onloadFunctions() {
  new TypeAheadCombo("inpInvoiceRule");
  new TypeAheadCombo("inpOrg");
- /*arrTeclas[arrTeclas.length] = new Teclas("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', null, false, 'frmMain', 'inpcBPartnerId', 'inpBpartnerId_DES', inputValue(document.frmMain.inpBpartnerId_DES), 'inpIDValue', inputValue(document.frmMain.inpcBPartnerId), 'Command', 'KEY');", "inpBpartnerId_DES", "null");*/
+ /*keyArray[keyArray.length] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', null, false, 'frmMain', 'inpcBPartnerId', 'inpBpartnerId_DES', inputValue(document.frmMain.inpBpartnerId_DES), 'inpIDValue', inputValue(document.frmMain.inpcBPartnerId), 'Command', 'KEY');", "inpBpartnerId_DES", "null");*/
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportOrderNotInvoiceFilterJR.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/src/org/openbravo/erpCommon/ad_reports/ReportPendingProductionJr.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportPendingProductionJr.html	Mon Jan 21 18:49:59 2008 +0000
@@ -51,7 +51,7 @@
         dojo.hostenv.writeIncludes(); //makes debugging in Venkman possible
       </script>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl(); openServletNewWindow('FIND', false, 'ReportPendingProductionJr.jrxml', 'ReportPendingProductionJr', null, false, '700', '1000', true);"
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl(); openServletNewWindow('FIND', false, 'ReportPendingProductionJr.jrxml', 'ReportPendingProductionJr', null, false, '700', '1000', true);"
     onresize="resizeArea();">
 <FORM method="POST" action="ReportPendingProduction.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportPricelist.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportPricelist.html	Mon Jan 21 18:49:59 2008 +0000
@@ -78,7 +78,7 @@
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportPricelist.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <INPUT type="hidden" name="inpmProductId"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportProductMovement.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportProductMovement.html	Mon Jan 21 18:49:59 2008 +0000
@@ -73,11 +73,11 @@
 }
 
 function onloadFunctions(){
-  arrTeclas = new Array(new Teclas("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', null, false, 'frmMain', 'inpcBPartnerId', 'inpBpartnerId_DES', inputValue(document.frmMain.inpBpartnerId_DES), 'inpIDValue', inputValue(document.frmMain.inpcBpartnerId), 'Command', 'KEY');", "inpBpartnerId_DES", "null"), new Teclas("ENTER", "openSearch(null, null, '../info/ProductComplete_FS.html', null, false, 'frmMain', 'inpmProductId', 'inpmProductId_D', inputValue(document.frmMain.inpmProductId_D), 'inpIDValue', inputValue(document.frmMain.inpmProductId), 'Command', 'KEY');", "inpmProductId_D", "null"));
+  keyArray = new Array(new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', null, false, 'frmMain', 'inpcBPartnerId', 'inpBpartnerId_DES', inputValue(document.frmMain.inpBpartnerId_DES), 'inpIDValue', inputValue(document.frmMain.inpcBpartnerId), 'Command', 'KEY');", "inpBpartnerId_DES", "null"), new keyArrayItem("ENTER", "openSearch(null, null, '../info/ProductComplete_FS.html', null, false, 'frmMain', 'inpmProductId', 'inpmProductId_D', inputValue(document.frmMain.inpmProductId_D), 'inpIDValue', inputValue(document.frmMain.inpmProductId), 'Command', 'KEY');", "inpmProductId_D", "null"));
   }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportProductMovement.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <INPUT type="hidden" name="inpmInoutId"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportProduction.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportProduction.html	Mon Jan 21 18:49:59 2008 +0000
@@ -76,7 +76,7 @@
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportProduction.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/src/org/openbravo/erpCommon/ad_reports/ReportProductionCost.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportProductionCost.html	Mon Jan 21 18:49:59 2008 +0000
@@ -116,11 +116,11 @@
 }
 
 function onloadFunctions(){
-  arrTeclas[arrTeclas.length] = new Teclas("ENTER", "openSearch(null, null, '../info/ProductComplete_FS.html', null, false, 'frmMain', 'inpmProductId', 'inpmProductId_D', inputValue(document.frmMain.inpmProductId_D), 'inpIDValue', inputValue(document.frmMain.inpmProductId), 'Command', 'KEY');", "inpmProductId_D", "null");
+  keyArray[keyArray.length] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/ProductComplete_FS.html', null, false, 'frmMain', 'inpmProductId', 'inpmProductId_D', inputValue(document.frmMain.inpmProductId_D), 'inpIDValue', inputValue(document.frmMain.inpmProductId), 'Command', 'KEY');", "inpmProductId_D", "null");
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportProductionCost.html" name="frmMain" id="form">
 <INPUT type="hidden" name="Command"></INPUT>
 <input type="hidden" name="inpId" value=""></input>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportProductionJR.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportProductionJR.html	Mon Jan 21 18:49:59 2008 +0000
@@ -76,7 +76,7 @@
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportProductionJR.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/src/org/openbravo/erpCommon/ad_reports/ReportProductionRunJR.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportProductionRunJR.html	Mon Jan 21 18:49:59 2008 +0000
@@ -86,7 +86,7 @@
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportProductionRunJR.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/src/org/openbravo/erpCommon/ad_reports/ReportProjectBuildingSite.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportProjectBuildingSite.html	Mon Jan 21 18:49:59 2008 +0000
@@ -72,7 +72,7 @@
 function onloadFunctions() {
 	//new TypeAheadCombo("inpProjectpublic");
  // new TypeAheadCombo("paramSALESREP");
-  arrTeclas[arrTeclas.length] = new Teclas("ENTER", "openSearch(null, null, '../info/Project_FS.html', null, false, 'frmMain', 'inpcProjectId', 'inpcProjectId_D', inputValue(document.frmMain.inpcProjectId_D), 'inpIDValue', 'WindowID', inputValue(document.frmMain.inpcProjectId), 'Command', 'KEY');", "inpcProjectId_D", "null"); 
+  keyArray[keyArray.length] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/Project_FS.html', null, false, 'frmMain', 'inpcProjectId', 'inpcProjectId_D', inputValue(document.frmMain.inpcProjectId_D), 'inpIDValue', 'WindowID', inputValue(document.frmMain.inpcProjectId), 'Command', 'KEY');", "inpcProjectId_D", "null"); 
 }
 </SCRIPT>
 <SCRIPT language="JavaScript" type="text/javascript" id="paramArrayProduct">
@@ -84,7 +84,7 @@
 );
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportProjectBuildingSite.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <INPUT type="hidden" name="inpcBPartnerId" value=""></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportProjectBuildingSiteJR.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportProjectBuildingSiteJR.html	Mon Jan 21 18:49:59 2008 +0000
@@ -72,7 +72,7 @@
 function onloadFunctions() {
 	//new TypeAheadCombo("inpProjectpublic");
  // new TypeAheadCombo("paramSALESREP");
-  arrTeclas[arrTeclas.length] = new Teclas("ENTER", "openSearch(null, null, '../info/Project_FS.html', null, false, 'frmMain', 'inpcProjectId', 'inpcProjectId_D', inputValue(document.frmMain.inpcProjectId_D), 'inpIDValue', inputValue(document.frmMain.inpcProjectId), 'WindowID', inputValue(document.frmMain.inpwindowId), 'inpc_bpartner_id', inputValue(document.frmMain.inpcBPartnerId), 'Command', 'KEY');", "inpcProjectId_D", "null"); 
+  keyArray[keyArray.length] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/Project_FS.html', null, false, 'frmMain', 'inpcProjectId', 'inpcProjectId_D', inputValue(document.frmMain.inpcProjectId_D), 'inpIDValue', inputValue(document.frmMain.inpcProjectId), 'WindowID', inputValue(document.frmMain.inpwindowId), 'inpc_bpartner_id', inputValue(document.frmMain.inpcBPartnerId), 'Command', 'KEY');", "inpcProjectId_D", "null"); 
 }
 </SCRIPT>
 <SCRIPT language="JavaScript" type="text/javascript" id="paramArrayProduct">
@@ -84,7 +84,7 @@
 );
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportProjectBuildingSiteJR.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <INPUT type="hidden" name="inpcBPartnerId" value=""></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportProjectBuildingSitePop.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportProjectBuildingSitePop.html	Mon Jan 21 18:49:59 2008 +0000
@@ -30,10 +30,10 @@
 </SCRIPT>
 <SCRIPT language="JavaScript" type="text/javascript">
 
-arrTeclas = new Array();
-arrTeclas[0] = new Teclas("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBPartnerId', 'inpBpartnerId_DES', document.frmMain.inpBpartnerId_DES.value, 'Command', 'KEY');", "inpBpartnerId_DES", "null");
-arrTeclas[1] = new Teclas("B", "submitCommandForm('FIND', true);", null, "ctrlKey")
-activarControlTeclas();
+keyArray = new Array();
+keyArray[0] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBPartnerId', 'inpBpartnerId_DES', document.frmMain.inpBpartnerId_DES.value, 'Command', 'KEY');", "inpBpartnerId_DES", "null");
+keyArray[1] = new keyArrayItem("B", "submitCommandForm('FIND', true);", null, "ctrlKey")
+enableShortcuts();
 
 
 </SCRIPT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportProjectProfitabilityJR.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportProjectProfitabilityJR.html	Mon Jan 21 18:49:59 2008 +0000
@@ -68,11 +68,11 @@
 }
 function onloadFunctions() {
   //new TypeAheadCombo("paramOrg");
-  arrTeclas = new Array(new Teclas("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', null, false, 'frmMain', 'inpcBPartnerId', 'inpBpartnerId_DES', inputValue(document.frmMain.inpBpartnerId_DES), 'inpIDValue', inputValue(document.frmMain.inpcBpartnerId), 'Command', 'KEY');", "inpBpartnerId_DES", "null"), new Teclas("ENTER", "openSearch(null, null, '../info/Project_FS.html', null, false, 'frmMain', 'inpcProjectId', 'inpcProjectId_D', inputValue(document.frmMain.inpcProjectId_D), 'inpIDValue', inputValue(document.frmMain.inpcProjectId), 'WindowID', inputValue(document.frmMain.inpwindowId), 'inpc_bpartner_id', inputValue(document.frmMain.inpcBPartnerId), 'Command', 'KEY');", "inpcProjectId_D", "null"));
+  keyArray = new Array(new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', null, false, 'frmMain', 'inpcBPartnerId', 'inpBpartnerId_DES', inputValue(document.frmMain.inpBpartnerId_DES), 'inpIDValue', inputValue(document.frmMain.inpcBpartnerId), 'Command', 'KEY');", "inpBpartnerId_DES", "null"), new keyArrayItem("ENTER", "openSearch(null, null, '../info/Project_FS.html', null, false, 'frmMain', 'inpcProjectId', 'inpcProjectId_D', inputValue(document.frmMain.inpcProjectId_D), 'inpIDValue', inputValue(document.frmMain.inpcProjectId), 'WindowID', inputValue(document.frmMain.inpwindowId), 'inpc_bpartner_id', inputValue(document.frmMain.inpcBPartnerId), 'Command', 'KEY');", "inpcProjectId_D", "null"));
 }
 </SCRIPT>
   </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
     <FORM method="POST" action="ReportProjectProfitabilityJR.html" name="frmMain" id="form">
       	<INPUT type="hidden" name="Command"></INPUT>
         <INPUT type="hidden" name="inpwindowId" id="inpwindowId" value="184"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportPurchaseDimensionalAnalysesFilterJR.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportPurchaseDimensionalAnalysesFilterJR.html	Mon Jan 21 18:49:59 2008 +0000
@@ -90,7 +90,7 @@
 }
 </SCRIPT>
 </HEAD>
-<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM id="form" method="POST" action="ReportPurchaseDimensionalAnalysesFilterJR.html" name="frmMain">
   <INPUT type="hidden" name="Command"></INPUT>
   <input type="hidden" name="inpLastFieldChanged" value="">
--- a/src/org/openbravo/erpCommon/ad_reports/ReportRefundInvoiceCustomerDimensionalAnalysesFilter.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportRefundInvoiceCustomerDimensionalAnalysesFilter.html	Mon Jan 21 18:49:59 2008 +0000
@@ -102,7 +102,7 @@
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <TABLE width="100%" border="0" cellspacing="1" cellpadding="0" >
 <TR>
           <TD  width="2%"> <A href="#" onclick="mostrarMenu();return false;" onmouseover="window.status='Menu';return true;" onmouseout="window.status='';return true;" class="TBButton"> 
--- a/src/org/openbravo/erpCommon/ad_reports/ReportRefundSalesDimensionalAnalysesFilter.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportRefundSalesDimensionalAnalysesFilter.html	Mon Jan 21 18:49:59 2008 +0000
@@ -104,7 +104,7 @@
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportRefundSalesDimensionalAnalysesEdition.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/src/org/openbravo/erpCommon/ad_reports/ReportSalesDimensionalAnalyzeJRFilter.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportSalesDimensionalAnalyzeJRFilter.html	Mon Jan 21 18:49:59 2008 +0000
@@ -93,7 +93,7 @@
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportSalesDimensionalAnalyzeJRFilter.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/src/org/openbravo/erpCommon/ad_reports/ReportSalesOrderFilterJR.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportSalesOrderFilterJR.html	Mon Jan 21 18:49:59 2008 +0000
@@ -72,13 +72,13 @@
 function onloadFunctions() {
 	new TypeAheadCombo("inpmWarehouseId");
   //new TypeAheadCombo("inpProjectpublic");
-  arrTeclas[arrTeclas.length] = new Teclas("ENTER", "openSearch(null, null, '../info/Project_FS.html', null, false, 'frmMain', 'inpcProjectId', 'inpcProjectId_D', inputValue(document.frmMain.inpcProjectId_D), 'inpIDValue', 'WindowID', inputValue(document.frmMain.inpcProjectId), 'Command', 'KEY');", "inpcProjectId_D", "null");
+  keyArray[keyArray.length] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/Project_FS.html', null, false, 'frmMain', 'inpcProjectId', 'inpcProjectId_D', inputValue(document.frmMain.inpcProjectId_D), 'inpIDValue', 'WindowID', inputValue(document.frmMain.inpcProjectId), 'Command', 'KEY');", "inpcProjectId_D", "null");
   }
 
   
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportSalesOrderFilterJR.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <INPUT type="hidden" name="inpcBPartnerId" value=""></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportSalesOrderInvoicedJasper.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportSalesOrderInvoicedJasper.html	Mon Jan 21 18:49:59 2008 +0000
@@ -76,7 +76,7 @@
  // new TypeAheadCombo("inpProjectkind");
 //  new TypeAheadCombo("inpProjectpublic");
  // new TypeAheadCombo("inpProductCategory2");
-  arrTeclas = new Array(new Teclas("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', null, false, 'frmMain', 'inpcBpartnerId', 'inpBpartnerId_DES', inputValue(document.frmMain.inpBpartnerId_DES), 'inpIDValue', inputValue(document.frmMain.inpcBpartnerId), 'Command', 'KEY');", "inpBpartnerId_DES", "null"),new Teclas("ENTER", "openSearch(null, null, '../info/Project_FS.html', null, false, 'frmMain', 'inpcProjectId', 'inpcProjectId_D', inputValue(document.frmMain.inpcProjectId_D), 'inpIDValue', 'WindowID', inputValue(document.frmMain.inpcProjectId), 'Command', 'KEY');", "inpcProjectId_D", "null"), new Teclas("ENTER", "openSearch(null, null, '../info/ProductComplete_FS.html', null, false, 'frmMain', 'inpmProductId', 'inpmProductId_D', inputValue(document.frmMain.inpmProductId_D), 'inpIDValue', inputValue(document.frmMain.inpmProductId), 'Command', 'KEY');", "inpmProductId_D", "null"));
+  keyArray = new Array(new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', null, false, 'frmMain', 'inpcBpartnerId', 'inpBpartnerId_DES', inputValue(document.frmMain.inpBpartnerId_DES), 'inpIDValue', inputValue(document.frmMain.inpcBpartnerId), 'Command', 'KEY');", "inpBpartnerId_DES", "null"),new keyArrayItem("ENTER", "openSearch(null, null, '../info/Project_FS.html', null, false, 'frmMain', 'inpcProjectId', 'inpcProjectId_D', inputValue(document.frmMain.inpcProjectId_D), 'inpIDValue', 'WindowID', inputValue(document.frmMain.inpcProjectId), 'Command', 'KEY');", "inpcProjectId_D", "null"), new keyArrayItem("ENTER", "openSearch(null, null, '../info/ProductComplete_FS.html', null, false, 'frmMain', 'inpmProductId', 'inpmProductId_D', inputValue(document.frmMain.inpmProductId_D), 'inpIDValue', inputValue(document.frmMain.inpmProductId), 'Command', 'KEY');", "inpmProductId_D", "null"));
 }
 </SCRIPT>
 <SCRIPT language="JavaScript" type="text/javascript" id="paramArrayProduct">
@@ -88,7 +88,7 @@
 );
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportSalesOrderInvoicedJasper.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/src/org/openbravo/erpCommon/ad_reports/ReportSalesOrderOpenItem.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportSalesOrderOpenItem.html	Mon Jan 21 18:49:59 2008 +0000
@@ -56,7 +56,7 @@
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportSalesOrderOpenItem.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <INPUT type="hidden" name="inpcCashlineId"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportSalesOrderOpenItemJR.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportSalesOrderOpenItemJR.html	Mon Jan 21 18:49:59 2008 +0000
@@ -56,7 +56,7 @@
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportSalesOrderOpenItemJR.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <INPUT type="hidden" name="inpcCashlineId"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportSalesOrderProvidedJR.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportSalesOrderProvidedJR.html	Mon Jan 21 18:49:59 2008 +0000
@@ -74,7 +74,7 @@
  // new TypeAheadCombo("inpProjectkind");
 //  new TypeAheadCombo("inpProjectpublic");
  // new TypeAheadCombo("inpProductCategory2");
-  arrTeclas = new Array(new Teclas("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', null, false, 'frmMain', 'inpcBpartnerId', 'inpBpartnerId_DES', inputValue(document.frmMain.inpBpartnerId_DES), 'inpIDValue', inputValue(document.frmMain.inpcBpartnerId), 'Command', 'KEY');", "inpBpartnerId_DES", "null"),new Teclas("ENTER", "openSearch(null, null, '../info/Project_FS.html', null, false, 'frmMain', 'inpcProjectId', 'inpcProjectId_D', inputValue(document.frmMain.inpcProjectId_D), 'inpIDValue', 'WindowID', inputValue(document.frmMain.inpcProjectId), 'Command', 'KEY');", "inpcProjectId_D", "null"), new Teclas("ENTER", "openSearch(null, null, '../info/ProductComplete_FS.html', null, false, 'frmMain', 'inpmProductId', 'inpmProductId_D', inputValue(document.frmMain.inpmProductId_D), 'inpIDValue', inputValue(document.frmMain.inpmProductId), 'Command', 'KEY');", "inpmProductId_D", "null"));
+  keyArray = new Array(new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', null, false, 'frmMain', 'inpcBpartnerId', 'inpBpartnerId_DES', inputValue(document.frmMain.inpBpartnerId_DES), 'inpIDValue', inputValue(document.frmMain.inpcBpartnerId), 'Command', 'KEY');", "inpBpartnerId_DES", "null"),new keyArrayItem("ENTER", "openSearch(null, null, '../info/Project_FS.html', null, false, 'frmMain', 'inpcProjectId', 'inpcProjectId_D', inputValue(document.frmMain.inpcProjectId_D), 'inpIDValue', 'WindowID', inputValue(document.frmMain.inpcProjectId), 'Command', 'KEY');", "inpcProjectId_D", "null"), new keyArrayItem("ENTER", "openSearch(null, null, '../info/ProductComplete_FS.html', null, false, 'frmMain', 'inpmProductId', 'inpmProductId_D', inputValue(document.frmMain.inpmProductId_D), 'inpIDValue', inputValue(document.frmMain.inpmProductId), 'Command', 'KEY');", "inpmProductId_D", "null"));
 }
 </SCRIPT>
 <SCRIPT language="JavaScript" type="text/javascript" id="paramArrayProduct">
@@ -86,7 +86,7 @@
 );
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportSalesOrderProvidedJR.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <INPUT type="hidden" name="inpcBpartnerId" value=""></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportShipmentDimensionalAnalyzeJRFilter.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportShipmentDimensionalAnalyzeJRFilter.html	Mon Jan 21 18:49:59 2008 +0000
@@ -103,7 +103,7 @@
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();" id="form">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();" id="form">
 <FORM id="form" method="POST" action="ReportShipmentDimensionalAnalyzeJREdition.html" name="frmMain">
   <INPUT type="hidden" name="Command"></INPUT>
   <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/src/org/openbravo/erpCommon/ad_reports/ReportShipmentFilterJR.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportShipmentFilterJR.html	Mon Jan 21 18:49:59 2008 +0000
@@ -68,11 +68,11 @@
 
 function onloadFunctions() {
 	new TypeAheadCombo("inpmWarehouseId");
-  arrTeclas = new Array(new Teclas("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', null, false, 'frmMain', 'inpcBPartnerId', 'inpBpartnerId_DES', inputValue(document.frmMain.inpBpartnerId_DES), 'inpIDValue', inputValue(document.frmMain.inpcBpartnerId), 'Command', 'KEY');", "inpBpartnerId_DES", "null"),new Teclas("ENTER", "openSearch(null, null, '../info/Project_FS.html', null, false, 'frmMain', 'inpcProjectId', 'inpcProjectId_D', inputValue(document.frmMain.inpcProjectId_D), 'inpIDValue', 'WindowID', inputValue(document.frmMain.inpcProjectId), 'Command', 'KEY');", "inpcProjectId_D", "null"));
+  keyArray = new Array(new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', null, false, 'frmMain', 'inpcBPartnerId', 'inpBpartnerId_DES', inputValue(document.frmMain.inpBpartnerId_DES), 'inpIDValue', inputValue(document.frmMain.inpcBpartnerId), 'Command', 'KEY');", "inpBpartnerId_DES", "null"),new keyArrayItem("ENTER", "openSearch(null, null, '../info/Project_FS.html', null, false, 'frmMain', 'inpcProjectId', 'inpcProjectId_D', inputValue(document.frmMain.inpcProjectId_D), 'inpIDValue', 'WindowID', inputValue(document.frmMain.inpcProjectId), 'Command', 'KEY');", "inpcProjectId_D", "null"));
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportShipmentEditionJR.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/src/org/openbravo/erpCommon/ad_reports/ReportShipper.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportShipper.html	Mon Jan 21 18:49:59 2008 +0000
@@ -73,7 +73,7 @@
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 
 <FORM method="POST" action="ReportShipper.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportStandardCostJRFilter.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportStandardCostJRFilter.html	Mon Jan 21 18:49:59 2008 +0000
@@ -53,11 +53,11 @@
       </script>
 <script language="JavaScript" type="text/javascript">
 function onloadFunctions(){
-  arrTeclas[arrTeclas.length] = new Teclas("ENTER", "openSearch(null, null, '../info/Product_FS.html', null, false, 'frmMain', 'inpcProductId', 'inpProductId_DES', inputValue(document.frmMain.inpProductId_DES), 'inpIDValue', inputValue(document.frmMain.inpProductId), 'Command', 'KEY');", "inpProductId_DES", "null"); 
+  keyArray[keyArray.length] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/Product_FS.html', null, false, 'frmMain', 'inpcProductId', 'inpProductId_DES', inputValue(document.frmMain.inpProductId_DES), 'inpIDValue', inputValue(document.frmMain.inpProductId), 'Command', 'KEY');", "inpProductId_DES", "null"); 
 }
 </script>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportStandardCostJR.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/src/org/openbravo/erpCommon/ad_reports/ReportTaxInvoice.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportTaxInvoice.html	Mon Jan 21 18:49:59 2008 +0000
@@ -72,7 +72,7 @@
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportTaxInvoice.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/src/org/openbravo/erpCommon/ad_reports/ReportToInvoiceConsignment.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportToInvoiceConsignment.html	Mon Jan 21 18:49:59 2008 +0000
@@ -57,7 +57,7 @@
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportToInvoiceConsignment.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/src/org/openbravo/erpCommon/ad_reports/ReportToInvoiceConsignmentJR.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportToInvoiceConsignmentJR.html	Mon Jan 21 18:49:59 2008 +0000
@@ -57,7 +57,7 @@
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportToInvoiceConsignmentJR.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/src/org/openbravo/erpCommon/ad_reports/ReportTotalProductTemplate.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportTotalProductTemplate.html	Mon Jan 21 18:49:59 2008 +0000
@@ -51,7 +51,7 @@
         dojo.hostenv.writeIncludes(); //makes debugging in Venkman possible
       </script>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();openServletNewWindow('FIND', false, 'ReportTotalProductTemplate.html', 'ReportTotalProductTemplate', null, false, '700', '1000', true);" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();openServletNewWindow('FIND', false, 'ReportTotalProductTemplate.html', 'ReportTotalProductTemplate', null, false, '700', '1000', true);" onresize="resizeArea();">
 <FORM method="POST" action="ReportSalesOrderOpenItem.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/src/org/openbravo/erpCommon/ad_reports/ReportTrialBalance.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportTrialBalance.html	Mon Jan 21 18:49:59 2008 +0000
@@ -114,7 +114,7 @@
 
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea(); updateMenuIcon('buttonMenu'); focoPrimerControl(); onloadFunctions();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea(); updateMenuIcon('buttonMenu'); setFocusFirstControl(); onloadFunctions();" onresize="resizeArea();">
 <FORM method="POST" action="ReportTrialBalance.html" name="frmMain"  target="_self">
   <INPUT type="hidden" name="Command"></INPUT>
   <INPUT type="hidden" name="inpcElementValueIdFrom"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportTrialBalanceDetail.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportTrialBalanceDetail.html	Mon Jan 21 18:49:59 2008 +0000
@@ -54,7 +54,7 @@
 
 </SCRIPT>
 </HEAD>
-<BODY onload="xx();resizeArea()" onresize="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();"  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
+<BODY onload="xx();resizeArea()" onresize="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();"  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
 <!--span id="paramToolBar">toolbar</span--> 
 <FORM method="POST" action="ReportGeneralLedgerDetail.html" name="frmMain" >
   <INPUT type="hidden" name="Command"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportValuationStock.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportValuationStock.html	Mon Jan 21 18:49:59 2008 +0000
@@ -69,7 +69,7 @@
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportValuationStock.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <INPUT type="hidden" name="inpmProductId"></INPUT>
--- a/src/org/openbravo/erpCommon/ad_reports/ReportWarehouseControl.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportWarehouseControl.html	Mon Jan 21 18:49:59 2008 +0000
@@ -69,7 +69,7 @@
 </SCRIPT>
 </HEAD>
 
-<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportWarehouseControl.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/src/org/openbravo/erpCommon/ad_reports/ReportWarehouseDetailInventoryJR.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportWarehouseDetailInventoryJR.html	Mon Jan 21 18:49:59 2008 +0000
@@ -71,7 +71,7 @@
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportWarehouseDetailInventoryJR.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/src/org/openbravo/erpCommon/ad_reports/ReportWarehousePartnerJR.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportWarehousePartnerJR.html	Mon Jan 21 18:49:59 2008 +0000
@@ -70,7 +70,7 @@
 }
 </SCRIPT>
 </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
 <FORM method="POST" action="ReportWarehousePartnerJR.html" name="frmMain" id="form">
   <INPUT type="hidden" name="Command"></INPUT>
   <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/src/org/openbravo/erpCommon/ad_reports/ReportWorkRequirementDaily.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportWorkRequirementDaily.html	Mon Jan 21 18:49:59 2008 +0000
@@ -52,7 +52,7 @@
         dojo.hostenv.writeIncludes(); //makes debugging in Venkman possible
       </script>
   </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
     <FORM method="POST" action="ReportWorkRequirementDaily.html" name="frmMain" >
       <INPUT type="hidden" name="Command"></INPUT>
   <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/src/org/openbravo/erpCommon/ad_reports/ReportWorkRequirementDailyEnv.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportWorkRequirementDailyEnv.html	Mon Jan 21 18:49:59 2008 +0000
@@ -68,7 +68,7 @@
 }
 </SCRIPT>
   </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
     <FORM method="POST" action="ReportWorkRequirementDailyEnv.html" name="frmMain" id="form">
       <INPUT type="hidden" name="Command"></INPUT>
   <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/src/org/openbravo/erpCommon/ad_reports/ReportWorkRequirementJR.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportWorkRequirementJR.html	Mon Jan 21 18:49:59 2008 +0000
@@ -52,7 +52,7 @@
         dojo.hostenv.writeIncludes(); //makes debugging in Venkman possible
       </script>
   </HEAD>
-    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="xx();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
     <FORM method="POST" action="ReportWorkRequirementJR.html" name="frmMain" id="form">
       <INPUT type="hidden" name="Command"></INPUT>
   <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/src/org/openbravo/erpCommon/ad_reports/Rpt_Etiquetas_Config.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/Rpt_Etiquetas_Config.html	Mon Jan 21 18:49:59 2008 +0000
@@ -85,7 +85,7 @@
     </script>
   </head>
 
-  <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();">
+  <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
     <form method="post" action="Rpt_Etiquetas.html" name="frmMain" id="form">
       <input type="hidden" name="Command" /> <input type="hidden" name="inpLastFieldChanged" value="" />
 
--- a/src/org/openbravo/erpCommon/businessUtility/Buscador.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/businessUtility/Buscador.html	Mon Jan 21 18:49:59 2008 +0000
@@ -55,7 +55,7 @@
   </HEAD>
 
 
-  <BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="activarTeclas();focoPrimerControl();">
+  <BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="enableLocalShortcuts();setFocusFirstControl();">
   <FORM id="form" method="POST" action="Buscador.html" name="frmMain">
     <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/businessUtility/Buscador.java	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/businessUtility/Buscador.java	Mon Jan 21 18:49:59 2008 +0000
@@ -371,7 +371,7 @@
           strMethod = searchsCommand(fields[i], false, strTab, strWindow, strIsSOTrx);
         }
 
-        strMethod = "new Teclas(\"ENTER\", \"" + strMethod + "\", \"inpParam" + FormatUtilities.replace(fields[i].columnname) + "_DES\", \"null\")";
+        strMethod = "new keyArrayItem(\"ENTER\", \"" + strMethod + "\", \"inpParam" + FormatUtilities.replace(fields[i].columnname) + "_DES\", \"null\")";
         vecKeys.addElement(strMethod);
 
         if (fields[i].reference.equals("21")) {
@@ -513,16 +513,16 @@
       //strHtml.append("</td></tr></table>\n");
       strHtml.append("</td></tr>\n");
     }
-    vecKeys.addElement("new Teclas(\"B\", \"aceptar()\", null, \"ctrlKey\")");
-    vecKeys.addElement("new Teclas(\"ESCAPE\", \"window.close()\", null, null)");
+    vecKeys.addElement("new keyArrayItem(\"B\", \"aceptar()\", null, \"ctrlKey\")");
+    vecKeys.addElement("new keyArrayItem(\"ESCAPE\", \"window.close()\", null, null)");
     if (vecKeys.size()>0) {
-      script.append("var arrTeclas = new Array();\n");
-      script.append("function activarTeclas() {\n");
+      script.append("var keyArray = new Array();\n");
+      script.append("function enableLocalShortcuts() {\n");
       script.append("\n");
       for (int i=0;i<vecKeys.size();i++) {
-        script.append("arrTeclas[").append(i).append("] = ").append(vecKeys.elementAt(i).toString()).append(";\n");
+        script.append("keyArray[").append(i).append("] = ").append(vecKeys.elementAt(i).toString()).append(";\n");
       }
-      script.append("activarControlTeclas();\n");
+      script.append("enableShortcuts();\n");
       script.append("}\n");
     }
     StringBuffer scrScr = new StringBuffer();
--- a/src/org/openbravo/erpCommon/businessUtility/TabFilter.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/businessUtility/TabFilter.html	Mon Jan 21 18:49:59 2008 +0000
@@ -28,15 +28,15 @@
 	return true;
 }
 
-arrTeclas = new Array(
-new Teclas("B", "submitCommandForm('ORDERBY', true, null, null, '_top');", null, "ctrlKey")
+keyArray = new Array(
+new keyArrayItem("B", "submitCommandForm('ORDERBY', true, null, null, '_top');", null, "ctrlKey")
 );
-activarControlTeclas();
+enableShortcuts();
 </SCRIPT>
 <TITLE>Filter</TITLE>
 <META http-equiv="Content-Type" content="text/html; charset=UTF-8"></META>
 </HEAD>
-<BODY bottommargin="0" leftmargin="0" marginheight="0" marginwidth="0" rightmargin="0" topmargin="0" onload="focoPrimerControl();" >
+<BODY bottommargin="0" leftmargin="0" marginheight="0" marginwidth="0" rightmargin="0" topmargin="0" onload="setFocusFirstControl();" >
 <FORM name="frmMain" method="post" action="TabFilter.html">
   <INPUT type="hidden" name="Command"></INPUT>
   <INPUT type="hidden" name="inpTabId" value="xx" id="paramTabId"></INPUT>
--- a/src/org/openbravo/erpCommon/info/Account_F1.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/Account_F1.html	Mon Jan 21 18:49:59 2008 +0000
@@ -40,9 +40,9 @@
       </script>
 
 <SCRIPT language="JavaScript" type="text/javascript">
-arrTeclas = new Array();
-arrTeclas[0] = new Teclas("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey");
-activarControlTeclas();
+keyArray = new Array();
+keyArray[0] = new keyArrayItem("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey");
+enableShortcuts();
 </SCRIPT>
 <SCRIPT language="JavaScript" type="text/javascript">
 function depurar() {
@@ -70,7 +70,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();focoPrimerControl();" >
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();setFocusFirstControl();" >
 <FORM name="frmSelector" method="POST" action="Account_F2.html" target="medio">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/info/Account_F2.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/Account_F2.html	Mon Jan 21 18:49:59 2008 +0000
@@ -61,7 +61,7 @@
   </script>
 </head>
 
-<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();focoPrimerControl();window.focus();" onresize="resizeArea();">
+<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();setFocusFirstControl();window.focus();" onresize="resizeArea();">
 <form name="frmSelector" action="Account_F1.html" method="POST" target="superior">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/info/AttributeSetInstance_F1.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/AttributeSetInstance_F1.html	Mon Jan 21 18:49:59 2008 +0000
@@ -64,7 +64,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();onloadFunctions();focoPrimerControl();xx();" onresize="resizeArea();" id="paramBody">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();onloadFunctions();setFocusFirstControl();xx();" onresize="resizeArea();" id="paramBody">
 <FORM name="frmMain" method="POST" action="AttributeSetInstance_F1.html" target="_self">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1">
--- a/src/org/openbravo/erpCommon/info/BusinessPartnerMultiple_F1.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/BusinessPartnerMultiple_F1.html	Mon Jan 21 18:49:59 2008 +0000
@@ -36,10 +36,10 @@
   <SCRIPT language="JavaScript" type="text/javascript" id="paramLanguage">	LNG_POR_DEFECTO = "en_US";</SCRIPT>
 <SCRIPT language="JavaScript" type="text/javascript">
 <SCRIPT language="JavaScript" type="text/javascript">
-arrTeclas = new Array(
-new Teclas("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey")
+keyArray = new Array(
+new keyArrayItem("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey")
 );
-activarControlTeclas();
+enableShortcuts();
 </SCRIPT>
 <SCRIPT language="JavaScript" type="text/javascript">
 function depurar() {
@@ -53,7 +53,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();" >
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();" >
 <FORM name="frmSelector" method="POST" action="BusinessPartnerMultiple_F2.html" target="medio">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/info/BusinessPartnerMultiple_F2.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/BusinessPartnerMultiple_F2.html	Mon Jan 21 18:49:59 2008 +0000
@@ -57,7 +57,7 @@
   </script>
 </head>
 
-<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();focoPrimerControl();window.focus();" onresize="resizeArea();">
+<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();setFocusFirstControl();window.focus();" onresize="resizeArea();">
 <form name="frmSelector" method="POST" action="">
 <INPUT type="hidden" name="IsPopUpCall" value="1">
   <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/src/org/openbravo/erpCommon/info/BusinessPartner_F1.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/BusinessPartner_F1.html	Mon Jan 21 18:49:59 2008 +0000
@@ -36,10 +36,10 @@
   <SCRIPT language="JavaScript" type="text/javascript" id="paramDirection">var baseDirection = "http://yourSite/web/";</SCRIPT>
   <SCRIPT language="JavaScript" type="text/javascript" id="paramLanguage">	LNG_POR_DEFECTO = "en_US";</SCRIPT>
 <SCRIPT language="JavaScript" type="text/javascript">
-arrTeclas = new Array(
-new Teclas("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey")
+keyArray = new Array(
+new keyArrayItem("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey")
 );
-activarControlTeclas();
+enableShortcuts();
 </SCRIPT>
 <SCRIPT language="JavaScript" type="text/javascript">
 function depurar() {
@@ -55,7 +55,7 @@
 </HEAD>
 
 
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();" >
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();" >
 <FORM name="frmSelector" method="POST" action="BusinessPartner_F2.html" target="medio">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/info/BusinessPartner_F2.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/BusinessPartner_F2.html	Mon Jan 21 18:49:59 2008 +0000
@@ -62,7 +62,7 @@
   </script>
 </head>
 
-<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();focoPrimerControl();window.focus();" onresize="resizeArea();">
+<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();setFocusFirstControl();window.focus();" onresize="resizeArea();">
 <form name="frmSelector" method="POST" action="">
   <input type="hidden" name="inpTexto">
   <input type="hidden" name="inpLocation">
--- a/src/org/openbravo/erpCommon/info/CashJournal_F1.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/CashJournal_F1.html	Mon Jan 21 18:49:59 2008 +0000
@@ -41,19 +41,19 @@
 
 
 <SCRIPT language="JavaScript" type="text/javascript">
-arrTeclas = new Array(
-new Teclas("ENTER", "openSearch(null, null, '../info/DebtPayment_FS.html', 'SELECTOR_DEBT', false, 'frmCash', 'inpcDebtPaymentId',  'inpcDebtPaymentId_DES', document.frmCash.inpcDebtPaymentId_DES.value, 'Command', 'KEY');", "inpcInvoiceId_DES", "null"),
-new Teclas("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey")
+keyArray = new Array(
+new keyArrayItem("ENTER", "openSearch(null, null, '../info/DebtPayment_FS.html', 'SELECTOR_DEBT', false, 'frmCash', 'inpcDebtPaymentId',  'inpcDebtPaymentId_DES', document.frmCash.inpcDebtPaymentId_DES.value, 'Command', 'KEY');", "inpcInvoiceId_DES", "null"),
+new keyArrayItem("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey")
 );
 
-activarControlTeclas();
+enableShortcuts();
 
 function onloadFunctions() {
 	new TypeAheadCombo("sectionCashBook");
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();focoPrimerControl();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();setFocusFirstControl();">
 
 
 <FORM name="frmCash" method="POST" action="CashJournal_F2.html" target="medio">
--- a/src/org/openbravo/erpCommon/info/CashJournal_F2.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/CashJournal_F2.html	Mon Jan 21 18:49:59 2008 +0000
@@ -51,7 +51,7 @@
          }
 </script>
 </head>
-<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();">
+<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();">
 <form name="frmSelector" method="POST" action="">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/info/DebtPayment_F1.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/DebtPayment_F1.html	Mon Jan 21 18:49:59 2008 +0000
@@ -43,19 +43,19 @@
       
 
 <SCRIPT language="JavaScript" type="text/javascript">
-arrTeclas = new Array(
-new Teclas("ENTER", "openSearch(null, null, 'BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmEfecto', 'inpBpartnerId', 'inpBpartnerId_DES', document.frmEfecto.inpBpartnerId_DES.value, 'Command', 'KEY');", "inpBpartnerId_DES", "null"),
-new Teclas("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey")
+keyArray = new Array(
+new keyArrayItem("ENTER", "openSearch(null, null, 'BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmEfecto', 'inpBpartnerId', 'inpBpartnerId_DES', document.frmEfecto.inpBpartnerId_DES.value, 'Command', 'KEY');", "inpBpartnerId_DES", "null"),
+new keyArrayItem("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey")
 );
 
-activarControlTeclas();
+enableShortcuts();
 
 function onloadFunctions() {
 	new TypeAheadCombo("inpCPaymentRuleId");
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();focoPrimerControl();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();setFocusFirstControl();">
 
 <FORM name="frmEfecto" method="POST" action="DebtPayment_F2.html" target="medio">
   <INPUT type="hidden" name="Command">
--- a/src/org/openbravo/erpCommon/info/DebtPayment_F2.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/DebtPayment_F2.html	Mon Jan 21 18:49:59 2008 +0000
@@ -60,7 +60,7 @@
   </script>
 </head>
 
-<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();focoPrimerControl();window.focus();" onresize="resizeArea();">
+<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();setFocusFirstControl();window.focus();" onresize="resizeArea();">
 <form name="frmSelector" method="POST" action="">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/info/ImageInfo_F1.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/ImageInfo_F1.html	Mon Jan 21 18:49:59 2008 +0000
@@ -43,10 +43,10 @@
 
 
 <SCRIPT language="JavaScript" type="text/javascript">
-arrTeclas = new Array(
-new Teclas("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey")
+keyArray = new Array(
+new keyArrayItem("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey")
 );
-activarControlTeclas();
+enableShortcuts();
 </SCRIPT>
 <SCRIPT language="JavaScript" type="text/javascript">
 function depurar() {
@@ -60,7 +60,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();" >
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();" >
 <FORM name="frmSelector" method="POST" action="ImageInfo_F2.html" target="medio">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/info/ImageInfo_F2.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/ImageInfo_F2.html	Mon Jan 21 18:49:59 2008 +0000
@@ -54,7 +54,7 @@
          
 </script>
 </head>
-<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();window.focus();">
+<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();window.focus();">
 <form name="frmSelector" method="POST" action="">
   <input type="hidden" name="inpTexto"></input>
   <input type="hidden" name="inpLastKeySelected"></input>
--- a/src/org/openbravo/erpCommon/info/Invoice.java	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/Invoice.java	Mon Jan 21 18:49:59 2008 +0000
@@ -182,11 +182,11 @@
     xmlDocument.setParameter("dateTodisplayFormat", vars.getSessionValue("#AD_SqlDateFormat"));
     xmlDocument.setParameter("dateTosaveFormat", vars.getSessionValue("#AD_SqlDateFormat"));
     StringBuffer total = new StringBuffer();
-    total.append("arrTeclas = new Array(\n");
-    total.append("new Teclas(\"ENTER\", \"openSearch(null, null, '../Invoice_FS.html', 'SELECTOR_INVOICE', false, 'frmMain', 'inpNewcInvoiceId', 'inpNewcInvoiceId_DES', document.frmMain.inpNewcInvoiceId_DES.value, 'Command', 'KEY', 'WindowID', '");
+    total.append("keyArray = new Array(\n");
+    total.append("new keyArrayItem(\"ENTER\", \"openSearch(null, null, '../Invoice_FS.html', 'SELECTOR_INVOICE', false, 'frmMain', 'inpNewcInvoiceId', 'inpNewcInvoiceId_DES', document.frmMain.inpNewcInvoiceId_DES.value, 'Command', 'KEY', 'WindowID', '");
     total.append(strWindow).append("');\", \"inpNewcInvoiceId_DES\", \"null\")\n");
     total.append(");\n");
-    total.append("activarControlTeclas();\n");
+    total.append("enableShortcuts();\n");
     xmlDocument.setParameter("WindowIDArray", total.toString());
     xmlDocument.setParameter("WindowID", strWindow);
     response.setContentType("text/html; charset=UTF-8");
--- a/src/org/openbravo/erpCommon/info/InvoiceLine_F1.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/InvoiceLine_F1.html	Mon Jan 21 18:49:59 2008 +0000
@@ -41,16 +41,16 @@
       </script>
       
 <SCRIPT language="JavaScript" type="text/javascript">
-arrTeclas = new Array(
-new Teclas("ENTER", "openSearch(null, null, 'BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmOrder', 'inpcBpartnerId', 'inpcBpartnerId_DES', document.frmOrder.inpcBpartnerId_DES.value, 'Command', 'KEY');", "inpcBpartnerId_DES", "null"),
-new Teclas("ENTER", "openSearch(null, null, 'Product_FS.html', 'SELECTOR_PRODUCT', false, 'frmOrder', 'inpmProductId', 'inpmProductId_DES', document.frmOrder.inpmProductId_DES.value, 'Command', 'KEY');", "inpmProductId_DES", "null"),
-new Teclas("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey")
+keyArray = new Array(
+new keyArrayItem("ENTER", "openSearch(null, null, 'BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmOrder', 'inpcBpartnerId', 'inpcBpartnerId_DES', document.frmOrder.inpcBpartnerId_DES.value, 'Command', 'KEY');", "inpcBpartnerId_DES", "null"),
+new keyArrayItem("ENTER", "openSearch(null, null, 'Product_FS.html', 'SELECTOR_PRODUCT', false, 'frmOrder', 'inpmProductId', 'inpmProductId_DES', document.frmOrder.inpmProductId_DES.value, 'Command', 'KEY');", "inpmProductId_DES", "null"),
+new keyArrayItem("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey")
 );
 
-activarControlTeclas();
+enableShortcuts();
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();">
 
 <FORM name="frmOrder" method="POST" action="InvoiceLine_F1.html" target="medio">
   <INPUT type="hidden" name="Command">
--- a/src/org/openbravo/erpCommon/info/InvoiceLine_F2.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/InvoiceLine_F2.html	Mon Jan 21 18:49:59 2008 +0000
@@ -60,7 +60,7 @@
   </script>
 </head>
 
-<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();focoPrimerControl();window.focus();" onresize="resizeArea();">
+<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();setFocusFirstControl();window.focus();" onresize="resizeArea();">
 <form name="frmSelector" method="POST" action="">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/info/Invoice_F1.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/Invoice_F1.html	Mon Jan 21 18:49:59 2008 +0000
@@ -42,19 +42,19 @@
 
 
 <SCRIPT language="JavaScript" type="text/javascript">
-arrTeclas = new Array(
-new Teclas("ENTER", "openSearch(null, null, 'BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmInvoice', 'inpBpartnerId', 'inpBpartnerId_DES', document.frmInvoice.inpBpartnerId_DES.value, 'Command', 'KEY');", "inpBpartnerId_DES", "null"),
-new Teclas("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey")
+keyArray = new Array(
+new keyArrayItem("ENTER", "openSearch(null, null, 'BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmInvoice', 'inpBpartnerId', 'inpBpartnerId_DES', document.frmInvoice.inpBpartnerId_DES.value, 'Command', 'KEY');", "inpBpartnerId_DES", "null"),
+new keyArrayItem("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey")
 );
 
-activarControlTeclas();
+enableShortcuts();
 
 function onloadFunctions() {
 	new TypeAheadCombo("inpisSOTrx");
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();focoPrimerControl();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();setFocusFirstControl();">
 
 <FORM name="frmInvoice" method="POST" action="Invoice_F2.html" target="medio">
   <INPUT type="hidden" name="Command">
--- a/src/org/openbravo/erpCommon/info/Invoice_F2.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/Invoice_F2.html	Mon Jan 21 18:49:59 2008 +0000
@@ -60,7 +60,7 @@
   </script>
 </head>
 
-<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();focoPrimerControl();window.focus();" onresize="resizeArea();">
+<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();setFocusFirstControl();window.focus();" onresize="resizeArea();">
 <form name="frmSelector" method="POST" action="">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/info/Location_F1.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/Location_F1.html	Mon Jan 21 18:49:59 2008 +0000
@@ -47,7 +47,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();focoPrimerControl();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();setFocusFirstControl();">
 <FORM method="POST" action="Location_F1.html" name="frmAlmacen">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/info/Locator.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/Locator.html	Mon Jan 21 18:49:59 2008 +0000
@@ -31,7 +31,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();focoPrimerControl();" >
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();setFocusFirstControl();" >
 <FORM name="frmLocalizador" method="POST" action="">
   <INPUT type="hidden" name="Command"></INPUT>
   <BR></BR>
--- a/src/org/openbravo/erpCommon/info/Locator_F1.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/Locator_F1.html	Mon Jan 21 18:49:59 2008 +0000
@@ -44,14 +44,14 @@
       
 
 <SCRIPT language="JavaScript" type="text/javascript">
-arrTeclas = new Array(
-new Teclas("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey")
+keyArray = new Array(
+new keyArrayItem("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey")
 );
 
-activarControlTeclas();
+enableShortcuts();
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();">
 
 <FORM name="frmPago" method="POST" action="Locator_F2.html" target="medio">
   <INPUT type="hidden" name="Command">
--- a/src/org/openbravo/erpCommon/info/Locator_F2.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/Locator_F2.html	Mon Jan 21 18:49:59 2008 +0000
@@ -60,7 +60,7 @@
   </script>
 </head>
 
-<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();focoPrimerControl();window.focus();" onresize="resizeArea();">
+<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();setFocusFirstControl();window.focus();" onresize="resizeArea();">
 <form name="frmSelector" method="POST" action="">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/info/ProductComplete_F1.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/ProductComplete_F1.html	Mon Jan 21 18:49:59 2008 +0000
@@ -41,18 +41,18 @@
 
 
 <SCRIPT language="JavaScript" type="text/javascript">
-arrTeclas = new Array(
-new Teclas("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey")
+keyArray = new Array(
+new keyArrayItem("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey")
 );
 
-activarControlTeclas();
+enableShortcuts();
 
 function onloadFunctions() {
 	new TypeAheadCombo("sectionWarehouse");
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();focoPrimerControl();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();setFocusFirstControl();">
 
 <FORM name="frmProducto" method="POST" action="ProductComplete_F2.html" target="medio">
   <INPUT type="hidden" name="Command">
--- a/src/org/openbravo/erpCommon/info/ProductComplete_F2.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/ProductComplete_F2.html	Mon Jan 21 18:49:59 2008 +0000
@@ -66,7 +66,7 @@
   </script>
 </head>
 
-<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();focoPrimerControl();window.focus();" onresize="resizeArea();">
+<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();setFocusFirstControl();window.focus();" onresize="resizeArea();">
 <form name="frmSelector" method="POST" action="">
   <input type="hidden" name="inpTexto">
   <input type="hidden" name="inpcUom1Id" value="">
--- a/src/org/openbravo/erpCommon/info/ProductMultiple_F1.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/ProductMultiple_F1.html	Mon Jan 21 18:49:59 2008 +0000
@@ -41,10 +41,10 @@
 
 
 <SCRIPT language="JavaScript" type="text/javascript">
-arrTeclas = new Array(
-new Teclas("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey")
+keyArray = new Array(
+new keyArrayItem("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey")
 );
-activarControlTeclas();
+enableShortcuts();
 </SCRIPT>
 <SCRIPT language="JavaScript" type="text/javascript">
 function depurar() {
@@ -62,7 +62,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();focoPrimerControl();" >
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();setFocusFirstControl();" >
 <FORM name="frmSelector" method="POST" action="ProductMultiple_F2.html" target="medio">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/info/ProductMultiple_F2.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/ProductMultiple_F2.html	Mon Jan 21 18:49:59 2008 +0000
@@ -57,7 +57,7 @@
   </script>
 </head>
 
-<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();focoPrimerControl();window.focus();" onresize="resizeArea();">
+<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();setFocusFirstControl();window.focus();" onresize="resizeArea();">
 <form name="frmSelector" method="POST" action="">
 <INPUT type="hidden" name="IsPopUpCall" value="1">
   <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/src/org/openbravo/erpCommon/info/Product_F1.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/Product_F1.html	Mon Jan 21 18:49:59 2008 +0000
@@ -41,11 +41,11 @@
 
 
 <SCRIPT language="JavaScript" type="text/javascript">
-arrTeclas = new Array(
-new Teclas("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey")
+keyArray = new Array(
+new keyArrayItem("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey")
 );
 
-activarControlTeclas();
+enableShortcuts();
 
 function onloadFunctions() {
 	new TypeAheadCombo("sectionWarehouse");
@@ -53,7 +53,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();focoPrimerControl();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();setFocusFirstControl();">
 
 <FORM name="frmProducto" method="POST" action="Product_F2.html" target="medio">
   <INPUT type="hidden" name="Command">
--- a/src/org/openbravo/erpCommon/info/Product_F2.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/Product_F2.html	Mon Jan 21 18:49:59 2008 +0000
@@ -65,7 +65,7 @@
   </script>
 </head>
 
-<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();focoPrimerControl();window.focus();" onresize="resizeArea();">
+<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();setFocusFirstControl();window.focus();" onresize="resizeArea();">
 <form name="frmSelector" method="POST" action="">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/info/Project_F1.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/Project_F1.html	Mon Jan 21 18:49:59 2008 +0000
@@ -54,15 +54,15 @@
 	*/
 	return true;
 }
-var arrTeclas = new Array(
-new Teclas("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', 'BPARTNER_SELECTOR', false, 'frmSelector', 'inpBpartnerId', 'inpBpartnerId_DES', document.frmSelector.inpBpartnerId_DES.value, 'Command', 'KEY', 'WindowID', document.frmSelector.inpWindowId.value);", "inpBpartnerId_DES", "null"),
-new Teclas("B", "submitCommandForm(\'FIND\', true);", null, "ctrlKey")
+var keyArray = new Array(
+new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', 'BPARTNER_SELECTOR', false, 'frmSelector', 'inpBpartnerId', 'inpBpartnerId_DES', document.frmSelector.inpBpartnerId_DES.value, 'Command', 'KEY', 'WindowID', document.frmSelector.inpWindowId.value);", "inpBpartnerId_DES", "null"),
+new keyArrayItem("B", "submitCommandForm(\'FIND\', true);", null, "ctrlKey")
 );
 
-activarControlTeclas();
+enableShortcuts();
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();" >
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();" >
 <FORM name="frmSelector" method="POST" action="Project_F2.html" target="medio">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/info/Project_F2.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/Project_F2.html	Mon Jan 21 18:49:59 2008 +0000
@@ -60,7 +60,7 @@
   </script>
 </head>
 
-<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();focoPrimerControl();window.focus();" onresize="resizeArea();">
+<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();setFocusFirstControl();window.focus();" onresize="resizeArea();">
 <form name="frmSelector" method="POST" action="">
   <input type="hidden" name="inpTexto"></input>
   <input type="hidden" name="inpLastKeySelected"></input>
--- a/src/org/openbravo/erpCommon/info/Requests_F1.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/Requests_F1.html	Mon Jan 21 18:49:59 2008 +0000
@@ -37,7 +37,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();porDefecto('submitCommandForm(\'FIND\', true)');" >
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();byDefaultAction('submitCommandForm(\'FIND\', true)');" >
 <FORM name="frmSelector" method="POST" action="Requests_F2.html" target="medio">
   <INPUT type="hidden" name="Command"></INPUT>
   <BR></BR>
--- a/src/org/openbravo/erpCommon/info/Requests_F2.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/Requests_F2.html	Mon Jan 21 18:49:59 2008 +0000
@@ -32,7 +32,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();window.focus();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();window.focus();">
 <FORM name="frmSelector" method="POST" action="">
   <INPUT type="hidden" name="Command"></INPUT>
   <INPUT type="hidden" name="inpTexto"></INPUT>
--- a/src/org/openbravo/erpCommon/info/SalesOrderLine_F1.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/SalesOrderLine_F1.html	Mon Jan 21 18:49:59 2008 +0000
@@ -44,16 +44,16 @@
       
       
 <SCRIPT language="JavaScript" type="text/javascript">
-arrTeclas = new Array(
-new Teclas("ENTER", "openSearch(null, null, 'BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmOrder', 'inpcBpartnerId', 'inpcBpartnerId_DES', document.frmOrder.inpcBpartnerId_DES.value, 'Command', 'KEY');", "inpcBpartnerId_DES", "null"),
-new Teclas("ENTER", "openSearch(null, null, 'Product_FS.html', 'SELECTOR_PRODUCT', false, 'frmOrder', 'inpmProductId', 'inpmProductId_DES', document.frmOrder.inpmProductId_DES.value, 'Command', 'KEY');", "inpmProductId_DES", "null"),
-new Teclas("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey")
+keyArray = new Array(
+new keyArrayItem("ENTER", "openSearch(null, null, 'BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmOrder', 'inpcBpartnerId', 'inpcBpartnerId_DES', document.frmOrder.inpcBpartnerId_DES.value, 'Command', 'KEY');", "inpcBpartnerId_DES", "null"),
+new keyArrayItem("ENTER", "openSearch(null, null, 'Product_FS.html', 'SELECTOR_PRODUCT', false, 'frmOrder', 'inpmProductId', 'inpmProductId_DES', document.frmOrder.inpmProductId_DES.value, 'Command', 'KEY');", "inpmProductId_DES", "null"),
+new keyArrayItem("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey")
 );
 
-activarControlTeclas();
+enableShortcuts();
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();">
 
 <FORM name="frmOrder" method="POST" action="SalesOrderLine_F1.html" target="medio">
   <INPUT type="hidden" name="Command">
--- a/src/org/openbravo/erpCommon/info/SalesOrderLine_F2.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/SalesOrderLine_F2.html	Mon Jan 21 18:49:59 2008 +0000
@@ -60,7 +60,7 @@
   </script>
 </head>
 
-<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();focoPrimerControl();window.focus();" onresize="resizeArea();">
+<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();setFocusFirstControl();window.focus();" onresize="resizeArea();">
 <form name="frmSelector" method="POST" action="">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/info/SalesOrder_F1.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/SalesOrder_F1.html	Mon Jan 21 18:49:59 2008 +0000
@@ -39,15 +39,15 @@
         dojo.hostenv.writeIncludes(); //makes debugging in Venkman possible
       </script>
 <SCRIPT language="JavaScript" type="text/javascript">
-arrTeclas = new Array(
-new Teclas("ENTER", "openSearch(null, null, 'BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmOrder', 'inpBpartnerId', 'inpBpartnerId_DES', document.frmOrder.inpBpartnerId_DES.value, 'Command', 'KEY');", "inpBpartnerId_DES", "null"),
-new Teclas("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey")
+keyArray = new Array(
+new keyArrayItem("ENTER", "openSearch(null, null, 'BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmOrder', 'inpBpartnerId', 'inpBpartnerId_DES', document.frmOrder.inpBpartnerId_DES.value, 'Command', 'KEY');", "inpBpartnerId_DES", "null"),
+new keyArrayItem("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey")
 );
 
-activarControlTeclas();
+enableShortcuts();
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();">
 
 
 
--- a/src/org/openbravo/erpCommon/info/SalesOrder_F2.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/SalesOrder_F2.html	Mon Jan 21 18:49:59 2008 +0000
@@ -60,7 +60,7 @@
   </script>
 </head>
 
-<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();focoPrimerControl();window.focus();" onresize="resizeArea();">
+<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();setFocusFirstControl();window.focus();" onresize="resizeArea();">
 <form name="frmSelector" method="POST" action="">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/info/ShipmentReceiptLine_F1.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/ShipmentReceiptLine_F1.html	Mon Jan 21 18:49:59 2008 +0000
@@ -43,16 +43,16 @@
 
 
 <SCRIPT language="JavaScript" type="text/javascript">
-arrTeclas = new Array(
-new Teclas("ENTER", "openSearch(null, null, 'BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmOrder', 'inpcBpartnerId', 'inpcBpartnerId_DES', document.frmOrder.inpcBpartnerId_DES.value, 'Command', 'KEY');", "inpcBpartnerId_DES", "null"),
-new Teclas("ENTER", "openSearch(null, null, 'Product_FS.html', 'SELECTOR_PRODUCT', false, 'frmOrder', 'inpmProductId', 'inpmProductId_DES', document.frmOrder.inpmProductId_DES.value, 'Command', 'KEY');", "inpmProductId_DES", "null"),
-new Teclas("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey")
+keyArray = new Array(
+new keyArrayItem("ENTER", "openSearch(null, null, 'BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmOrder', 'inpcBpartnerId', 'inpcBpartnerId_DES', document.frmOrder.inpcBpartnerId_DES.value, 'Command', 'KEY');", "inpcBpartnerId_DES", "null"),
+new keyArrayItem("ENTER", "openSearch(null, null, 'Product_FS.html', 'SELECTOR_PRODUCT', false, 'frmOrder', 'inpmProductId', 'inpmProductId_DES', document.frmOrder.inpmProductId_DES.value, 'Command', 'KEY');", "inpmProductId_DES", "null"),
+new keyArrayItem("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey")
 );
 
-activarControlTeclas();
+enableShortcuts();
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();">
 
 
 <FORM name="frmOrder" method="POST" action="ShipmentReceiptLine_F1.html" target="medio">
--- a/src/org/openbravo/erpCommon/info/ShipmentReceiptLine_F2.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/ShipmentReceiptLine_F2.html	Mon Jan 21 18:49:59 2008 +0000
@@ -60,7 +60,7 @@
   </script>
 </head>
 
-<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();focoPrimerControl();window.focus();" onresize="resizeArea();">
+<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();setFocusFirstControl();window.focus();" onresize="resizeArea();">
 <form name="frmSelector" method="POST" action="">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/info/ShipmentReceipt_F1.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/ShipmentReceipt_F1.html	Mon Jan 21 18:49:59 2008 +0000
@@ -44,15 +44,15 @@
 
 
 <SCRIPT language="JavaScript" type="text/javascript">
-arrTeclas = new Array(
-new Teclas("ENTER", "openSearch(null, null, 'BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmShipment', 'inpBpartnerId', 'inpBpartnerId_DES', document.frmShipment.inpBpartnerId_DES.value, 'Command', 'KEY');", "inpBpartnerId_DES", "null"),
-new Teclas("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey")
+keyArray = new Array(
+new keyArrayItem("ENTER", "openSearch(null, null, 'BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmShipment', 'inpBpartnerId', 'inpBpartnerId_DES', document.frmShipment.inpBpartnerId_DES.value, 'Command', 'KEY');", "inpBpartnerId_DES", "null"),
+new keyArrayItem("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey")
 );
 
-activarControlTeclas();
+enableShortcuts();
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();">
 
 <FORM name="frmShipment" method="POST" action="ShipmentReceipt_F2.html" target="medio">
   <INPUT type="hidden" name="Command">
--- a/src/org/openbravo/erpCommon/info/ShipmentReceipt_F2.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/ShipmentReceipt_F2.html	Mon Jan 21 18:49:59 2008 +0000
@@ -60,7 +60,7 @@
   </script>
 </head>
 
-<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();focoPrimerControl();window.focus();" onresize="resizeArea();">
+<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();setFocusFirstControl();window.focus();" onresize="resizeArea();">
 <form name="frmSelector" method="POST" action="">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
--- a/src/org/openbravo/erpCommon/info/UserContact_F1.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/UserContact_F1.html	Mon Jan 21 18:49:59 2008 +0000
@@ -39,11 +39,11 @@
       </script>
 
 <SCRIPT language="JavaScript" type="text/javascript">
-arrTeclas = new Array(
-new Teclas("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey")
+keyArray = new Array(
+new keyArrayItem("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey")
 );
 
-activarControlTeclas();
+enableShortcuts();
 </SCRIPT>
 <SCRIPT language="JavaScript" type="text/javascript">
 function depurar() {
@@ -57,7 +57,7 @@
 }
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();" >
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();" >
 <FORM name="frmSelector" method="POST" action="UserContact_F2.html" target="medio">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1">
--- a/src/org/openbravo/erpCommon/info/UserContact_F2.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/UserContact_F2.html	Mon Jan 21 18:49:59 2008 +0000
@@ -53,7 +53,7 @@
          }
 </script>
 </head>
-<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="focoPrimerControl();window.focus();">
+<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();window.focus();">
 <form name="frmSelector" method="POST" action="">
   <input type="hidden" name="inpTexto"></input>
   <input type="hidden" name="inpLastKeySelected"></input>
--- a/src/org/openbravo/erpCommon/security/Login_F1.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/security/Login_F1.html	Mon Jan 21 18:49:59 2008 +0000
@@ -49,7 +49,7 @@
 
 </SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();onloadFunctions();limpiar();focoPrimerControl();porDefecto('buttonOK_click()');" onresize="resizeArea();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();onloadFunctions();limpiar();setFocusFirstControl();byDefaultAction('buttonOK_click()');" onresize="resizeArea();">
 
 
 
--- a/src/org/openbravo/erpCommon/security/Login_Options_F1.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/security/Login_Options_F1.html	Mon Jan 21 18:49:59 2008 +0000
@@ -53,7 +53,7 @@
 </SCRIPT>
 
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();onloadFunctions();limpiar();focoPrimerControl();porDefecto('submitCommandForm(\'OPTIONS\',false,null,\'../secureApp/LoginHandler.html\',\'_top\',true)');" onresize="resizeArea();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="resizeArea();onloadFunctions();limpiar();setFocusFirstControl();byDefaultAction('submitCommandForm(\'OPTIONS\',false,null,\'../secureApp/LoginHandler.html\',\'_top\',true)');" onresize="resizeArea();">
 
 
 
--- a/src/org/openbravo/erpCommon/utility/Home.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/utility/Home.html	Mon Jan 21 18:49:59 2008 +0000
@@ -26,10 +26,10 @@
 <script language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></script>
 <script language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></script>
 <script language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript">
-arrTeclas = new Array(
-new Teclas("M", "mostrarMenu();", null, "ctrlKey")
+keyArray = new Array(
+new keyArrayItem("M", "mostrarMenu();", null, "ctrlKey")
 );
-activarControlTeclas();
+enableShortcuts();
 </script>
 <script language="JavaScript" type="text/javascript" id="paramDirection">var baseDirection = "../../../../../web/";</script>
 <script language="JavaScript" type="text/javascript" id="paramLanguage">var LNG_POR_DEFECTO = "en_US";</script>
--- a/src/org/openbravo/erpCommon/utility/KeyMap.java	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/utility/KeyMap.java	Mon Jan 21 18:49:59 2008 +0000
@@ -121,10 +121,10 @@
    */
   public String getSortTabKeyMaps() {
     StringBuffer script = new StringBuffer();
-    script.append("\nvar arrTeclas = new Array(\n");
-    script.append("new Teclas(\"M\", \"mostrarMenu('buttonMenu');\", null, \"ctrlKey\")\n");
+    script.append("\nvar keyArray = new Array(\n");
+    script.append("new keyArrayItem(\"M\", \"mostrarMenu('buttonMenu');\", null, \"ctrlKey\")\n");
     script.append(");\n");
-    script.append("activarControlTeclas();");
+    script.append("enableShortcuts();");
     return script.toString();
   }
 
@@ -135,13 +135,13 @@
    */
   public String getRelationKeyMaps() {
     StringBuffer script = new StringBuffer();
-    script.append("\nvar arrTeclas = new Array(\n");
-    script.append("new Teclas(\"M\", \"mostrarMenu('buttonMenu');\", null, \"ctrlKey\"),\n");
-    script.append("new Teclas(\"N\", \"submitCommandForm('NEW', false, null, '").append(getData("TabNameUrl")).append("_Edition.html', '_self');\", null, \"ctrlKey\"),\n");
-    script.append("new Teclas(\"E\", \"submitCommandForm('EDIT', true, null, '").append(getData("TabNameUrl")).append("_Edition.html', '_self');\", null, \"ctrlKey\"),\n");
-    script.append("new Teclas(\"B\", \"abrirBusqueda('../businessUtility/Buscador.html', 'BUSCADOR', document.frmMain.inpTabId.value, '").append(getData("WindowNameUrl")).append("/").append(getData("TabNameUrl")).append("_Edition.html', document.frmMain.inpwindowId.value, true);\", null, \"ctrlKey\")\n");
+    script.append("\nvar keyArray = new Array(\n");
+    script.append("new keyArrayItem(\"M\", \"mostrarMenu('buttonMenu');\", null, \"ctrlKey\"),\n");
+    script.append("new keyArrayItem(\"N\", \"submitCommandForm('NEW', false, null, '").append(getData("TabNameUrl")).append("_Edition.html', '_self');\", null, \"ctrlKey\"),\n");
+    script.append("new keyArrayItem(\"E\", \"submitCommandForm('EDIT', true, null, '").append(getData("TabNameUrl")).append("_Edition.html', '_self');\", null, \"ctrlKey\"),\n");
+    script.append("new keyArrayItem(\"B\", \"abrirBusqueda('../businessUtility/Buscador.html', 'BUSCADOR', document.frmMain.inpTabId.value, '").append(getData("WindowNameUrl")).append("/").append(getData("TabNameUrl")).append("_Edition.html', document.frmMain.inpwindowId.value, true);\", null, \"ctrlKey\")\n");
     script.append(");\n");
-    script.append("activarControlTeclas();");
+    script.append("enableShortcuts();");
     return script.toString();
   }
 
@@ -153,30 +153,30 @@
    */
   public String getEditionKeyMaps(boolean isNew) {
     StringBuffer script = new StringBuffer();
-    script.append("\nvar arrTeclas = new Array(\n");
-    script.append("new Teclas(\"M\", \"mostrarMenu('buttonMenu');\", null, \"ctrlKey\")\n");
-    script.append(",new Teclas(\"N\", \"submitCommandForm('NEW', false, null, '").append(getData("TabNameUrl")).append("_Edition.html', '_self', null, true, null, true);\", null, \"ctrlKey\")\n");
-    script.append(",new Teclas(\"L\", \"submitCommandForm('RELATION', true, null, '").append(getData("TabNameUrl")).append("_Relation.html', '_self', null, true, null, true);\", null, \"ctrlKey\")\n");
-    script.append(",new Teclas(\"B\", \"abrirBusqueda('../businessUtility/Buscador.html', 'BUSCADOR', document.frmMain.inpTabId.value, '").append(getData("WindowNameUrl")).append("/").append(getData("TabNameUrl")).append("_Edition.html', document.frmMain.inpwindowId.value, true);\", null, \"ctrlKey\")\n");
+    script.append("\nvar keyArray = new Array(\n");
+    script.append("new keyArrayItem(\"M\", \"mostrarMenu('buttonMenu');\", null, \"ctrlKey\")\n");
+    script.append(",new keyArrayItem(\"N\", \"submitCommandForm('NEW', false, null, '").append(getData("TabNameUrl")).append("_Edition.html', '_self', null, true, null, true);\", null, \"ctrlKey\")\n");
+    script.append(",new keyArrayItem(\"L\", \"submitCommandForm('RELATION', true, null, '").append(getData("TabNameUrl")).append("_Relation.html', '_self', null, true, null, true);\", null, \"ctrlKey\")\n");
+    script.append(",new keyArrayItem(\"B\", \"abrirBusqueda('../businessUtility/Buscador.html', 'BUSCADOR', document.frmMain.inpTabId.value, '").append(getData("WindowNameUrl")).append("/").append(getData("TabNameUrl")).append("_Edition.html', document.frmMain.inpwindowId.value, true);\", null, \"ctrlKey\")\n");
     if (!getData("IsTabReadOnly").equals("Y")) {
       if (!isNew) {
-        script.append(",new Teclas(\"D\", \"submitCommandForm('DELETE', true, null, '").append(getData("TabNameUrl")).append("_Relation.html', '_self');\", null, \"ctrlKey\")\n");
-        script.append(",new Teclas(\"S\", \"submitCommandForm('SAVE_EDIT_EDIT', true, null, '").append(getData("TabNameUrl")).append("_Relation.html', '_self', true, null, null, true);\", null, \"ctrlKey\")\n");
-        script.append(",new Teclas(\"G\", \"submitCommandForm('SAVE_EDIT_RELATION', true, null, '").append(getData("TabNameUrl")).append("_Relation.html', '_self', true, null, null, true);\", null, \"ctrlKey\")\n");
-        script.append(",new Teclas(\"H\", \"submitCommandForm('SAVE_EDIT_NEW', true, null, '").append(getData("TabNameUrl")).append("_Relation.html', '_self', true, null, null, true);\", null, \"ctrlKey\")\n");
-        script.append(",new Teclas(\"A\", \"submitCommandForm('SAVE_EDIT_NEXT', true, null, '").append(getData("TabNameUrl")).append("_Relation.html', '_self', true, null, null, true);\", null, \"ctrlKey\")\n");
+        script.append(",new keyArrayItem(\"D\", \"submitCommandForm('DELETE', true, null, '").append(getData("TabNameUrl")).append("_Relation.html', '_self');\", null, \"ctrlKey\")\n");
+        script.append(",new keyArrayItem(\"S\", \"submitCommandForm('SAVE_EDIT_EDIT', true, null, '").append(getData("TabNameUrl")).append("_Relation.html', '_self', true, null, null, true);\", null, \"ctrlKey\")\n");
+        script.append(",new keyArrayItem(\"G\", \"submitCommandForm('SAVE_EDIT_RELATION', true, null, '").append(getData("TabNameUrl")).append("_Relation.html', '_self', true, null, null, true);\", null, \"ctrlKey\")\n");
+        script.append(",new keyArrayItem(\"H\", \"submitCommandForm('SAVE_EDIT_NEW', true, null, '").append(getData("TabNameUrl")).append("_Relation.html', '_self', true, null, null, true);\", null, \"ctrlKey\")\n");
+        script.append(",new keyArrayItem(\"A\", \"submitCommandForm('SAVE_EDIT_NEXT', true, null, '").append(getData("TabNameUrl")).append("_Relation.html', '_self', true, null, null, true);\", null, \"ctrlKey\")\n");
       } else {
-        script.append(",new Teclas(\"S\", \"submitCommandForm('SAVE_NEW_EDIT', true, null, '").append(getData("TabNameUrl")).append("_Relation.html', '_self', true, null, null, true);\", null, \"ctrlKey\")\n");
-        script.append(",new Teclas(\"G\", \"submitCommandForm('SAVE_NEW_RELATION', true, null, '").append(getData("TabNameUrl")).append("_Relation.html', '_self', true, null, null, true);\", null, \"ctrlKey\")\n");
-        script.append(",new Teclas(\"H\", \"submitCommandForm('SAVE_NEW_NEW', true, null, '").append(getData("TabNameUrl")).append("_Relation.html', '_self', true, null, null, true);\", null, \"ctrlKey\")\n");
+        script.append(",new keyArrayItem(\"S\", \"submitCommandForm('SAVE_NEW_EDIT', true, null, '").append(getData("TabNameUrl")).append("_Relation.html', '_self', true, null, null, true);\", null, \"ctrlKey\")\n");
+        script.append(",new keyArrayItem(\"G\", \"submitCommandForm('SAVE_NEW_RELATION', true, null, '").append(getData("TabNameUrl")).append("_Relation.html', '_self', true, null, null, true);\", null, \"ctrlKey\")\n");
+        script.append(",new keyArrayItem(\"H\", \"submitCommandForm('SAVE_NEW_NEW', true, null, '").append(getData("TabNameUrl")).append("_Relation.html', '_self', true, null, null, true);\", null, \"ctrlKey\")\n");
       }
     }
-    script.append(",new Teclas(\"REPAGE\", \"submitCommandForm('FIRST', false, null, '").append(getData("TabNameUrl")).append("_Edition.html', '_self', null, true);\", null, \"ctrlKey\")\n");
-    script.append(",new Teclas(\"AVPAGE\", \"submitCommandForm('LAST', false, null, '").append(getData("TabNameUrl")).append("_Edition.html', '_self', null, true);\", null, \"ctrlKey\")\n");
-    script.append(",new Teclas(\"RIGHTARROW\", \"submitCommandForm('NEXT', false, null, '").append(getData("TabNameUrl")).append("_Edition.html', '_self', null, true);\", null, \"ctrlKey\")\n");
-    script.append(",new Teclas(\"LEFTARROW\", \"submitCommandForm('PREVIOUS', false, null, '").append(getData("TabNameUrl")).append("_Edition.html', '_self', null, true);\", null, \"ctrlKey\")\n");
+    script.append(",new keyArrayItem(\"REPAGE\", \"submitCommandForm('FIRST', false, null, '").append(getData("TabNameUrl")).append("_Edition.html', '_self', null, true);\", null, \"ctrlKey\")\n");
+    script.append(",new keyArrayItem(\"AVPAGE\", \"submitCommandForm('LAST', false, null, '").append(getData("TabNameUrl")).append("_Edition.html', '_self', null, true);\", null, \"ctrlKey\")\n");
+    script.append(",new keyArrayItem(\"RIGHTARROW\", \"submitCommandForm('NEXT', false, null, '").append(getData("TabNameUrl")).append("_Edition.html', '_self', null, true);\", null, \"ctrlKey\")\n");
+    script.append(",new keyArrayItem(\"LEFTARROW\", \"submitCommandForm('PREVIOUS', false, null, '").append(getData("TabNameUrl")).append("_Edition.html', '_self', null, true);\", null, \"ctrlKey\")\n");
     script.append(");\n");
-    script.append("activarControlTeclas();");
+    script.append("enableShortcuts();");
 
     return script.toString();
   }
@@ -188,10 +188,10 @@
    */
   public String getActionButtonKeyMaps() {
     StringBuffer script = new StringBuffer();
-    script.append("\nvar arrTeclas = new Array(\n");
-    script.append("new Teclas(\"\", \"\", null, null)\n");
+    script.append("\nvar keyArray = new Array(\n");
+    script.append("new keyArrayItem(\"\", \"\", null, null)\n");
     script.append(");\n");
-    script.append("activarControlTeclas();");
+    script.append("enableShortcuts();");
 
     return script.toString();
   }
@@ -203,10 +203,10 @@
    */
   public String getFormKeyMaps() {
     StringBuffer script = new StringBuffer();
-    script.append("\nvar arrTeclas = new Array(\n");
-    script.append("new Teclas(\"M\", \"mostrarMenu('buttonMenu');\", null, \"ctrlKey\")\n");
+    script.append("\nvar keyArray = new Array(\n");
+    script.append("new keyArrayItem(\"M\", \"mostrarMenu('buttonMenu');\", null, \"ctrlKey\")\n");
     script.append(");\n");
-    script.append("activarControlTeclas();");
+    script.append("enableShortcuts();");
 
     return script.toString();
   }
@@ -218,10 +218,10 @@
    */
   public String getReportKeyMaps() {
     StringBuffer script = new StringBuffer();
-    script.append("\nvar arrTeclas = new Array(\n");
-    script.append("new Teclas(\"M\", \"mostrarMenu('buttonMenu');\", null, \"ctrlKey\")\n");
+    script.append("\nvar keyArray = new Array(\n");
+    script.append("new keyArrayItem(\"M\", \"mostrarMenu('buttonMenu');\", null, \"ctrlKey\")\n");
     script.append(");\n");
-    script.append("activarControlTeclas();");
+    script.append("enableShortcuts();");
 
     return script.toString();
   }
--- a/src/org/openbravo/erpCommon/utility/PoolStatus.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/utility/PoolStatus.html	Mon Jan 21 18:49:59 2008 +0000
@@ -43,7 +43,7 @@
       dojo.hostenv.writeIncludes(); //makes debugging in Venkman possible
 </script> 
 </HEAD>
-<BODY onload="xx();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" id="paramBody">
+<BODY onload="xx();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" id="paramBody">
 <FORM method="POST" action="PoolStatus.html" name="frmStatus">
   <INPUT type="hidden" name="Command" value=""></INPUT>
 <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/src/org/openbravo/erpCommon/utility/SetPriority.html	Fri Jan 18 16:25:16 2008 +0000
+++ b/src/org/openbravo/erpCommon/utility/SetPriority.html	Mon Jan 21 18:49:59 2008 +0000
@@ -51,7 +51,7 @@
       dojo.hostenv.writeIncludes(); //makes debugging in Venkman possible
 </script> 
 </HEAD>
-<BODY onload="xx();resizeArea();updateMenuIcon('buttonMenu');focoPrimerControl();" onresize="resizeArea();"  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" id="paramMessage">
+<BODY onload="xx();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();"  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" id="paramMessage">
 <FORM method="GET" action="#">
   <INPUT type="hidden" name="Command"></INPUT>
   <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
--- a/web/js/utils.js	Fri Jan 18 16:25:16 2008 +0000
+++ b/web/js/utils.js	Mon Jan 21 18:49:59 2008 +0000
@@ -11,7 +11,7 @@
  * under the License. 
  * The Original Code is Openbravo ERP. 
  * The Initial Developer of the Original Code is Openbravo SL 
- * All portions are Copyright (C) 2001-2006 Openbravo SL 
+ * All portions are Copyright (C) 2001-2008 Openbravo SL 
  * All Rights Reserved. 
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -41,42 +41,42 @@
 * de la página, control de campos numéricos...
 */
 
-var gBotonPorDefecto;
+var gByDefaultAction;
 var gEnviado=false;
-var arrTeclas=null;
+var keyArray=null;
 var gAUXILIAR=0;
 var gWaitingCallOut=false;
 
 /**
 * Set the focus on the first visible control in the form
-* @param {Form} Formulario Optional- Defines the form containing the field, where we want to set the focus. If is not present, the first form of the page will be used.
-* @param {String} Campo Optional - Name of the control where we want to set the focus. If is not present the first field will be used.
+* @param {Form} form Optional- Defines the form containing the field, where we want to set the focus. If is not present, the first form of the page will be used.
+* @param {String} field Optional - Name of the control where we want to set the focus. If is not present the first field will be used.
 */
-function focoPrimerControl(Formulario, Campo) {
+function setFocusFirstControl(form, field) {
   var encontrado = false;
-  if (Formulario==null) Formulario=document.forms[0];
-  var total = Formulario.length;
+  if (form==null) form=document.forms[0];
+  var total = form.length;
   for(var i=0;i<total; i++)
   {
-    if ((Formulario.elements[i].type != "hidden") && (Formulario.elements[i].type != "button") && (Formulario.elements[i].type != "submit") && (Formulario.elements[i].type != "image") && (Formulario.elements[i].type != "reset")) 
+    if ((form.elements[i].type != "hidden") && (form.elements[i].type != "button") && (form.elements[i].type != "submit") && (form.elements[i].type != "image") && (form.elements[i].type != "reset")) 
     { 
-      if(Campo!=null) {
-        if (Campo == Formulario.elements[i].name && !Formulario.elements[i].readonly && !Formulario.elements[i].disabled) {
-          Formulario.elements[i].focus();
+      if(field!=null) {
+        if (field == form.elements[i].name && !form.elements[i].readonly && !form.elements[i].disabled) {
+          form.elements[i].focus();
           encontrado=true;
           break;
         }
-      } else if (!Formulario.elements[i].readonly && !Formulario.elements[i].disabled) {
+      } else if (!form.elements[i].readonly && !form.elements[i].disabled) {
         try {
-          Formulario.elements[i].focus();
+          form.elements[i].focus();
           encontrado=true;
           break;
         } catch (ignore) {}
       }
     }
   }
-  if (encontrado && Formulario.elements[i].type && Formulario.elements[i].type.indexOf("select")==-1)
-    Formulario.elements[i].select();
+  if (encontrado && form.elements[i].type && form.elements[i].type.indexOf("select")==-1)
+    form.elements[i].select();
 }
 
 /** 
@@ -760,17 +760,17 @@
 
 /**
 * Handles window events. This function handles events such as KeyDown; when a user hit the ENTER key to do somethig by default.
-* @param {Number} CodigoTecla ASCII code of the key pressed.
+* @param {Number} keyCode ASCII code of the key pressed.
 * @returns True if the key pressed is not ment to be handled. False if is a handled key. 
 * @type Boolean
 */
-function pulsarTecla(CodigoTecla) {
-  if (gBotonPorDefecto!=null)
+function keyPress(keyCode) {
+  if (gByDefaultAction!=null)
   {
-    var tecla = (!CodigoTecla) ? window.event.keyCode : CodigoTecla.which;
+    var tecla = (!keyCode) ? window.event.keyCode : keyCode.which;
     if (tecla == 13)
     {
-      eval(gBotonPorDefecto);
+      eval(gByDefaultAction);
       return false;
     }
   }
@@ -780,47 +780,49 @@
 
 /**
 * Defines a defult action on each page, the one that will be executed when the user hit the ENTER key. This function is shared in pages containing frames.
-* @param {String} accion Default command to be executed when the user hit the ENTER key.
+* @param {String} action Default command to be executed when the user hit the ENTER key.
 * @returns Always retrun true.
 * @type Boolean
-* @see #pulsarTecla
+* @see #keyPress
 */
-function porDefecto(accion) {
-  gBotonPorDefecto = accion;
+function byDefaultAction(action) {
+  gByDefaultAction = action;
   if (!document.all)
   {
     document.captureEvents(Event.KEYDOWN);
   }
-  document.onkeydown=pulsarTecla;
+  document.onkeydown=keyPress;
   return true;
 }
 
 
 /**
 * Builds the keys array on each screen. Each key that we want to use should have this structure.
-* @param {Sting} tecla A text version of the handled key.
-* @param {String} evento Event that we want to fire when the key is is pressed.
-* @param {String} campo Name of the field on the window. If is null, is a global event, for the hole window.
-* @param {String} teclaAuxiliar Text defining the auxiliar key. The value could be CTRL for the Control key, ALT for the Alt, null if we don't have to use an auxiliar key.
+* @param {String} key A text version of the handled key.
+* @param {String} event Event that we want to fire when the key is is pressed.
+* @param {String} field Name of the field on the window. If is null, is a global event, for the hole window.
+* @param {String} auxKey Text defining the auxiliar key. The value could be CTRL for the Control key, ALT for the Alt, null if we don't have to use an auxiliar key.
+* @param {Boolean} propagateKey True if the key is going to be prograpated or false if is not going to be propagated.
 */
-function Teclas(tecla, evento, campo, teclaAuxiliar) {
-  this.tecla = tecla;
-  this.evento = evento;
-  this.campo = campo;
-  this.teclaAuxiliar = teclaAuxiliar;
+function keyArrayItem(key, event, field, auxKey, propagateKey) {
+  this.key = key;
+  this.event = event;
+  this.field = field;
+  this.auxKey = auxKey;
+  this.propagateKey = propagateKey;
 }
 
 
 /**
 * Returns the ASCII code of the given key
-* @param {String} codigo Text version of a key
+* @param {String} code Text version of a key
 * @returns The ASCII code of the key
 * @type Number
 */
-function obtenerCodigoTecla(codigo) {
-  if (codigo==null) return 0;
-  else if (codigo.length==1) return codigo.toUpperCase().charCodeAt(0);
-  switch (codigo.toUpperCase()) {
+function obtainKeyCode(code) {
+  if (code==null) return 0;
+  else if (code.length==1) return code.toUpperCase().charCodeAt(0);
+  switch (code.toUpperCase()) {
     case "BACKSPACE": return 8;
     case "TAB": return 9;
     case "ENTER": return 13;
@@ -862,39 +864,39 @@
 
 
 /**
-* Handles the events execution of keys pressed, based on the events registered in the arrTeclas global array.   
-* @param {Event} CodigoTecla Code of the key pressed.
-* @returns True if the key is not registered in the array, false if a event for this key is registered in arrTeclas array.
+* Handles the events execution of keys pressed, based on the events registered in the keyArray global array.   
+* @param {Event} keyCode Code of the key pressed.
+* @returns True if the key is not registered in the array, false if a event for this key is registered in keyArray array.
 * @type Boolean
-* @see #obtenerCodigoTecla
+* @see #obtainKeyCode
 */
-function controlTecla(CodigoTecla) {
-  if (arrTeclas==null || arrTeclas.length==0) return true;
-  if (!CodigoTecla) CodigoTecla = window.event;
-  var tecla = window.event ? CodigoTecla.keyCode : CodigoTecla.which;
-  var target = (CodigoTecla.target?CodigoTecla.target: CodigoTecla.srcElement);
-  //var target = (document.layers) ? CodigoTecla.target : CodigoTecla.srcElement;
-  var total = arrTeclas.length;
+function keyControl(pushedKey) {
+  if (keyArray==null || keyArray.length==0) return true;
+  if (!pushedKey) pushedKey = window.event;
+  var keyCode = window.event ? pushedKey.keyCode : pushedKey.which;
+  var target = (pushedKey.target?pushedKey.target: pushedKey.srcElement);
+  //var target = (document.layers) ? pushedKey.target : pushedKey.srcElement;
+  var total = keyArray.length;
   for (var i=0;i<total;i++) {
-    if (arrTeclas[i]!=null && arrTeclas[i]) {
-      if (tecla == obtenerCodigoTecla(arrTeclas[i].tecla)) {
-        if (arrTeclas[i].teclaAuxiliar==null || arrTeclas[i].teclaAuxiliar=="" || arrTeclas[i].teclaAuxiliar=="null") {
-          if (arrTeclas[i].campo==null || (target!=null && target.name!=null && isIdenticalField(arrTeclas[i].campo, target.name))) {
-            var eventoTrl = replaceEventString(arrTeclas[i].evento, target.name, arrTeclas[i].campo);
+    if (keyArray[i]!=null && keyArray[i]) {
+      if (keyCode == obtainKeyCode(keyArray[i].key)) {
+        if (keyArray[i].auxKey==null || keyArray[i].auxKey=="" || keyArray[i].auxKey=="null") {
+          if (keyArray[i].field==null || (target!=null && target.name!=null && isIdenticalField(keyArray[i].field, target.name))) {
+            var eventoTrl = replaceEventString(keyArray[i].evento, target.name, keyArray[i].field);
             eval(eventoTrl);
             return false;
           }
-        } else if (arrTeclas[i].campo==null || (target!=null && target.name!=null && isIdenticalField(arrTeclas[i].campo, target.name))) {
-          if (arrTeclas[i].teclaAuxiliar=="ctrlKey" && CodigoTecla.ctrlKey && !CodigoTecla.altKey && !CodigoTecla.shiftKey) {
-            var eventoTrl = replaceEventString(arrTeclas[i].evento, target.name, arrTeclas[i].campo);
+        } else if (keyArray[i].field==null || (target!=null && target.name!=null && isIdenticalField(keyArray[i].field, target.name))) {
+          if (keyArray[i].auxKey=="ctrlKey" && pushedKey.ctrlKey && !pushedKey.altKey && !pushedKey.shiftKey) {
+            var eventoTrl = replaceEventString(keyArray[i].evento, target.name, keyArray[i].field);
             eval(eventoTrl);
             return false;
-          } else if (arrTeclas[i].teclaAuxiliar=="altKey" && !CodigoTecla.ctrlKey && CodigoTecla.altKey && !CodigoTecla.shiftKey) {
-            var eventoTrl = replaceEventString(arrTeclas[i].evento, target.name, arrTeclas[i].campo);
+          } else if (keyArray[i].auxKey=="altKey" && !pushedKey.ctrlKey && pushedKey.altKey && !pushedKey.shiftKey) {
+            var eventoTrl = replaceEventString(keyArray[i].evento, target.name, keyArray[i].field);
             eval(eventoTrl);
             return false;
-          } else if (arrTeclas[i].teclaAuxiliar=="shiftKey" && !CodigoTecla.ctrlKey && !CodigoTecla.altKey && CodigoTecla.shiftKey) {
-            var eventoTrl = replaceEventString(arrTeclas[i].evento, target.name, arrTeclas[i].campo);
+          } else if (keyArray[i].auxKey=="shiftKey" && !pushedKey.ctrlKey && !pushedKey.altKey && pushedKey.shiftKey) {
+            var eventoTrl = replaceEventString(keyArray[i].evento, target.name, keyArray[i].field);
             eval(eventoTrl);
             return false;
           }
@@ -939,8 +941,8 @@
 /**
 * Used to activate the key-press handling. Must be called after set the keys global array <em>arraTeclas</em>.
 */
-function activarControlTeclas() {
-  if (arrTeclas==null || arrTeclas.length==0) return true;
+function enableShortcuts() {
+  if (keyArray==null || keyArray.length==0) return true;
 
     var agt=navigator.userAgent.toLowerCase();
 
@@ -950,7 +952,7 @@
   if (agt.indexOf('gecko') != -1)
     document.captureEvents(Event.KEYDOWN);*/
   
-  document.onkeydown=controlTecla;
+  document.onkeydown=keyControl;
   return true;
 }
 
@@ -1477,7 +1479,7 @@
 function tamanoMaximo(campo, tamano, evt) {
   if (campo==null || !campo) return false;
   if (campo.value.length>=tamano) {
-    if (document.layers) CodigoTecla.which=0;
+    if (document.layers) keyCode.which=0;
     else {
       if (evt==null) evt = window.event;
       evt.keyCode=0;
@@ -2320,27 +2322,27 @@
 * @param {Event} evt The event handling object associated with the field.
 * @returns True if is an allowed number, otherwise false.
 * @type Boolean
-* @see #obtenerCodigoTecla
+* @see #obtainKeyCode
 */
 function auto_completar_numero(obj, bolDecimal, bolNegativo, evt) {
   var numero;
   if (document.all) evt = window.event;
   if (document.layers) { numero = evt.which; }
   if (document.all)    { numero = evt.keyCode;}
-  if (numero != obtenerCodigoTecla("ENTER") && numero != obtenerCodigoTecla("LEFTARROW") && numero != obtenerCodigoTecla("RIGHTARROW") && numero != obtenerCodigoTecla("UPARROW") && numero != obtenerCodigoTecla("DOWNARROW") && numero != obtenerCodigoTecla("DELETE") && numero != obtenerCodigoTecla("BACKSPACE") && numero != obtenerCodigoTecla("END") && numero != obtenerCodigoTecla("HOME") && !evt["ctrlKey"]) {
+  if (numero != obtainKeyCode("ENTER") && numero != obtainKeyCode("LEFTARROW") && numero != obtainKeyCode("RIGHTARROW") && numero != obtainKeyCode("UPARROW") && numero != obtainKeyCode("DOWNARROW") && numero != obtainKeyCode("DELETE") && numero != obtainKeyCode("BACKSPACE") && numero != obtainKeyCode("END") && numero != obtainKeyCode("HOME") && !evt["ctrlKey"]) {
     if (numero>95 && numero <106) { //Teclado numérico
       numero = numero - 96;
       if(isNaN(numero)) {
         if (document.all) evt.returnValue = false;
         return false;
       }
-    } else if (numero!=obtenerCodigoTecla("DECIMAL") && numero != obtenerCodigoTecla("NUMBERDECIMAL") && numero != obtenerCodigoTecla("NEGATIVE") && numero != obtenerCodigoTecla("NUMBERNEGATIVE")) { //No es "-" ni "."
+    } else if (numero!=obtainKeyCode("DECIMAL") && numero != obtainKeyCode("NUMBERDECIMAL") && numero != obtainKeyCode("NEGATIVE") && numero != obtainKeyCode("NUMBERNEGATIVE")) { //No es "-" ni "."
       numero = String.fromCharCode(numero);
       if(isNaN(numero)) {
         if (document.all) evt.returnValue = false;
         return false;
       }
-    } else if (numero==obtenerCodigoTecla("DECIMAL") || numero==obtenerCodigoTecla("NUMBERDECIMAL")) { //Es "."
+    } else if (numero==obtainKeyCode("DECIMAL") || numero==obtainKeyCode("NUMBERDECIMAL")) { //Es "."
       if (bolDecimal) {
         if (obj.value==null || obj.value=="") return true;
         else {