Manual windows of bug 0000436 Blank required fields don't take the focus
authorGorka Gil <gorka.gil@openbravo.com>
Mon, 26 May 2008 11:32:48 +0000
changeset 1028 8b85368639cc
parent 1027 2e9052d7de0e
child 1029 6293775928cd
Manual windows of bug 0000436 Blank required fields don't take the focus
src/org/openbravo/erpCommon/ad_actionButton/CopyFromSettlement_F1.html
src/org/openbravo/erpCommon/ad_actionButton/CreateFromMultiple_Receipt.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_Shipment.html
src/org/openbravo/erpCommon/ad_actionButton/ExpenseSOrder.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/InitialClientSetup.html
src/org/openbravo/erpCommon/ad_forms/MaterialReceiptPending.html
src/org/openbravo/erpCommon/ad_forms/RemittanceCancel.html
src/org/openbravo/erpCommon/ad_forms/RequisitionToOrder.html
src/org/openbravo/erpCommon/ad_forms/RequisitionToOrderCreate.html
src/org/openbravo/erpCommon/ad_forms/Role.html
src/org/openbravo/erpCommon/ad_forms/ShowSessionVariables.html
src/org/openbravo/erpCommon/ad_forms/Translation.html
src/org/openbravo/erpCommon/ad_process/CashBankOperations.html
src/org/openbravo/erpCommon/ad_process/ChangeOrderOrg.html
src/org/openbravo/erpCommon/ad_process/CreateAccountingReport.html
src/org/openbravo/erpCommon/ad_process/CreateTaxReport.html
src/org/openbravo/erpCommon/ad_process/ExpenseAPInvoice.html
src/org/openbravo/erpCommon/ad_process/GenerateHelp.html
src/org/openbravo/erpCommon/ad_process/PriceListCreateAll.html
src/org/openbravo/erpCommon/ad_process/SendMailText.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/ReportAgingBalance.html
src/org/openbravo/erpCommon/ad_reports/ReportAnnualCertification.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/ReportCashFlow_F1.html
src/org/openbravo/erpCommon/ad_reports/ReportCashJR.html
src/org/openbravo/erpCommon/ad_reports/ReportDebtPaymentTrack.html
src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedger.html
src/org/openbravo/erpCommon/ad_reports/ReportGuaranteeDateJR.html
src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerDimensionalAnalysesFilter.html
src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerDimensionalAnalysesJRFilter.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/ReportPaymentFilter.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/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/ReportRegisterFilter.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/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/ReportTaxInvoice.html
src/org/openbravo/erpCommon/ad_reports/ReportTrialBalance.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/ReportWorkRequirementDailyEnv.html
src/org/openbravo/erpCommon/info/Account.html
src/org/openbravo/erpCommon/info/BusinessPartner.html
src/org/openbravo/erpCommon/info/BusinessPartnerMultiple.html
src/org/openbravo/erpCommon/info/ImageInfo_F1.html
src/org/openbravo/erpCommon/info/Locator.html
src/org/openbravo/erpCommon/info/Product.html
src/org/openbravo/erpCommon/info/ProductComplete.html
src/org/openbravo/erpCommon/info/ProductMultiple.html
src/org/openbravo/erpCommon/info/Project.html
src/org/openbravo/erpCommon/info/SalesOrder.html
src/org/openbravo/erpCommon/info/SalesOrderLine.html
src/org/openbravo/erpCommon/info/ShipmentReceipt.html
src/org/openbravo/erpCommon/info/ShipmentReceiptLine.html
src/org/openbravo/erpCommon/info/UserContact_F1.html
--- a/src/org/openbravo/erpCommon/ad_actionButton/CopyFromSettlement_F1.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_actionButton/CopyFromSettlement_F1.html	Mon May 26 11:32:48 2008 +0000
@@ -46,12 +46,12 @@
         var frm=document.frmMain;
       if (action=="FIND") {
         if (frm.inpDateFrom.value==null || frm.inpDateFrom.value=="") {
-          frm.inpDateFrom.focus();
+          setWindowElementFocus(frm.inpDateFrom);
           frm.inpDateFrom.select();
           mensaje(5);
           return false;
         } else if (frm.inpDateTo.value==null || frm.inpDateTo.value=="") {
-          frm.inpDateTo.focus();
+          setWindowElementFocus(frm.inpDateTo);
           frm.inpDateTo.select();
           mensaje(5);
           return false;
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateFromMultiple_Receipt.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_actionButton/CreateFromMultiple_Receipt.html	Mon May 26 11:32:48 2008 +0000
@@ -68,15 +68,15 @@
 function depurar(action) {
   var frm=document.frmMain;
   if (frm.inpmProductId.value==null || frm.inpmProductId.value=="") {
-    frm.inpmProductId_DES.focus();
+    setWindowElementFocus(frm.inpmProductId_DES);
   mensaje(7);
   return false;
   } else if (frm.inpmovementqty.value==null || frm.inpmovementqty.value=="") {
-    frm.inpmovementqty.focus();
+    setWindowElementFocus(frm.inpmovementqty);
   mensaje(7);
   return false;
   } else if (frm.inpnumerolineas.value==null || frm.inpnumerolineas.value=="") {
-    frm.inpnumerolineas.focus();
+    setWindowElementFocus(frm.inpnumerolineas);
   mensaje(7);
   return false;
   }
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Bank.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Bank.html	Mon May 26 11:32:48 2008 +0000
@@ -51,12 +51,12 @@
   var frm=document.frmMain;
 	if (action=="FIND_BANK") {
 		if (frm.inpplanneddateFrom.value!=null && frm.inpplanneddateFrom.value!="" && !isValidDate(frm.inpplanneddateFrom.value, frm.inpplanneddateFrom.displayFormat)) {
-			frm.inpplanneddateFrom.focus();
+			setWindowElementFocus(frm.inpplanneddateFrom);
 			frm.inpplanneddateFrom.select();
 			mensaje(5);
 			return false;
 		} else if (frm.inpplanneddateTo.value!=null && frm.inpplanneddateTo.value!="" && !isValidDate(frm.inpplanneddateTo.value, frm.inpplanneddateTo.displayFormat)) {
-			frm.inpplanneddateTo.focus();
+			setWindowElementFocus(frm.inpplanneddateTo);
 			frm.inpplanneddateTo.select();
 			mensaje(5);
 			return false;
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_CRemittance.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_CRemittance.html	Mon May 26 11:32:48 2008 +0000
@@ -48,23 +48,23 @@
   	var frm=document.frmMain;
 	if (action=="FIND_SETTLEMENT") {
 		if (frm.inpplanneddateFrom.value!=null && frm.inpplanneddateFrom.value!="" && !isValidDate(frm.inpplanneddateFrom.value, frm.inpplanneddateFrom.displayFormat)) {
-			frm.inpplanneddateFrom.focus();
+			setWindowElementFocus(frm.inpplanneddateFrom);
 			frm.inpplanneddateFrom.select();
 			mensaje(5);
 			return false;
 		} else if (frm.inpplanneddateTo.value!=null && frm.inpplanneddateTo.value!="" && !isValidDate(frm.inpplanneddateTo.value, frm.inpplanneddateTo.displayFormat)) {
-			frm.inpplanneddateTo.focus();
+			setWindowElementFocus(frm.inpplanneddateTo);
 			frm.inpplanneddateTo.select();
 			mensaje(5);
 			return false;
 		} else if (frm.inpamountFrom.value!=null && frm.inpamountFrom.value!="" && !campoNumerico(frm.inpamountFrom, true, true)) {
-			frm.inpamountFrom.focus();
+			setWindowElementFocus(frm.inpamountFrom);
 			return false;
 		} else if (frm.inpamountTo.value!=null && frm.inpamountTo.value!="" && !campoNumerico(frm.inpamountTo, true, true)) {
-			frm.inpamountTo.focus();
+			setWindowElementFocus(frm.inpamountTo);
 			return false;
 		} else if (frm.inpamount.value!=null && frm.inpamount.value!="" && !campoNumerico(frm.inpamount, true, true)) {
-			frm.inpamount.focus();
+			setWindowElementFocus(frm.inpamount);
 			return false;
 		}
 	} else if (radioValue(frm.inpcDebtPaymentId)==null) {
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_DPManagement.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_DPManagement.html	Mon May 26 11:32:48 2008 +0000
@@ -49,17 +49,17 @@
   	var frm=document.frmMain;
 	if (action=="FIND_SETTLEMENT") {
 		if (frm.inpplanneddateFrom.value!=null && frm.inpplanneddateFrom.value!="" && !isValidDate(frm.inpplanneddateFrom.value, frm.inpplanneddateFrom.displayFormat)) {
-			frm.inpplanneddateFrom.focus();
+			setWindowElementFocus(frm.inpplanneddateFrom);
 			frm.inpplanneddateFrom.select();
 			mensaje(5);
 			return false;
 		} else if (frm.inpplanneddateTo.value!=null && frm.inpplanneddateTo.value!="" && !isValidDate(frm.inpplanneddateTo.value, frm.inpplanneddateTo.displayFormat)) {
-			frm.inpplanneddateTo.focus();
+			setWindowElementFocus(frm.inpplanneddateTo);
 			frm.inpplanneddateTo.select();
 			mensaje(5);
 			return false;
 		} else if (frm.inpamount.value!=null && frm.inpamount.value!="" && !campoNumerico(frm.inpamount, true, true)) {
-			frm.inpamount.focus();
+			setWindowElementFocus(frm.inpamount);
 			return false;
 		}
 	} else if (radioValue(frm.inpcDebtPaymentId)==null) {
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Shipment.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Shipment.html	Mon May 26 11:32:48 2008 +0000
@@ -48,7 +48,7 @@
 		mensaje(1);
 		return false;
 	} else if (frm.inpmLocatorId.value==null || frm.inpmLocatorId.value=="") {
-		frm.inpmLocatorId_DES.focus();
+		setWindowElementFocus(frm.inpmLocatorId_DES);
 		mensaje(7);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/ad_actionButton/ExpenseSOrder.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_actionButton/ExpenseSOrder.html	Mon May 26 11:32:48 2008 +0000
@@ -67,17 +67,17 @@
 function depurar() {
 	var frm = document.frmMain;
 	if (frm.inpDateFrom.value!=null && frm.inpDateFrom.value!="" && !isValidDate(frm.inpDateFrom.value, frm.inpDateFrom.displayFormat)) {
-			frm.inpDateFrom.focus();
+			setWindowElementFocus(frm.inpDateFrom);
 			frm.inpDateFrom.select();
 			mensaje(5);
 			return false;
 	} else if (frm.inpDateTo.value!=null && frm.inpDateTo.value!="" && !isValidDate(frm.inpDateTo.value, frm.inpDateTo.displayFormat)) {
-			frm.inpDateTo.focus();
+			setWindowElementFocus(frm.inpDateTo);
 			frm.inpDateTo.select();
 			mensaje(5);
 			return false;
 	} else if (frm.inpDateordered.value!=null && frm.inpDateordered.value!="" && !isValidDate(frm.inpDateordered.value, frm.inpDateordered.displayFormat)) {
-			frm.inpDateordered.focus();
+			setWindowElementFocus(frm.inpDateordered);
 			frm.inpDateordered.select();
 			mensaje(5);
 			return false;
--- a/src/org/openbravo/erpCommon/ad_forms/EdiFileImport.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/EdiFileImport.html	Mon May 26 11:32:48 2008 +0000
@@ -51,7 +51,7 @@
 function depurar() {
 	var frm = document.frmSelector;
 	if ((frm.inpFile.value==null || frm.inpFile.value=="") && (frm.inpadImpformatId.value==null || frm.inpadImpformatId.value=="") ) {
-		frm.inpFile.focus();
+		setWindowElementFocus(frm.inpFile);
 		mensaje(7);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/ad_forms/FileImport.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/FileImport.html	Mon May 26 11:32:48 2008 +0000
@@ -53,12 +53,12 @@
 function depurar() {
 	var frm = document.frmSelector;
 	if ((frm.inpFile.value==null || frm.inpFile.value=="")){
-		frm.inpFile.focus();
+		setWindowElementFocus(frm.inpFile);
 		mensaje(7);
 		return false;
 	}
 	if ((frm.inpadImpformatId.value==null || frm.inpadImpformatId.value=="")){
-		frm.inpadImpformatId.focus();
+		setWindowElementFocus(frm.inpadImpformatId);
 		mensaje(7);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/ad_forms/GenerateInvoicesmanual.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/GenerateInvoicesmanual.html	Mon May 26 11:32:48 2008 +0000
@@ -68,7 +68,7 @@
     setProcessingMode('window',true);
   } else if (action=="FIND") {
     if (frm.inpadOrgId.value==null || frm.inpadOrgId.value=="") {
-    frm.inpadOrgId.focus();
+    setWindowElementFocus(frm.inpadOrgId);
     mensaje(7);
     return false;
     }
--- a/src/org/openbravo/erpCommon/ad_forms/GenerateShipmentsmanual.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/GenerateShipmentsmanual.html	Mon May 26 11:32:48 2008 +0000
@@ -62,7 +62,7 @@
 			} 
 	} else if (action=="FIND") {
 			if (frm.inpadOrgId.value==null || frm.inpadOrgId.value=="") {
-			frm.inpadOrgId.focus();
+			setWindowElementFocus(frm.inpadOrgId);
 			mensaje(7);
 			return false;
 			}
--- a/src/org/openbravo/erpCommon/ad_forms/InitialClientSetup.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/InitialClientSetup.html	Mon May 26 11:32:48 2008 +0000
@@ -59,13 +59,13 @@
 <SCRIPT language="JavaScript" type="text/javascript">
 function depurar(accion) {
 	var frm = document.frmMain;
-  if (frm.inpCliente.value==null || frm.inpCliente.value=="") {frm.inpCliente.focus();  mensaje(7); return false; }
-  if (frm.inpMoneda.value==null || frm.inpMoneda.value=="") {frm.inpMoneda.focus();  mensaje(7); return false; }
-  if (frm.inpPais.value==null || frm.inpPais.value=="") {frm.inpPais.focus();  mensaje(7); return false; }
-  if (frm.inpOrganizacion.value==null || frm.inpOrganizacion.value=="") {frm.inpOrganizacion.focus(); mensaje(7); return false; }
-  if (frm.inpClienteUsuario.value==null || frm.inpClienteUsuario.value=="") {frm.inpClienteUsuario.focus(); mensaje(7); return false; }
-  if (frm.inpOrganizacionUsuario.value==null || frm.inpOrganizacionUsuario.value=="") {frm.inpOrganizacionUsuario.focus();  mensaje(7); return false; }
-  if (frm.inpCiudad.value==null || frm.inpCiudad.value=="") {frm.inpCiudad.focus(); mensaje(7); return false; }
+  if (frm.inpCliente.value==null || frm.inpCliente.value=="") {setWindowElementFocus(frm.inpCliente);  mensaje(7); return false; }
+  if (frm.inpMoneda.value==null || frm.inpMoneda.value=="") {setWindowElementFocus(frm.inpMoneda);  mensaje(7); return false; }
+  if (frm.inpPais.value==null || frm.inpPais.value=="") {setWindowElementFocus(frm.inpPais);  mensaje(7); return false; }
+  if (frm.inpOrganizacion.value==null || frm.inpOrganizacion.value=="") {setWindowElementFocus(frm.inpOrganizacion); mensaje(7); return false; }
+  if (frm.inpClienteUsuario.value==null || frm.inpClienteUsuario.value=="") {setWindowElementFocus(frm.inpClienteUsuario); mensaje(7); return false; }
+  if (frm.inpOrganizacionUsuario.value==null || frm.inpOrganizacionUsuario.value=="") {setWindowElementFocus(frm.inpOrganizacionUsuario);  mensaje(7); return false; }
+  if (frm.inpCiudad.value==null || frm.inpCiudad.value=="") {setWindowElementFocus(frm.inpCiudad); mensaje(7); return false; }
 	return true;
 }
 
--- a/src/org/openbravo/erpCommon/ad_forms/MaterialReceiptPending.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/MaterialReceiptPending.html	Mon May 26 11:32:48 2008 +0000
@@ -61,7 +61,7 @@
 			} 
 	} else if (action=="FIND") {
 			if (frm.inpadOrgId.value==null || frm.inpadOrgId.value=="") {
-			frm.inpadOrgId.focus();
+			setWindowElementFocus(frm.inpadOrgId);
 			mensaje(7);
 			return false;
 			}
--- a/src/org/openbravo/erpCommon/ad_forms/RemittanceCancel.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/RemittanceCancel.html	Mon May 26 11:32:48 2008 +0000
@@ -88,11 +88,11 @@
 
 function depurar() {
   if (document.forms[0].inpDateAcct.value==null || document.forms[0].inpDateAcct.value=="") {
-    document.forms[0].inpDateAcct.focus();
+    setWindowElementFocus(document.forms[0].inpDateAcct);
     mensaje(7);
     return false;
   } /*else if (!validateDate(document.forms[0].inpDateAcct.value)) {
-    document.forms[0].inpDateAcct.focus();
+    setWindowElementFocus(document.forms[0].inpDateAcct);
     document.forms[0].inpDateAcct.select();
     return false;
   }*/
--- a/src/org/openbravo/erpCommon/ad_forms/RequisitionToOrder.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/RequisitionToOrder.html	Mon May 26 11:32:48 2008 +0000
@@ -53,7 +53,7 @@
         var frm=document.frmMain;
         if (action=="FIND") {
           if (frm.inpadOrgId.value==null || frm.inpadOrgId.value=="") {
-            frm.inpadOrgId.focus();
+            setWindowElementFocus(frm.inpadOrgId);
             mensaje(7);
             return false;
           }
--- a/src/org/openbravo/erpCommon/ad_forms/RequisitionToOrderCreate.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/RequisitionToOrderCreate.html	Mon May 26 11:32:48 2008 +0000
@@ -56,27 +56,27 @@
       function depurar(action) {
         var frm=document.frmMain;
         if (frm.inpOrderDate.value==null || frm.inpOrderDate.value=="") {
-            frm.inpOrderDate.focus();
+            setWindowElementFocus(frm.inpOrderDate);
             mensaje(7);
             return false;
         }
         if (frm.inpOrderVendorId.value==null || frm.inpOrderVendorId.value=="") {
-            frm.inpOrderVendorId_DES.focus();
+            setWindowElementFocus(frm.inpOrderVendorId_DES);
             mensaje(7);
             return false;
         }
         if (frm.inpPriceListId.value==null || frm.inpPriceListId.value=="") {
-            frm.inpPriceListId.focus();
+            setWindowElementFocus(frm.inpPriceListId);
             mensaje(7);
             return false;
         }
         if (frm.inpOrderOrg.value==null || frm.inpOrderOrg.value=="") {
-            frm.inpOrderOrg.focus();
+            setWindowElementFocus(frm.inpOrderOrg);
             mensaje(7);
             return false;
         }
         if (frm.inpWarehouse.value==null || frm.inpWarehouse.value=="") {
-            frm.inpWarehouse.focus();
+            setWindowElementFocus(frm.inpWarehouse);
             mensaje(7);
             return false;
         }
--- a/src/org/openbravo/erpCommon/ad_forms/Role.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/Role.html	Mon May 26 11:32:48 2008 +0000
@@ -37,19 +37,19 @@
 function depurar() {
   var frm = document.frmMain;
   if (frm.inpClaveOld.value==null || frm.inpClaveOld.value=="") {
-    frm.inpClaveOld.focus();
+    setWindowElementFocus(frm.inpClaveOld);
     mensaje(7);
     return false;
     } else if (frm.inpClaveNew.value==null || frm.inpClaveNew.value=="") {
-    frm.inpClaveNew.focus();
+    setWindowElementFocus(frm.inpClaveNew);
     mensaje(7);
     return false;
     } else if (frm.inpClaveNew2.value==null || frm.inpClaveNew2.value=="") {
-    frm.inpClaveNew2.focus();
+    setWindowElementFocus(frm.inpClaveNew2);
     mensaje(7);
     return false;
     } else if (frm.inpClaveNew.value != frm.inpClaveNew2.value) {
-    frm.inpClaveNew.focus();
+    setWindowElementFocus(frm.inpClaveNew);
     mensaje(20);
     return false;
   }
--- a/src/org/openbravo/erpCommon/ad_forms/ShowSessionVariables.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/ShowSessionVariables.html	Mon May 26 11:32:48 2008 +0000
@@ -55,7 +55,7 @@
                 var frm=document.frmMain;
                 if (action=="SAVE_NEW") {
                     if (frm.inpNombreVariable.value==null || frm.inpNombreVariable.value=="") {
-			            frm.inpNombreVariable.focus();
+			            setWindowElementFocus(frm.inpNombreVariable);
 			            mensaje(7);
 			            return false;
                     } 
--- a/src/org/openbravo/erpCommon/ad_forms/Translation.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/Translation.html	Mon May 26 11:32:48 2008 +0000
@@ -44,7 +44,7 @@
 function depurar() {
 	var frm = document.frmSelector;
 	if ((frm.inpFile.value==null || frm.inpFile.value=="") && (frm.inpadImpformatId.value==null || frm.inpadImpformatId.value=="") ) {
-		frm.inpFile.focus();
+		setWindowElementFocus(frm.inpFile);
 		mensaje(7);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/ad_process/CashBankOperations.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_process/CashBankOperations.html	Mon May 26 11:32:48 2008 +0000
@@ -54,47 +54,47 @@
 function depurar() {
 	var frm = document.frmMain;
 	if ((frm.inpCBankAccountFromID.value==null || frm.inpCBankAccountFromID.value=="") && (frm.inpCCashFromID.value==null || frm.inpCCashFromID.value=="")) {
-		frm.inpCBankAccountFromID.focus();
+		setWindowElementFocus(frm.inpCBankAccountFromID);
 		mensaje(1);
 		return false;
 	}
 	if ((frm.inpCBankAccountFromID.value!=null && frm.inpCBankAccountFromID.value!="") && (frm.inpCCashFromID.value!=null && frm.inpCCashFromID.value!="")) {
-		frm.inpCBankAccountFromID.focus();
+		setWindowElementFocus(frm.inpCBankAccountFromID);
 		mensaje(14);
 		return false;
 	}
 	if ((frm.inpCBankAccountToID.value==null || frm.inpCBankAccountToID.value=="") && (frm.inpCCashToID.value==null || frm.inpCCashToID.value=="")) {
-		frm.inpCBankAccountToID.focus();
+		setWindowElementFocus(frm.inpCBankAccountToID);
 		mensaje(1);
 		return false;
 	}
 	if ((frm.inpCBankAccountToID.value!=null && frm.inpCBankAccountToID.value!="") && (frm.inpCCashToID.value!=null && frm.inpCCashToID.value!="")) {
-		frm.inpCBankAccountToID.focus();
+		setWindowElementFocus(frm.inpCBankAccountToID);
 		mensaje(15);
 		return false;
 	}
 	if ((frm.inpAmount.value <= 0)) {
-		frm.inpAmount.focus();
+		setWindowElementFocus(frm.inpAmount);
 		mensaje(9);
 		return false;
 	}
 	if ((frm.inppaymentruleFrom.value==null || frm.inppaymentruleFrom.value=="")) {
-		frm.inppaymentruleFrom.focus();
+		setWindowElementFocus(frm.inppaymentruleFrom);
 		mensaje(1);
 		return false;
 	}
 	if ((frm.inppaymentruleTo.value==null || frm.inppaymentruleTo.value=="")) {
-		frm.inppaymentruleTo.focus();
+		setWindowElementFocus(frm.inppaymentruleTo);
 		mensaje(1);
 		return false;
 	}
 	if ((frm.inpAmount.value==null || frm.inpAmount.value=="")) {
-		frm.inpAmount.focus();
+		setWindowElementFocus(frm.inpAmount);
 		mensaje(1);
 		return false;
 	}
 	if ((frm.inpmovementdate.value==null || frm.inpmovementdate.value=="")) {
-		frm.inpmovementdate.focus();
+		setWindowElementFocus(frm.inpmovementdate);
 		mensaje(1);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/ad_process/ChangeOrderOrg.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_process/ChangeOrderOrg.html	Mon May 26 11:32:48 2008 +0000
@@ -59,7 +59,7 @@
 			return false;			
 			} 
 	 		if (frm.inpadOrgIdNew.value==null || frm.inpadOrgIdNew.value=="") {
-            setWindowElementFocus(inpadOrgIdNew);
+            setWindowElementFocus(frm.inpadOrgIdNew);
             mensaje(7);
             return false;
             }
--- a/src/org/openbravo/erpCommon/ad_process/CreateAccountingReport.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_process/CreateAccountingReport.html	Mon May 26 11:32:48 2008 +0000
@@ -89,7 +89,7 @@
 }
 function depurar(){
 	if (frm.inpcAcctSchemaId.value == null || frm.inpcAcctSchemaId.value == "") {
-		frm.inpcAcctSchemaId.focus();
+		setWindowElementFocus(frm.inpcAcctSchemaId);
 		mensaje(7);
 		return false;
 	} return true;
--- a/src/org/openbravo/erpCommon/ad_process/CreateTaxReport.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_process/CreateTaxReport.html	Mon May 26 11:32:48 2008 +0000
@@ -80,7 +80,7 @@
 function depurar(command) {
 	var frm = document.frmMain;
 	if (frm.inpTaxReportId.value == ""){
-		frm.inpTaxReportId.focus();
+		setWindowElementFocus(frm.inpTaxReportId);
 		mensaje(7);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/ad_process/ExpenseAPInvoice.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_process/ExpenseAPInvoice.html	Mon May 26 11:32:48 2008 +0000
@@ -55,35 +55,35 @@
 function depurar() {
 	var frm = document.frmMain;
 	if (frm.inpReportDateFrom.value!=null && frm.inpReportDateFrom.value!="" && !isValidDate(frm.inpReportDateFrom.value, frm.inpReportDateFrom.displayFormat)) {
-			frm.inpReportDateFrom.focus();
+			setWindowElementFocus(frm.inpReportDateFrom);
 			frm.inpReportDateFrom.select();
 			mensaje(5);
 			return false;
 	} else if (frm.inpReportDateTo.value!=null && frm.inpReportDateTo.value!="" && !isValidDate(frm.inpReportDateTo.value, frm.inpReportDateTo.displayFormat)) {
-			frm.inpReportDateTo.focus();
+			setWindowElementFocus(frm.inpReportDateTo);
 			frm.inpReportDateTo.select();
 			mensaje(5);
 			return false;
 	} else if (frm.inpDateinvoiced.value!=null && frm.inpDateinvoiced.value!="" && !isValidDate(frm.inpDateinvoiced.value, frm.inpDateinvoiced.displayFormat)) {
-			frm.inpDateinvoiced.focus();
+			setWindowElementFocus(frm.inpDateinvoiced);
 			frm.inpDateinvoiced.select();
 			mensaje(5);
 			return false;
 	}
   if ((frm.inpReportDateFrom.value==null || frm.inpReportDateFrom.value=="")) {
-    frm.inpReportDateFrom.focus();
+    	setWindowElementFocus(frm.inpReportDateFrom);
 		frm.inpReportDateFrom.select();
 		mensaje(1);
 		return false;
 	}
   if ((frm.inpReportDateTo.value==null || frm.inpReportDateTo.value=="")) {
-    frm.inpReportDateTo.focus();
+    	setWindowElementFocus(frm.inpReportDateTo);
 		frm.inpReportDateTo.select();
 		mensaje(1);
 		return false;
 	}
   if ((frm.inpDateinvoiced.value == null || frm.inpDateinvoiced.value == "")) {
-    frm.inpDateinvoiced.focus();
+    	setWindowElementFocus(frm.inpDateinvoiced);
 		frm.inpDateinvoiced.select();
 		mensaje(1);
 		return false;
--- a/src/org/openbravo/erpCommon/ad_process/GenerateHelp.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_process/GenerateHelp.html	Mon May 26 11:32:48 2008 +0000
@@ -52,7 +52,7 @@
 function depurar() {
 	var frm = document.frmMain;
 	if (frm.inpPath.value==null || frm.inpPath.value=="") {
-		frm.inpPath.focus();
+		setWindowElementFocus(frm.inpPath);
 		mensaje(1);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/ad_process/PriceListCreateAll.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_process/PriceListCreateAll.html	Mon May 26 11:32:48 2008 +0000
@@ -53,7 +53,7 @@
 <SCRIPT language="JavaScript" type="text/javascript">
 function depurar(strCommand) {
 	if (document.forms[0].inpmPricelistVersionId.selectedIndex<1) {
-		document.forms[0].inpmPricelistVersionId.focus();
+		setWindowElementFocus(document.forms[0].inpmPricelistVersionId);
 		mensaje(1);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/ad_process/SendMailText.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_process/SendMailText.html	Mon May 26 11:32:48 2008 +0000
@@ -53,11 +53,11 @@
             function depurar() {
                 var frm = document.frmMain;
                 if (frm.inpMailTemplate.value==null || frm.inpMailTemplate.value=="") {
-                    frm.inpMailTemplate.focus();
+                    setWindowElementFocus(frm.inpMailTemplate);
                     mensaje(7);
                     return false;
                 } else if (frm.inpInterestArea.value==null || frm.inpInterestArea.value=="") {
-                    frm.inpInterestArea.focus();
+                    setWindowElementFocus(frm.inpInterestArea);
                     mensaje(1);
                     return false;
                 }
--- a/src/org/openbravo/erpCommon/ad_reports/GeneralAccountingReports.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/GeneralAccountingReports.html	Mon May 26 11:32:48 2008 +0000
@@ -54,27 +54,27 @@
 function depurar(command) {
 	var frm = document.frmMain;
 	if (frm.inpAgno.value == null || frm.inpAgno.value == "") {
-		frm.inpAgno.focus();
+		setWindowElementFocus(frm.inpAgno);
 		mensaje(7);
 		return false;
 	} else if (frm.inpAgnoRef.value == null || frm.inpAgnoRef.value == "") {
-		frm.inpAgnoRef.focus();
+		setWindowElementFocus(frm.inpAgnoRef);
 		mensaje(7);
 		return false;
 	} else if (frm.inpOrganizacion.value == ""){
-		frm.inpOrganizacion.focus();
+		setWindowElementFocus(frm.inpOrganizacion);
 		mensaje(1);
 		return false;
 	} else if (frm.inpcAcctSchemaId.value == ""){
-		frm.inpcAcctSchemaId.focus();
+		setWindowElementFocus(frm.inpcAcctSchemaId);
 		mensaje(1);
 		return false;
 	} else if (frm.inpcElementvalueId.value == ""){
-		frm.inpcElementvalueId.focus();
+		setWindowElementFocus(frm.inpcElementvalueId);
 		mensaje(1);
 		return false;
 	} else if (frm.inpLevel.value == ""){
-		frm.inpLevel.focus();
+		setWindowElementFocus(frm.inpLevel);
 		mensaje(1);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/ad_reports/GenerateModel347.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/GenerateModel347.html	Mon May 26 11:32:48 2008 +0000
@@ -54,13 +54,13 @@
 function depurar()
 {
 	if(document.forms[0].inpDateFrom.value==null || document.forms[0].inpDateTo.value==null || document.forms[0].inpDateFrom.value=="" || document.forms[0].inpDateTo.value==""){
-			document.forms[0].inpDateFrom.focus();
+			setWindowElementFocus(document.forms[0].inpDateFrom);
 			mensaje(7);
 			return false;
 	} 
 	if (document.forms[0].inpReportType=="Sustitutive"){
 		if (document.forms[0].inpComplementar==null || document.forms[0].inpComplementar==""){
-			document.forms[0].inpComplementar.focus();
+			setWindowElementFocus(document.forms[0].inpComplementar);
 			mensaje(7);
 			return false;
 		}
--- a/src/org/openbravo/erpCommon/ad_reports/MInOutTraceReports.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/MInOutTraceReports.html	Mon May 26 11:32:48 2008 +0000
@@ -53,7 +53,7 @@
 function depurar(command) {
 	var frm = document.frmMain;
 	if (frm.inpmProductId.value==null || frm.inpmProductId.value=="") {
-		frm.inpmProductId_D.focus();
+		setWindowElementFocus(frm.inpmProductId_D);
 		mensaje(1);
 		return false;
 	} 
--- a/src/org/openbravo/erpCommon/ad_reports/ReportAccountingCountDimensionalAnalysesFilter.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportAccountingCountDimensionalAnalysesFilter.html	Mon May 26 11:32:48 2008 +0000
@@ -63,26 +63,26 @@
 {
 	var frm = document.frmMain;
 	if (frm.inpAccountingCount.value == null || frm.inpAccountingCount.value == ""){
-		frm.inpAccountingCount.focus();
+		setWindowElementFocus(frm.inpAccountingCount);
 		mensaje(7);
 		return false;
 	}
   if (frm.inpDateFrom.value == null || frm.inpDateFrom.value == "") {
-		frm.inpDateFrom.focus();
+		setWindowElementFocus(frm.inpDateFrom);
 		mensaje(7);
 		return false;
 	} else if (frm.inpDateTo.value == null || frm.inpDateTo.value == ""){
-		frm.inpDateTo.focus();
+		setWindowElementFocus(frm.inpDateTo);
 		mensaje(7);
 		return false;
 	}
   if (frm.inpComparative.checked) {
     if ((frm.inpDateFromRef.value == null || frm.inpDateFromRef.value == "")) {
-      frm.inpDateFromRef.focus();
+      setWindowElementFocus(frm.inpDateFromRef);
       mensaje(7);
       return false;
     } else if ((frm.inpDateToRef.value == null || frm.inpDateToRef.value == "")){
-      frm.inpDateToRef.focus();
+      setWindowElementFocus(frm.inpDateToRef);
       mensaje(7);
       return false;
     }
--- a/src/org/openbravo/erpCommon/ad_reports/ReportAgingBalance.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportAgingBalance.html	Mon May 26 11:32:48 2008 +0000
@@ -73,47 +73,47 @@
   function depurar() {
 	seleccionarListCompleto(document.frmMain.inpcBPartnerId_IN);
     if (!esNumero(document.frmMain.paramColumn1.value,false,true) || document.frmMain.paramColumn1.value==""){
-  	  document.frmMain.paramColumn1.focus();
+  	  setWindowElementFocus(document.frmMain.paramColumn1);
   	  mensaje(4);
   	  return false;
     }
     if (!esNumero(document.frmMain.paramColumn2.value,false,true) || document.frmMain.paramColumn2.value==""){
-  	  document.frmMain.paramColumn2.focus();
+  	  setWindowElementFocus(document.frmMain.paramColumn2);
   	  mensaje(4);
   	  return false;
     }
     if (!esNumero(document.frmMain.paramColumn3.value,false,true) || document.frmMain.paramColumn3.value=="") {
-	  document.frmMain.paramColumn3.focus();
+	  setWindowElementFocus(document.frmMain.paramColumn3);
   	  mensaje(4);
   	  return false;
     }
     if (!esNumero(document.frmMain.paramColumn4.value,false,true) || document.frmMain.paramColumn4.value=="") {
-  	  document.frmMain.paramColumn4.focus();
+  	  setWindowElementFocus(document.frmMain.paramColumn4);
   	  mensaje(4);
   	  return false;
     }
     if (Number(document.frmMain.paramColumn1.value)<0) {
-  	  document.frmMain.paramColumn1.focus();
+  	  setWindowElementFocus(document.frmMain.paramColumn1);
 	  mensaje(9);
 	  return false;
     }
     if (Number(document.frmMain.paramColumn2.value)<=Number(document.frmMain.paramColumn1.value)) {
-  	  document.frmMain.paramColumn2.focus();
+  	  setWindowElementFocus(document.frmMain.paramColumn2);
 	  mensaje(9);
 	  return false;
     }
     if (Number(document.frmMain.paramColumn3.value)<=Number(document.frmMain.paramColumn2.value)) {
-  	  document.frmMain.paramColumn3.focus();
+  	  setWindowElementFocus(document.frmMain.paramColumn3);
 	  mensaje(9);
 	  return false;
     }
     if (Number(document.frmMain.paramColumn4.value)<=Number(document.frmMain.paramColumn3.value)) {
-  	  document.frmMain.paramColumn4.focus();
+  	  setWindowElementFocus(document.frmMain.paramColumn4);
 	  mensaje(9);
 	  return false;
     }
     if (inputValue(document.frmMain.inpOrg) == null || inputValue(document.frmMain.inpOrg) == "") {
-      document.frmMain.inpOrg.focus();
+      setWindowElementFocus(document.frmMain.inpOrg);
       mensaje(7);
       return false;
     }
--- a/src/org/openbravo/erpCommon/ad_reports/ReportAnnualCertification.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportAnnualCertification.html	Mon May 26 11:32:48 2008 +0000
@@ -84,11 +84,11 @@
 function depurar(){
 	var frm = document.frmMain;
 	if (frm.inpDateFrom.value == null || frm.inpDateFrom.value == "") {
-		frm.inpDateFrom.focus();
+		setWindowElementFocus(frm.inpDateFrom);
 		mensaje(7);
 		return false;
 	} else if (frm.inpDateTo.value == null || frm.inpDateTo.value == ""){
-		frm.inpDateTo.focus();
+		setWindowElementFocus(frm.inpDateTo);
 		mensaje(7);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportBank.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportBank.html	Mon May 26 11:32:48 2008 +0000
@@ -56,7 +56,7 @@
 function depurar() {
   var frm=document.frmMain;
     if (inputValue(frm.inpDateFrom)==null || inputValue(frm.inpDateFrom)=="") {
-      frm.inpDateFrom.focus();
+      setWindowElementFocus(frm.inpDateFrom);
       mensaje(7);
       return false;
     }
--- a/src/org/openbravo/erpCommon/ad_reports/ReportBankJR.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportBankJR.html	Mon May 26 11:32:48 2008 +0000
@@ -56,12 +56,12 @@
 function depurar() {
   var frm=document.frmMain;
   if (frm.inpDateFrom.value==null || frm.inpDateFrom.value=="") {
-      frm.inpDateFrom.focus();
+	  setWindowElementFocus(frm.inpDateFrom);
       mensaje(7);
       return false;
     }
   if (frm.inpDateTo.value==null || frm.inpDateTo.value=="") {
-      frm.inpDateTo.focus();
+      setWindowElementFocus(frm.inpDateTo);
       mensaje(7);
       return false;
     }
--- a/src/org/openbravo/erpCommon/ad_reports/ReportBudgetGenerateExcel.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportBudgetGenerateExcel.html	Mon May 26 11:32:48 2008 +0000
@@ -64,11 +64,11 @@
 function depurar() {
   var frm=document.frmMain;
     if (inputValue(frm.paramAccountSelect)==null || inputValue(frm.paramAccountSelect)=="") {
-      frm.paramAccountSelect.focus();
+      setWindowElementFocus(frm.paramAccountSelect);
       mensaje(7);
       return false;
     }  else if (inputValue(frm.inpcAcctSchemaId)==null || inputValue(frm.inpcAcctSchemaId)=="") {
-      frm.inpcAcctSchemaId.focus();
+      setWindowElementFocus(frm.inpcAcctSchemaId);
       mensaje(7);
       return false;
     }
--- a/src/org/openbravo/erpCommon/ad_reports/ReportCash.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportCash.html	Mon May 26 11:32:48 2008 +0000
@@ -56,12 +56,12 @@
 function depurar(action, Formulario, valor) {
   var frm=document.frmMain;
   if (frm.inpDateFrom.value!=null && frm.inpDateFrom.value!="" && !validateDate(frm.inpDateFrom.value)) {
-      frm.inpDateFrom.focus();
+      setWindowElementFocus(frm.inpDateFrom);
       frm.inpDateFrom.select();
       return false;
     }
   if (frm.inpDateTo.value!=null && frm.inpDateTo.value!="" && !validateDate(frm.inpDateTo.value)) {
-      frm.inpDateTo.focus();
+      setWindowElementFocus(frm.inpDateTo);
       frm.inpDateTo.select();
       return false;
     }
--- a/src/org/openbravo/erpCommon/ad_reports/ReportCashFlow_F1.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportCashFlow_F1.html	Mon May 26 11:32:48 2008 +0000
@@ -71,7 +71,7 @@
   }
   rellenarCombo(frm.inpPeriodId, arrayCombo, false, false);
 	if (frm.inpcAcctSchemaId.value == null || frm.inpcAcctSchemaId.value == "") {
-		frm.inpcAcctSchemaId.focus();
+		setWindowElementFocus(frm.inpcAcctSchemaId);
 		mensaje(7);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportCashJR.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportCashJR.html	Mon May 26 11:32:48 2008 +0000
@@ -56,12 +56,12 @@
 function depurar(action, Formulario, valor) {
   var frm=document.frmMain;
   if (frm.inpDateFrom.value==null || frm.inpDateFrom.value=="") {
-      frm.inpDateFrom.focus();
+      setWindowElementFocus(frm.inpDateFrom);
       mensaje(7);
       return false;
     }
   if (frm.inpDateTo.value==null || frm.inpDateTo.value=="") {
-      frm.inpDateTo.focus();
+      setWindowElementFocus(frm.inpDateTo);
       mensaje(7);
       return false;
     }
--- a/src/org/openbravo/erpCommon/ad_reports/ReportDebtPaymentTrack.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportDebtPaymentTrack.html	Mon May 26 11:32:48 2008 +0000
@@ -59,7 +59,7 @@
 	var frm = document.frmMain;
 	seleccionarListCompleto(frm.inpcBPartnerId_IN);
 	if (frm.inpDateFrom.value==null || frm.inpDateFrom.value=="") {
-		frm.inpDateFrom.focus();
+		setWindowElementFocus(frm.inpDateFrom);
 		mensaje(7);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedger.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedger.html	Mon May 26 11:32:48 2008 +0000
@@ -74,15 +74,15 @@
 function depurar(){
 	var frm = document.frmMain;
 	if (frm.inpDateFrom.value == null || frm.inpDateFrom.value == "") {
-		frm.inpDateFrom.focus();
+		setWindowElementFocus(frm.inpDateFrom);
 		mensaje(7);
 		return false;
 	} else if (frm.inpDateTo.value == null || frm.inpDateTo.value == ""){
-		frm.inpDateTo.focus();
+		setWindowElementFocus(frm.inpDateTo);
 		mensaje(7);
 		return false;
 	} else if (frm.inpcAcctSchemaId.value == null || frm.inpcAcctSchemaId.value == ""){
-		frm.inpcAcctSchemaId.focus();
+		setWindowElementFocus(frm.inpcAcctSchemaId);
 		mensaje(7);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportGuaranteeDateJR.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportGuaranteeDateJR.html	Mon May 26 11:32:48 2008 +0000
@@ -55,7 +55,7 @@
 function depurar() {
   var frm=document.frmMain;
     if (inputValue(frm.inpDate)==null || inputValue(frm.inpDate)=="") {
-      frm.inpDate.focus();
+      setWindowElementFocus(frm.inpDate);
       mensaje(7);
       return false;
     }
--- a/src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerDimensionalAnalysesFilter.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerDimensionalAnalysesFilter.html	Mon May 26 11:32:48 2008 +0000
@@ -63,21 +63,21 @@
 {
 	var frm = document.frmMain;
 	if (frm.inpDateFrom.value == null || frm.inpDateFrom.value == "") {
-		frm.inpDateFrom.focus();
+		setWindowElementFocus(frm.inpDateFrom);
 		mensaje(7);
 		return false;
 	} else if (frm.inpDateTo.value == null || frm.inpDateTo.value == ""){
-		frm.inpDateTo.focus();
+		setWindowElementFocus(frm.inpDateTo);
 		mensaje(7);
 		return false;
 	}
 	if (action == "EDIT_HTML_COMPARATIVE" || action == "EDIT_PDF_COMPARATIVE") {
 		if (frm.inpDateFromRef.value == null || frm.inpDateFromRef.value == "") {
-			frm.inpDateFromRef.focus();
+			setWindowElementFocus(frm.inpDateFromRef);
 			mensaje(7);
 			return false;
 		} else if (frm.inpDateToRef.value == null || frm.inpDateToRef.value == ""){
-			frm.inpDateToRef.focus();
+			setWindowElementFocus(frm.inpDateToRef);
 			mensaje(7);
 			return false;
 		}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerDimensionalAnalysesJRFilter.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerDimensionalAnalysesJRFilter.html	Mon May 26 11:32:48 2008 +0000
@@ -55,21 +55,21 @@
 {
 	var frm = document.frmMain;
 	if (frm.inpDateFrom.value == null || frm.inpDateFrom.value == "") {
-		frm.inpDateFrom.focus();
+		setWindowElementFocus(frm.inpDateFrom);
 		mensaje(7);
 		return false;
 	} else if (frm.inpDateTo.value == null || frm.inpDateTo.value == ""){
-		frm.inpDateTo.focus();
+		setWindowElementFocus(frm.inpDateTo);
 		mensaje(7);
 		return false;
 	}
 	if (action == "EDIT_HTML_COMPARATIVE" || action == "EDIT_PDF_COMPARATIVE") {
 		if (frm.inpDateFromRef.value == null || frm.inpDateFromRef.value == "") {
-			frm.inpDateFromRef.focus();
+			setWindowElementFocus(frm.inpDateFromRef);
 			mensaje(7);
 			return false;
 		} else if (frm.inpDateToRef.value == null || frm.inpDateToRef.value == ""){
-			frm.inpDateToRef.focus();
+			setWindowElementFocus(frm.inpDateToRef);
 			mensaje(7);
 			return false;
 		}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerFilterJR.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerFilterJR.html	Mon May 26 11:32:48 2008 +0000
@@ -55,11 +55,11 @@
 {
 	var frm = document.frmMain;
 	if (frm.inpDateFrom.value == null || frm.inpDateFrom.value == "") {
-		frm.inpDateFrom.focus();
+		setWindowElementFocus(frm.inpDateFrom);
 		mensaje(7);
 		return false;
 	} else if (frm.inpDateTo.value == null || frm.inpDateTo.value == ""){
-		frm.inpDateTo.focus();
+		setWindowElementFocus(frm.inpDateTo);
 		mensaje(7);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportInvoiceDiscount.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportInvoiceDiscount.html	Mon May 26 11:32:48 2008 +0000
@@ -55,11 +55,11 @@
 {
 	var frm = document.frmMain;
 	if (frm.inpDateFrom.value == null || frm.inpDateFrom.value == "") {
-		frm.inpDateFrom.focus();
+		setWindowElementFocus(frm.inpDateFrom);
 		mensaje(7);
 		return false;
 	} else if (frm.inpDateTo.value == null || frm.inpDateTo.value == ""){
-		frm.inpDateTo.focus();
+		setWindowElementFocus(frm.inpDateTo);
 		mensaje(7);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportInvoiceDiscountJR.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportInvoiceDiscountJR.html	Mon May 26 11:32:48 2008 +0000
@@ -55,11 +55,11 @@
 {
 	var frm = document.frmMain;
 	if (frm.inpDateFrom.value == null || frm.inpDateFrom.value == "") {
-		frm.inpDateFrom.focus();
+		setWindowElementFocus(frm.inpDateFrom);
 		mensaje(7);
 		return false;
 	} else if (frm.inpDateTo.value == null || frm.inpDateTo.value == ""){
-		frm.inpDateTo.focus();
+		setWindowElementFocus(frm.inpDateTo);
 		mensaje(7);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportInvoiceVendorDimensionalAnalysesFilterJR.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportInvoiceVendorDimensionalAnalysesFilterJR.html	Mon May 26 11:32:48 2008 +0000
@@ -55,21 +55,21 @@
 {
 	var frm = document.frmMain;
 	if (frm.inpDateFrom.value == null || frm.inpDateFrom.value == "") {
-		frm.inpDateFrom.focus();
+		setWindowElementFocus(frm.inpDateFrom);
 		mensaje(7);
 		return false;
 	} else if (frm.inpDateTo.value == null || frm.inpDateTo.value == ""){
-		frm.inpDateTo.focus();
+		setWindowElementFocus(frm.inpDateTo);
 		mensaje(7);
 		return false;
 	}
 	if (action == "EDIT_HTML_COMPARATIVE" || action == "EDIT_PDF_COMPARATIVE") {
 		if (frm.inpDateFromRef.value == null || frm.inpDateFromRef.value == "") {
-			frm.inpDateFromRef.focus();
+			setWindowElementFocus(frm.inpDateFromRef);
 			mensaje(7);
 			return false;
 		} else if (frm.inpDateToRef.value == null || frm.inpDateToRef.value == ""){
-			frm.inpDateToRef.focus();
+			setWindowElementFocus(frm.inpDateToRef);
 			mensaje(7);
 			return false;
 		}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportInvoiceVendorFilterJR.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportInvoiceVendorFilterJR.html	Mon May 26 11:32:48 2008 +0000
@@ -55,11 +55,11 @@
 {
 	var frm = document.frmMain;
 	if (frm.inpDateFrom.value == null || frm.inpDateFrom.value == "") {
-		frm.inpDateFrom.focus();
+		setWindowElementFocus(frm.inpDateFrom);
 		mensaje(7);
 		return false;
 	} else if (frm.inpDateTo.value == null || frm.inpDateTo.value == ""){
-		frm.inpDateTo.focus();
+		setWindowElementFocus(frm.inpDateTo);
 		mensaje(7);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportInvoices.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportInvoices.html	Mon May 26 11:32:48 2008 +0000
@@ -55,11 +55,11 @@
 {
 	var frm = document.frmMain;
 	if (frm.inpDateInvoiceFrom.value == null || frm.inpDateInvoiceFrom.value == "") {
-		frm.inpDateInvoiceFrom.focus();
+		setWindowElementFocus(frm.inpDateInvoiceFrom);
 		mensaje(7);
 		return false;
 	} else if (frm.inpDateInvoiceTo.value == null || frm.inpDateInvoiceTo.value == ""){
-		frm.inpDateInvoiceTo.focus();
+		setWindowElementFocus(frm.inpDateInvoiceTo);
 		mensaje(7);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportInvoicesJR.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportInvoicesJR.html	Mon May 26 11:32:48 2008 +0000
@@ -55,11 +55,11 @@
 {
 	var frm = document.frmMain;
 	if (frm.inpDateInvoiceFrom.value == null || frm.inpDateInvoiceFrom.value == "") {
-		frm.inpDateInvoiceFrom.focus();
+		setWindowElementFocus(frm.inpDateInvoiceFrom);
 		mensaje(7);
 		return false;
 	} else if (frm.inpDateInvoiceTo.value == null || frm.inpDateInvoiceTo.value == ""){
-		frm.inpDateInvoiceTo.focus();
+		setWindowElementFocus(frm.inpDateInvoiceTo);
 		mensaje(7);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportMaterialDimensionalAnalysesFilterJR.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportMaterialDimensionalAnalysesFilterJR.html	Mon May 26 11:32:48 2008 +0000
@@ -55,21 +55,21 @@
 {
 	var frm = document.frmMain;
 	if (frm.inpDateFrom.value == null || frm.inpDateFrom.value == "") {
-		frm.inpDateFrom.focus();
+		setWindowElementFocus(frm.inpDateFrom);
 		mensaje(7);
 		return false;
 	} else if (frm.inpDateTo.value == null || frm.inpDateTo.value == ""){
-		frm.inpDateTo.focus();
+		setWindowElementFocus(frm.inpDateTo);
 		mensaje(7);
 		return false;
 	}
 	if (action == "EDIT_HTML_COMPARATIVE" || action == "EDIT_PDF_COMPARATIVE") {
 		if (frm.inpDateFromRef.value == null || frm.inpDateFromRef.value == "") {
-			frm.inpDateFromRef.focus();
+			setWindowElementFocus(frm.inpDateFromRef);
 			mensaje(7);
 			return false;
 		} else if (frm.inpDateToRef.value == null || frm.inpDateToRef.value == ""){
-			frm.inpDateToRef.focus();
+			setWindowElementFocus(frm.inpDateToRef);
 			mensaje(7);
 			return false;
 		}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportMaterialTransactionEditionJR.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportMaterialTransactionEditionJR.html	Mon May 26 11:32:48 2008 +0000
@@ -55,11 +55,11 @@
 {
 	var frm = document.frmMain;
 	if (frm.inpDateFrom.value == null || frm.inpDateFrom.value == "") {
-		frm.inpDateFrom.focus();
+		setWindowElementFocus(frm.inpDateFrom);
 		mensaje(7);
 		return false;
 	} else if (frm.inpDateTo.value == null || frm.inpDateTo.value == ""){
-		frm.inpDateTo.focus();
+		setWindowElementFocus(frm.inpDateTo);
 		mensaje(7);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportMaterialTransactionFilter.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportMaterialTransactionFilter.html	Mon May 26 11:32:48 2008 +0000
@@ -55,11 +55,11 @@
 {
 	var frm = document.frmMain;
 	if (frm.inpDateFrom.value == null || frm.inpDateFrom.value == "") {
-		frm.inpDateFrom.focus();
+		setWindowElementFocus(frm.inpDateFrom);
 		mensaje(7);
 		return false;
 	} else if (frm.inpDateTo.value == null || frm.inpDateTo.value == ""){
-		frm.inpDateTo.focus();
+		setWindowElementFocus(frm.inpDateTo);
 		mensaje(7);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportNotPosted.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportNotPosted.html	Mon May 26 11:32:48 2008 +0000
@@ -54,12 +54,12 @@
 function depurar(action, Formulario, valor) {
   var frm=document.frmMain;
 if (frm.inpDateFrom.value==null || frm.inpDateFrom.value=="") {
-      frm.inpDateFrom.focus();
+      setWindowElementFocus(frm.inpDateFrom);
       frm.inpDateFrom.select();
       return false;
     }
 	 if (frm.inpDateTo.value==null || frm.inpDateTo.value=="") {
-      frm.inpDateTo.focus();
+      setWindowElementFocus(frm.inpDateTo);
       frm.inpDateTo.select();
       return false;
     }
--- a/src/org/openbravo/erpCommon/ad_reports/ReportOffer.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportOffer.html	Mon May 26 11:32:48 2008 +0000
@@ -54,11 +54,11 @@
 {
 	var frm = document.frmMain;
 	if (frm.inpDateFrom.value == null || frm.inpDateFrom.value == "") {
-		frm.inpDateFrom.focus();
+		setWindowElementFocus(frm.inpDateFrom);
 		mensaje(7);
 		return false;
 	} else if (frm.inpDateTo.value == null || frm.inpDateTo.value == ""){
-		frm.inpDateTo.focus();
+		setWindowElementFocus(frm.inpDateTo);
 		mensaje(7);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportPaymentFilter.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportPaymentFilter.html	Mon May 26 11:32:48 2008 +0000
@@ -55,12 +55,12 @@
 function depurar() {
   var frm=document.frmMain;
   if (frm.inpDateFrom.value==null || frm.inpDateFrom.value=="") {
-      frm.inpDateFrom.focus();
+      setWindowElementFocus(frm.inpDateFrom);
       mensaje(7);
       return false;
     }
   if (frm.inpDateTo.value==null || frm.inpDateTo.value=="") {
-      frm.inpDateTo.focus();
+      setWindowElementFocus(frm.inpDateTo);
       mensaje(7);
       return false;
     }
--- a/src/org/openbravo/erpCommon/ad_reports/ReportPricelist.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportPricelist.html	Mon May 26 11:32:48 2008 +0000
@@ -61,7 +61,7 @@
 function depurar() {
 	var frm = document.frmMain;
 	if (frm.inpmPricelistVersion.value == ""){
-		frm.inpmPricelistVersion.focus();
+		setWindowElementFocus(frm.inpmPricelistVersion);
 		mensaje(1);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportProductMovement.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportProductMovement.html	Mon May 26 11:32:48 2008 +0000
@@ -60,11 +60,11 @@
 {
   var frm = document.frmMain;
   if (frm.inpDateFrom.value == null || frm.inpDateFrom.value == "") {
-    frm.inpDateFrom.focus();
+    setWindowElementFocus(frm.inpDateFrom);
     mensaje(7);
     return false;
   } else if (frm.inpDateTo.value == null || frm.inpDateTo.value == ""){
-    frm.inpDateTo.focus();
+    setWindowElementFocus(frm.inpDateTo);
     mensaje(7);
     return false;
   }
--- a/src/org/openbravo/erpCommon/ad_reports/ReportProduction.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportProduction.html	Mon May 26 11:32:48 2008 +0000
@@ -62,12 +62,12 @@
 function depurar(){
 	var frm = document.frmMain;
 	if (frm.inpDateFrom.value == null || frm.inpDateFrom.value == "") {
-		frm.inpDateFrom.focus();
+		setWindowElementFocus(frm.inpDateFrom);
 		mensaje(7);
 		return false;
 	}
 	if (frm.inpDateTo.value == null || frm.inpDateTo.value == "") {
-		frm.inpDateTo.focus();
+		setWindowElementFocus(frm.inpDateTo);
 		mensaje(7);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportProductionCost.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportProductionCost.html	Mon May 26 11:32:48 2008 +0000
@@ -54,11 +54,11 @@
 function depurar(){
   var frm = document.frmMain;
   if (frm.inpDateFrom.value == null || frm.inpDateFrom.value == ""){
-    frm.inpDateFrom.focus();
+    setWindowElementFocus(frm.inpDateFrom);
     mensaje(7);
     return false;
   } else if (frm.inpDateTo.value == null || frm.inpDateTo.value == "") {
-    frm.inpDateTo.focus();
+    setWindowElementFocus(frm.inpDateTo);
     mensaje(7);
     return false;
   }
--- a/src/org/openbravo/erpCommon/ad_reports/ReportProductionJR.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportProductionJR.html	Mon May 26 11:32:48 2008 +0000
@@ -62,12 +62,12 @@
 function depurar(){
 	var frm = document.frmMain;
 	if (frm.inpDateFrom.value == null || frm.inpDateFrom.value == "") {
-		frm.inpDateFrom.focus();
+		setWindowElementFocus(frm.inpDateFrom);
 		mensaje(7);
 		return false;
 	}
 	if (frm.inpDateTo.value == null || frm.inpDateTo.value == "") {
-		frm.inpDateTo.focus();
+		setWindowElementFocus(frm.inpDateTo);
 		mensaje(7);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportProductionRunJR.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportProductionRunJR.html	Mon May 26 11:32:48 2008 +0000
@@ -55,29 +55,29 @@
 {
 	var frm = document.frmMain;
 	if (frm.inpLaunchDateFrom.value == null || frm.inpLaunchDateFrom.value == "") {
-		frm.inpDateFrom.focus();
+		setWindowElementFocus(frm.inpDateFrom);
 		mensaje(7);
 		return false;
 	} else if (frm.inpLaunchDateTo.value == null || frm.inpLaunchDateTo.value == ""){
-		frm.inpDateTo.focus();
+		setWindowElementFocus(frm.inpDateTo);
 		mensaje(7);
 		return false;
 	}
 	if (frm.inpStartDateFrom.value == null || frm.inpStartDateFrom.value == "") {
-		frm.inpDateFrom.focus();
+		setWindowElementFocus(frm.inpDateFrom);
 		mensaje(7);
 		return false;
 	} else if (frm.inpStartDateTo.value == null || frm.inpStartDateTo.value == ""){
-		frm.inpDateTo.focus();
+		setWindowElementFocus(frm.inpDateTo);
 		mensaje(7);
 		return false;
 	}
 	if (frm.inpEndDateFrom.value == null || frm.inpEndDateFrom.value == "") {
-		frm.inpDateFrom.focus();
+		setWindowElementFocus(frm.inpDateFrom);
 		mensaje(7);
 		return false;
 	} else if (frm.inpEndDateTo.value == null || frm.inpEndDateTo.value == ""){
-		frm.inpDateTo.focus();
+		setWindowElementFocus(frm.inpDateTo);
 		mensaje(7);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportProjectBuildingSite.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportProjectBuildingSite.html	Mon May 26 11:32:48 2008 +0000
@@ -55,11 +55,11 @@
 function depurar() {
 	var frm = document.frmMain;
 	if (frm.inpDateFrom.value == null || frm.inpDateFrom.value == "") {
-		frm.inpDateFrom.focus();
+		setWindowElementFocus(frm.inpDateFrom);
 		mensaje(7);
 		return false;
 	} else if (frm.inpDateTo.value == null || frm.inpDateTo.value == ""){
-		frm.inpDateTo.focus();
+		setWindowElementFocus(frm.inpDateTo);
 		mensaje(7);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportProjectBuildingSiteJR.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportProjectBuildingSiteJR.html	Mon May 26 11:32:48 2008 +0000
@@ -55,11 +55,11 @@
 function depurar() {
 	var frm = document.frmMain;
 	if (frm.inpDateFrom.value == null || frm.inpDateFrom.value == "") {
-		frm.inpDateFrom.focus();
+		setWindowElementFocus(frm.inpDateFrom);
 		mensaje(7);
 		return false;
 	} else if (frm.inpDateTo.value == null || frm.inpDateTo.value == ""){
-		frm.inpDateTo.focus();
+		setWindowElementFocus(frm.inpDateTo);
 		mensaje(7);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportProjectProfitabilityJR.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportProjectProfitabilityJR.html	Mon May 26 11:32:48 2008 +0000
@@ -55,7 +55,7 @@
 {
 	var frm = document.frmMain;
 	if (inputValue(document.frmMain.inpOrg) == null || inputValue(document.frmMain.inpOrg) == "") {
-      document.frmMain.inpOrg.focus();
+      setWindowElementFocus(document.frmMain.inpOrg);
       mensaje(7);
       return false;
     }
--- a/src/org/openbravo/erpCommon/ad_reports/ReportPurchaseDimensionalAnalysesFilterJR.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportPurchaseDimensionalAnalysesFilterJR.html	Mon May 26 11:32:48 2008 +0000
@@ -54,21 +54,21 @@
 {
 	var frm = document.frmMain;
 	if (frm.inpDateFrom.value == null || frm.inpDateFrom.value == "") {
-		frm.inpDateFrom.focus();
+		setWindowElementFocus(frm.inpDateFrom);
 		mensaje(7);
 		return false;
 	} else if (frm.inpDateTo.value == null || frm.inpDateTo.value == ""){
-		frm.inpDateTo.focus();
+		setWindowElementFocus(frm.inpDateTo);
 		mensaje(7);
 		return false;
 	}
 	if (action == "EDIT_HTML_COMPARATIVE" || action == "EDIT_PDF_COMPARATIVE") {
 		if (frm.inpDateFromRef.value == null || frm.inpDateFromRef.value == "") {
-			frm.inpDateFromRef.focus();
+			setWindowElementFocus(frm.inpDateFromRef);
 			mensaje(7);
 			return false;
 		} else if (frm.inpDateToRef.value == null || frm.inpDateToRef.value == ""){
-			frm.inpDateToRef.focus();
+			setWindowElementFocus(frm.inpDateToRef);
 			mensaje(7);
 			return false;
 		}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportRefundInvoiceCustomerDimensionalAnalysesFilter.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportRefundInvoiceCustomerDimensionalAnalysesFilter.html	Mon May 26 11:32:48 2008 +0000
@@ -64,21 +64,21 @@
 {
 	var frm = document.frmMain;
 	if (frm.inpDateFrom.value == null || frm.inpDateFrom.value == "") {
-		frm.inpDateFrom.focus();
+		setWindowElementFocus(frm.inpDateFrom);
 		mensaje(7);
 		return false;
 	} else if (frm.inpDateTo.value == null || frm.inpDateTo.value == ""){
-		frm.inpDateTo.focus();
+		setWindowElementFocus(frm.inpDateTo);
 		mensaje(7);
 		return false;
 	}
 	if (action == "EDIT_HTML_COMPARATIVE" || action == "EDIT_PDF_COMPARATIVE") {
 		if (frm.inpDateFromRef.value == null || frm.inpDateFromRef.value == "") {
-			frm.inpDateFromRef.focus();
+			setWindowElementFocus(frm.inpDateFromRef);
 			mensaje(7);
 			return false;
 		} else if (frm.inpDateToRef.value == null || frm.inpDateToRef.value == ""){
-			frm.inpDateToRef.focus();
+			setWindowElementFocus(frm.inpDateToRef);
 			mensaje(7);
 			return false;
 		}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportRefundSalesDimensionalAnalysesFilter.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportRefundSalesDimensionalAnalysesFilter.html	Mon May 26 11:32:48 2008 +0000
@@ -64,21 +64,21 @@
 {
 	var frm = document.frmMain;
 	if (frm.inpDateFrom.value == null || frm.inpDateFrom.value == "") {
-		frm.inpDateFrom.focus();
+		setWindowElementFocus(frm.inpDateFrom);
 		mensaje(7);
 		return false;
 	} else if (frm.inpDateTo.value == null || frm.inpDateTo.value == ""){
-		frm.inpDateTo.focus();
+		setWindowElementFocus(frm.inpDateTo);
 		mensaje(7);
 		return false;
 	}
 	if (action == "EDIT_HTML_COMPARATIVE" || action == "EDIT_PDF_COMPARATIVE") {
 		if (frm.inpDateFromRef.value == null || frm.inpDateFromRef.value == "") {
-			frm.inpDateFromRef.focus();
+			setWindowElementFocus(frm.inpDateFromRef);
 			mensaje(7);
 			return false;
 		} else if (frm.inpDateToRef.value == null || frm.inpDateToRef.value == ""){
-			frm.inpDateToRef.focus();
+			setWindowElementFocus(frm.inpDateToRef);
 			mensaje(7);
 			return false;
 		}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportRegisterFilter.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportRegisterFilter.html	Mon May 26 11:32:48 2008 +0000
@@ -55,12 +55,12 @@
 function depurar() {
   var frm=document.frmMain;
   if (frm.inpDateFrom.value==null || frm.inpDateFrom.value=="") {
-      frm.inpDateFrom.focus();
+      setWindowElementFocus(frm.inpDateFrom);
       mensaje(7);
       return false;
     }
   if (frm.inpDateTo.value==null || frm.inpDateTo.value=="") {
-      frm.inpDateTo.focus();
+      setWindowElementFocus(frm.inpDateTo);
       mensaje(7);
       return false;
     }
--- a/src/org/openbravo/erpCommon/ad_reports/ReportSalesDimensionalAnalyzeJRFilter.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportSalesDimensionalAnalyzeJRFilter.html	Mon May 26 11:32:48 2008 +0000
@@ -53,21 +53,21 @@
 {
 	var frm = document.frmMain;
 	if (frm.inpDateFrom.value == null || frm.inpDateFrom.value == "") {
-		frm.inpDateFrom.focus();
+		setWindowElementFocus(frm.inpDateFrom);
 		mensaje(7);
 		return false;
 	} else if (frm.inpDateTo.value == null || frm.inpDateTo.value == ""){
-		frm.inpDateTo.focus();
+		setWindowElementFocus(frm.inpDateTo);
 		mensaje(7);
 		return false;
 	}
 	if (action == "EDIT_HTML_COMPARATIVE" || action == "EDIT_PDF_COMPARATIVE") {
 		if (frm.inpDateFromRef.value == null || frm.inpDateFromRef.value == "") {
-			frm.inpDateFromRef.focus();
+			setWindowElementFocus(frm.inpDateFromRef);
 			mensaje(7);
 			return false;
 		} else if (frm.inpDateToRef.value == null || frm.inpDateToRef.value == ""){
-			frm.inpDateToRef.focus();
+			setWindowElementFocus(frm.inpDateToRef);
 			mensaje(7);
 			return false;
 		}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportSalesOrderFilterJR.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportSalesOrderFilterJR.html	Mon May 26 11:32:48 2008 +0000
@@ -55,11 +55,11 @@
 {
 	var frm = document.frmMain;
 	if (frm.inpDateFrom.value == null || frm.inpDateFrom.value == "") {
-		frm.inpDateFrom.focus();
+		setWindowElementFocus(frm.inpDateFrom);
 		mensaje(7);
 		return false;
 	} else if (frm.inpDateTo.value == null || frm.inpDateTo.value == ""){
-		frm.inpDateTo.focus();
+		setWindowElementFocus(frm.inpDateTo);
 		mensaje(7);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportSalesOrderInvoicedJasper.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportSalesOrderInvoicedJasper.html	Mon May 26 11:32:48 2008 +0000
@@ -55,11 +55,11 @@
 {
 	var frm = document.frmMain;
 	if (frm.inpDateFrom.value == null || frm.inpDateFrom.value == "") {
-		frm.inpDateFrom.focus();
+		setWindowElementFocus(frm.inpDateFrom);
 		mensaje(7);
 		return false;
 	} else if (frm.inpDateTo.value == null || frm.inpDateTo.value == ""){
-		frm.inpDateTo.focus();
+		setWindowElementFocus(frm.inpDateTo);
 		mensaje(7);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportSalesOrderProvidedJR.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportSalesOrderProvidedJR.html	Mon May 26 11:32:48 2008 +0000
@@ -54,11 +54,11 @@
 {
 	var frm = document.frmMain;
 	if (frm.inpDateFrom.value == null || frm.inpDateFrom.value == "") {
-		frm.inpDateFrom.focus();
+		setWindowElementFocus(frm.inpDateFrom);
 		mensaje(7);
 		return false;
 	} else if (frm.inpDateTo.value == null || frm.inpDateTo.value == ""){
-		frm.inpDateTo.focus();
+		setWindowElementFocus(frm.inpDateTo);
 		mensaje(7);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportShipmentDimensionalAnalyzeJRFilter.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportShipmentDimensionalAnalyzeJRFilter.html	Mon May 26 11:32:48 2008 +0000
@@ -63,21 +63,21 @@
 {
 	var frm = document.frmMain;
 	if (frm.inpDateFrom.value == null || frm.inpDateFrom.value == "") {
-		frm.inpDateFrom.focus();
+		setWindowElementFocus(frm.inpDateFrom);
 		mensaje(7);
 		return false;
 	} else if (frm.inpDateTo.value == null || frm.inpDateTo.value == ""){
-		frm.inpDateTo.focus();
+		setWindowElementFocus(frm.inpDateTo);
 		mensaje(7);
 		return false;
 	}
 	if (action == "EDIT_HTML_COMPARATIVE" || action == "EDIT_PDF_COMPARATIVE") {
 		if (frm.inpDateFromRef.value == null || frm.inpDateFromRef.value == "") {
-			frm.inpDateFromRef.focus();
+			setWindowElementFocus(frm.inpDateFromRef);
 			mensaje(7);
 			return false;
 		} else if (frm.inpDateToRef.value == null || frm.inpDateToRef.value == ""){
-			frm.inpDateToRef.focus();
+			setWindowElementFocus(frm.inpDateToRef);
 			mensaje(7);
 			return false;
 		}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportShipmentFilterJR.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportShipmentFilterJR.html	Mon May 26 11:32:48 2008 +0000
@@ -55,11 +55,11 @@
 {
 	var frm = document.frmMain;
 	if (frm.inpDateFrom.value == null || frm.inpDateFrom.value == "") {
-		frm.inpDateFrom.focus();
+		setWindowElementFocus(frm.inpDateFrom);
 		mensaje(7);
 		return false;
 	} else if (frm.inpDateTo.value == null || frm.inpDateTo.value == ""){
-		frm.inpDateTo.focus();
+		setWindowElementFocus(frm.inpDateTo);
 		mensaje(7);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportShipper.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportShipper.html	Mon May 26 11:32:48 2008 +0000
@@ -56,12 +56,12 @@
 function depurar(command) {
 	var frm = document.frmMain;
 	if (frm.inpFrom.value==null || frm.inpFrom.value=="") {
-		frm.inpFrom.focus();
+		setWindowElementFocus(frm.inpFrom);
 		mensaje(1);
 		return false;
 	} 
 	if (frm.inpTo.value==null || frm.inpTo.value=="") {
-		frm.inpTo.focus();
+		setWindowElementFocus(frm.inpTo);
 		mensaje(1);
 		return false;
 	} 	
--- a/src/org/openbravo/erpCommon/ad_reports/ReportTaxInvoice.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportTaxInvoice.html	Mon May 26 11:32:48 2008 +0000
@@ -55,11 +55,11 @@
 {
 	var frm = document.frmMain;
 	if (frm.inpDateFrom.value == null || frm.inpDateFrom.value == "") {
-		frm.inpDateFrom.focus();
+		setWindowElementFocus(frm.inpDateFrom);
 		mensaje(7);
 		return false;
 	} else if (frm.inpDateTo.value == null || frm.inpDateTo.value == ""){
-		frm.inpDateTo.focus();
+		setWindowElementFocus(frm.inpDateTo);
 		mensaje(7);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportTrialBalance.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportTrialBalance.html	Mon May 26 11:32:48 2008 +0000
@@ -91,19 +91,19 @@
 function depurar() {
   var frm=document.frmMain;
     if (inputValue(frm.inpDateFrom)==null || inputValue(frm.inpDateFrom)=="") {
-      frm.inpDateFrom.focus();
+      setWindowElementFocus(frm.inpDateFrom);
       mensaje(7);
       return false;
     }  else if (inputValue(frm.inpOrg)==null || inputValue(frm.inpOrg)=="") {
-      frm.inpOrg.focus();
+      setWindowElementFocus(frm.inpOrg);
       mensaje(7);
       return false;
     }  else if (inputValue(frm.inpLevel)==null || inputValue(frm.inpLevel)=="") {
-      frm.inpLevel.focus();
+      setWindowElementFocus(frm.inpLevel);
       mensaje(7);
       return false;
     }  else if (inputValue(frm.inpcAcctSchemaId)==null || inputValue(frm.inpcAcctSchemaId)=="") {
-      frm.inpcAcctSchemaId.focus();
+      setWindowElementFocus(frm.inpcAcctSchemaId);
       mensaje(7);
       return false;
     }
--- a/src/org/openbravo/erpCommon/ad_reports/ReportValuationStock.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportValuationStock.html	Mon May 26 11:32:48 2008 +0000
@@ -58,7 +58,7 @@
 function depurar() {
 	  var frm=document.frmMain;
 	  if (inputValue(frm.inpmWarehouseId)==null || inputValue(frm.inpmWarehouseId)=="") {
-	      frm.inpmWarehouseId.focus();
+	      setWindowElementFocus(frm.inpmWarehouseId);
 	      mensaje(7);
 	      return false;
 	  }
--- a/src/org/openbravo/erpCommon/ad_reports/ReportWarehouseControl.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportWarehouseControl.html	Mon May 26 11:32:48 2008 +0000
@@ -54,12 +54,12 @@
 <SCRIPT language="JavaScript" type="text/javascript">
 function depurar(){
   if (frmMain.inpDateFrom.value==null || frmMain.inpDateFrom.value==""){
-    frmMain.inpDateFrom.focus();
+    setWindowElementFocus(frmMain.inpDateFrom);
     mensaje(7);
     return false;
   }
   if (frmMain.inpDateTo.value==null || frmMain.inpDateTo.value==""){
-    frmMain.inpDateTo.focus();
+    setWindowElementFocus(frmMain.inpDateTo);
     mensaje(7);
     return false;
   }
--- a/src/org/openbravo/erpCommon/ad_reports/ReportWarehouseDetailInventoryJR.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportWarehouseDetailInventoryJR.html	Mon May 26 11:32:48 2008 +0000
@@ -55,11 +55,11 @@
 {
 	var frm = document.frmMain;
 	if (frm.inpDateFrom.value == null || frm.inpDateFrom.value == "") {
-		frm.inpDateFrom.focus();
+		setWindowElementFocus(frm.inpDateFrom);
 		mensaje(7);
 		return false;
 	} else if (frm.inpDateTo.value == null || frm.inpDateTo.value == ""){
-		frm.inpDateTo.focus();
+		setWindowElementFocus(frm.inpDateTo);
 		mensaje(7);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportWarehousePartnerJR.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportWarehousePartnerJR.html	Mon May 26 11:32:48 2008 +0000
@@ -56,7 +56,7 @@
 	var frm = document.frmMain;
 	seleccionarListCompleto(frm.inpmProductId_IN);
 	if (frm.inpDateFrom.value == null || frm.inpDateFrom.value == "") {
-		frm.inpDateFrom.focus();
+		setWindowElementFocus(frm.inpDateFrom);
 		mensaje(7);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/ad_reports/ReportWorkRequirementDailyEnv.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportWorkRequirementDailyEnv.html	Mon May 26 11:32:48 2008 +0000
@@ -55,11 +55,11 @@
 {
 	var frm = document.frmMain;
 	if (frm.inpDateFrom.value == null || frm.inpDateFrom.value == "") {
-		frm.inpDateFrom.focus();
+		setWindowElementFocus(frm.inpDateFrom);
 		mensaje(7);
 		return false;
 	} else if (frm.inpDateTo.value == null || frm.inpDateTo.value == ""){
-		frm.inpDateTo.focus();
+		setWindowElementFocus(frm.inpDateTo);
 		mensaje(7);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/info/Account.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/Account.html	Mon May 26 11:32:48 2008 +0000
@@ -41,12 +41,12 @@
 function depurar() {
 	var frm = document.forms[0];
 	if ((frm.inpAlias.value==null || frm.inpAlias.value=="") && (frm.inpCombination.value==null || frm.inpCombination.value=="") && frm.inpOrganization.selectedIndex==-1 && frm.inpAccount.selectedIndex==-1 && frm.inpProduct.selectedIndex==-1 && frm.inpBPartner.selectedIndex==-1 && frm.inpProject.selectedIndex==-1 && frm.inpCampaign.selectedIndex==-1) {
-		frm.inpAlias.focus();
+		setWindowElementFocus(frm.inpAlias);
 		// mensaje(7);
 		return false;
 	}
   if (frm.inpOrganization.value==null || frm.inpOrganization.value=="") {
-    frm.inpOrganization.focus();
+    setWindowElementFocus(frm.inpOrganization);
     // mensaje(7);
     return false;    
   }
--- a/src/org/openbravo/erpCommon/info/BusinessPartner.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/BusinessPartner.html	Mon May 26 11:32:48 2008 +0000
@@ -46,7 +46,7 @@
   function depurar() {
     var frm = document.frmSelector;
     if ((frm.inpKey.value==null || frm.inpKey.value=="") && (frm.inpName.value==null || frm.inpName.value=="") && (frm.inpContact.value==null || frm.inpContact.value=="") && (frm.inpZIP.value==null || frm.inpZIP.value=="") && (frm.inpPhone.value==null || frm.inpPhone.value=="") && !frm.inpClients.checked) {
-      frm.inpKey.focus();
+      setWindowElementFocus(frm.inpKey);
       mensaje(7);
       return false;
     }
--- a/src/org/openbravo/erpCommon/info/BusinessPartnerMultiple.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/BusinessPartnerMultiple.html	Mon May 26 11:32:48 2008 +0000
@@ -40,7 +40,7 @@
 function depurar() {	
 	var frm = document.forms[0];
 	if ((frm.inpKey.value==null || frm.inpKey.value=="") && (frm.inpName.value==null || frm.inpName.value=="") && (frm.inpContact.value==null || frm.inpContact.value=="") && (frm.inpZIP.value==null || frm.inpZIP.value=="") && (frm.inpPhone.value==null || frm.inpPhone.value=="") && !frm.inpClients.checked) {
-		frm.inpKey.focus();
+		setWindowElementFocus(frm.inpKey);
 		mensaje(7);
 		return false;
 	}	
--- a/src/org/openbravo/erpCommon/info/ImageInfo_F1.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/ImageInfo_F1.html	Mon May 26 11:32:48 2008 +0000
@@ -43,7 +43,7 @@
 function depurar() {
 	var frm = document.frmSelector;
 	if ((frm.inpName.value==null || frm.inpName.value=="") && (frm.inpURL.value==null || frm.inpURL.value=="")) {
-		frm.inpName.focus();
+		setWindowElementFocus(frm.inpName);
 		mensaje(7);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/info/Locator.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/Locator.html	Mon May 26 11:32:48 2008 +0000
@@ -45,7 +45,7 @@
   function depurar() {
     var frm = document.frmSelector;
     if ((frm.inpKey.value==null || frm.inpKey.value=="") && (frm.inpName.value==null || frm.inpName.value=="") && (frm.inpContact.value==null || frm.inpContact.value=="") && (frm.inpZIP.value==null || frm.inpZIP.value=="") && (frm.inpPhone.value==null || frm.inpPhone.value=="") && !frm.inpClients.checked) {
-      frm.inpKey.focus();
+      setWindowElementFocus(frm.inpKey);
       mensaje(7);
       return false;
     }
--- a/src/org/openbravo/erpCommon/info/Product.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/Product.html	Mon May 26 11:32:48 2008 +0000
@@ -45,7 +45,7 @@
   function depurar() {
     var frm = document.frmSelector;
     if ((frm.inpKey.value==null || frm.inpKey.value=="") && (frm.inpName.value==null || frm.inpName.value=="") && (frm.inpContact.value==null || frm.inpContact.value=="") && (frm.inpZIP.value==null || frm.inpZIP.value=="") && (frm.inpPhone.value==null || frm.inpPhone.value=="") && !frm.inpClients.checked) {
-      frm.inpKey.focus();
+      setWindowElementFocus(frm.inpKey);
       mensaje(7);
       return false;
     }
--- a/src/org/openbravo/erpCommon/info/ProductComplete.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/ProductComplete.html	Mon May 26 11:32:48 2008 +0000
@@ -45,7 +45,7 @@
   function depurar() {
     var frm = document.frmSelector;
     if ((frm.inpKey.value==null || frm.inpKey.value=="") && (frm.inpName.value==null || frm.inpName.value=="") && (frm.inpContact.value==null || frm.inpContact.value=="") && (frm.inpZIP.value==null || frm.inpZIP.value=="") && (frm.inpPhone.value==null || frm.inpPhone.value=="") && !frm.inpClients.checked) {
-      frm.inpKey.focus();
+      setWindowElementFocus(frm.inpKey);
       mensaje(7);
       return false;
     }
--- a/src/org/openbravo/erpCommon/info/ProductMultiple.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/ProductMultiple.html	Mon May 26 11:32:48 2008 +0000
@@ -41,7 +41,7 @@
 function depurar() {
 	var frm = document.frmSelector;
 	if ((frm.inpKey.value==null || frm.inpKey.value=="") && (frm.inpName.value==null || frm.inpName.value=="") && (frm.inpProductCategory.value==null || frm.inpProductCategory.value=="")) {
-		frm.inpKey.focus();
+		setWindowElementFocus(frm.inpKey);
 		mensaje(7);
 		return false;
 	}
--- a/src/org/openbravo/erpCommon/info/Project.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/Project.html	Mon May 26 11:32:48 2008 +0000
@@ -45,7 +45,7 @@
   function depurar() {
     var frm = document.frmSelector;
     if ((frm.inpKey.value==null || frm.inpKey.value=="") && (frm.inpName.value==null || frm.inpName.value=="") && (frm.inpContact.value==null || frm.inpContact.value=="") && (frm.inpZIP.value==null || frm.inpZIP.value=="") && (frm.inpPhone.value==null || frm.inpPhone.value=="") && !frm.inpClients.checked) {
-      frm.inpKey.focus();
+      setWindowElementFocus(frm.inpKey);
       mensaje(7);
       return false;
     }
--- a/src/org/openbravo/erpCommon/info/SalesOrder.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/SalesOrder.html	Mon May 26 11:32:48 2008 +0000
@@ -52,7 +52,7 @@
   function depurar() {
     var frm = document.frmSelector;
     if ((frm.inpKey.value==null || frm.inpKey.value=="") && (frm.inpName.value==null || frm.inpName.value=="") && (frm.inpContact.value==null || frm.inpContact.value=="") && (frm.inpZIP.value==null || frm.inpZIP.value=="") && (frm.inpPhone.value==null || frm.inpPhone.value=="") && !frm.inpClients.checked) {
-      frm.inpKey.focus();
+      setWindowElementFocus(frm.inpKey);
       mensaje(7);
       return false;
     }
--- a/src/org/openbravo/erpCommon/info/SalesOrderLine.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/SalesOrderLine.html	Mon May 26 11:32:48 2008 +0000
@@ -57,7 +57,7 @@
   function depurar() {
     var frm = document.frmSelector;
     if ((frm.inpKey.value==null || frm.inpKey.value=="") && (frm.inpName.value==null || frm.inpName.value=="") && (frm.inpContact.value==null || frm.inpContact.value=="") && (frm.inpZIP.value==null || frm.inpZIP.value=="") && (frm.inpPhone.value==null || frm.inpPhone.value=="") && !frm.inpClients.checked) {
-      frm.inpKey.focus();
+      setWindowElementFocus(frm.inpKey);
       mensaje(7);
       return false;
     }
--- a/src/org/openbravo/erpCommon/info/ShipmentReceipt.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/ShipmentReceipt.html	Mon May 26 11:32:48 2008 +0000
@@ -52,7 +52,7 @@
   function depurar() {
     var frm = document.frmSelector;
     if ((frm.inpKey.value==null || frm.inpKey.value=="") && (frm.inpName.value==null || frm.inpName.value=="") && (frm.inpContact.value==null || frm.inpContact.value=="") && (frm.inpZIP.value==null || frm.inpZIP.value=="") && (frm.inpPhone.value==null || frm.inpPhone.value=="") && !frm.inpClients.checked) {
-      frm.inpKey.focus();
+      setWindowElementFocus(frm.inpKey);
       mensaje(7);
       return false;
     }
--- a/src/org/openbravo/erpCommon/info/ShipmentReceiptLine.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/ShipmentReceiptLine.html	Mon May 26 11:32:48 2008 +0000
@@ -59,7 +59,7 @@
   function depurar() {
     var frm = document.frmSelector;
     if ((frm.inpKey.value==null || frm.inpKey.value=="") && (frm.inpName.value==null || frm.inpName.value=="") && (frm.inpContact.value==null || frm.inpContact.value=="") && (frm.inpZIP.value==null || frm.inpZIP.value=="") && (frm.inpPhone.value==null || frm.inpPhone.value=="") && !frm.inpClients.checked) {
-      frm.inpKey.focus();
+      setWindowElementFocus(frm.inpKey);
       mensaje(7);
       return false;
     }
--- a/src/org/openbravo/erpCommon/info/UserContact_F1.html	Mon May 26 11:24:39 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/UserContact_F1.html	Mon May 26 11:32:48 2008 +0000
@@ -48,7 +48,7 @@
 function depurar() {
 	var frm = document.frmSelector;
 	if ((frm.inpKey.value==null || frm.inpKey.value=="") && (frm.inpLastResult.value==null || frm.inpLastResult.value=="") && (frm.inpFax.value==null || frm.inpFax.value=="") && (frm.inpTelephone.value==null || frm.inpTelephone.value=="")) {
-		frm.inpKey.focus();
+		setWindowElementFocus(frm.inpKey);
 		mensaje(7);
 		return false;
 	}