src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Bank.html
changeset 528 7aa737db257f
parent 347 adf8b19cf2a8
child 628 492ad1a5c917
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Bank.html	Thu Mar 13 10:27:24 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Bank.html	Thu Mar 13 14:33:37 2008 +0000
@@ -29,7 +29,9 @@
   <SCRIPT language="JavaScript" src="../../../../../web/js/default/MessageBox.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" id="paramDirection">var baseDirection = "../../../../../web/";</SCRIPT>
-<SCRIPT language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></SCRIPT>
+<script language="JavaScript" src="../../../../../web/js/shortcuts.js" type="text/javascript"></script>
+<script language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></script>
+<script language="JavaScript" src="../../../../../web/js/windowKeyboard.js" type="text/javascript"></script>
 <SCRIPT language="JavaScript" src="../../../../../web/js/jscalendar/calendar.js" type="text/javascript"></SCRIPT>
 <SCRIPT language="JavaScript" src="../../../../../web/js/jscalendar/lang/calendar-es.js" type="text/javascript" id="fieldCalendar"></SCRIPT>
 <script language="JavaScript" src="../../../../../web/js/default/DateTextBox.js" type="text/javascript"></script>
@@ -37,8 +39,7 @@
 <SCRIPT language="JavaScript" src="../../../../../web/js/searchs.js" type="text/javascript"></SCRIPT>
 <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" id="keyMap"></script>
-  <script type="text/javascript">
+ <script type="text/javascript">
     dojo.hostenv.writeIncludes(); //makes debugging in Venkman possible
   </script>
 <SCRIPT language="JavaScript" type="text/javascript">
@@ -133,8 +134,29 @@
   new TypeAheadCombo("inpadOrgId");
   enableLocalShortcuts();
 }
-</SCRIPT></HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();onloadFunctions();">
+</SCRIPT>	
+<SCRIPT language="JavaScript" type="text/javascript">
+	function onLoadDo(){
+		this.windowTables = new Array(
+		  new windowTableId('client', 'frameButton'),
+		  new windowTableId('client2', 'frameButton'),
+		  new windowTableId('tdbottomButtons', 'frameButton2')
+		);
+		setWindowTableParentElement();
+		enableShortcuts('popup');
+		
+		try {
+		  onloadFunctions();
+		} catch (e) {}
+
+		setWindowElementFocus('firstElement');
+	}
+
+	function onResizeDo(){
+	}
+	</SCRIPT>
+</HEAD>
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onLoadDo();" onresize="onResizeDo();">
 <FORM id="form" method="POST" action="../ad_actionButton/CreateFrom.html" name="frmMain">
 <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1">
@@ -180,7 +202,7 @@
 
     <tr>
       <td>
-        <div class="Popup_ContentPane_Client" style="overflow: auto;">
+        <div class="Popup_ContentPane_Client" style="overflow: auto;" id="client">
 
            <!-- MessageBox -->
                 <table cellpadding="0" cellspacing="0" id="messageBoxID" class="MessageBoxyy">
@@ -306,7 +328,7 @@
                       <INPUT type="text" dojoType="openbravo:ValidationTextBox" class="TextBox_btn_TwoCells_width" maxlength="22" name="inpcBpartnerId_DES" id="inpCBPartnerID_DES" value="" ></INPUT><SCRIPT>djConfig.searchIds.push("inpCBPartnerID_DES");</SCRIPT>
                     </td>
                   <td class="TextBox_btn_OneCell">
-                    <a onclick="openSearch(null, null, '../info/BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpcBpartnerId_DES', document.frmMain.inpcBpartnerId_DES.value);return false;" onkeyup="this.className='FieldButtonLink_hover'; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onblur="this.className='FieldButtonLink'; window.status=''; return true;" onfocus="this.className='FieldButtonLink_hover'; window.status='Business Partner '; return true;" href="#" class="FieldButtonLink" id="C_Bpartner_IDlinkBusinessPartner">
+                    <a onclick="openSearch(null, null, '../info/BusinessPartner_FS.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpcBpartnerId_DES', document.frmMain.inpcBpartnerId_DES.value);return false;" onkeyup="this.className='FieldButtonLink_focus'; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onblur="window.status=''; return true;" onfocus="setWindowElementFocus(this); window.status='Business Partner '; return true;" href="#" class="FieldButtonLink" id="C_Bpartner_IDlinkBusinessPartner">
                       <table onmouseout="this.className='FieldButton'; window.status=''; return true;" onmouseover="this.className='FieldButton_hover'; window.status='Business Partner '; return true;" onmouseup="this.className='FieldButton'; return true;" onmousedown="this.className='FieldButton_active'; return true;" class="FieldButton">
                         <tbody>
                           <tr>
@@ -322,7 +344,7 @@
                 </TABLE>
               </TD>
               <TD class="TitleCell"></TD>
-              <TD class="TitleCell"> <SPAN class="LabelText">Payment Rule</SPAN></TD>
+              <TD class="TitleCell"><SPAN class="LabelText">Payment Rule</SPAN></TD>
               <TD class="Combo_ContentCell">
                 <SELECT name="inppaymentrule" class="Combo Combo_OneCell_width" id="inppaymentrule">
                   <OPTION value=""></OPTION><DIV id="reportPaymentRule"></DIV>
@@ -331,7 +353,7 @@
             </tr>
 
             <tr>
-              <TD class="TitleCell"> <SPAN class="LabelText">Receipt type</SPAN></TD>
+              <TD class="TitleCell"><SPAN class="LabelText">Receipt type</SPAN></TD>
               <TD class="Combo_ContentCell">
                 <SELECT name="inpisreceipt" id="inpisreceipt" class="Combo Combo_OneCell_width">
                 <OPTION value="">All</OPTION>
@@ -339,7 +361,7 @@
                 <OPTION value="Y" id="fieldIsReceiptCobro">Collection</OPTION></SELECT>
               </TD>
 
-              <td class="TitleCell"> <SPAN class="LabelText">From Date planned</SPAN></td>
+              <td class="TitleCell"><SPAN class="LabelText">From Date planned</SPAN></td>
               <td class="TextBox_btn_ContentCell">
                 <table border="0" cellspacing="0" cellpadding="0" summary=""  style="padding-top: 0px;">
                   <tr>
@@ -347,7 +369,7 @@
                       <INPUT dojoType="openbravo:DateTextbox" displayFormat="xx" saveFormat="yy"  class="TextBox_btn_OneCell_width" type="text" name="inpplanneddateFrom" id="inpPlannedDateFrom" size="10" maxlength="10" value="" onkeyup="auto_complete_date(this.textbox, this.displayFormat);return true;"></INPUT><script>djConfig.searchIds.push("inpPlannedDateFrom");</script>
                     </td>
                     <td class="FieldButton_ContentCell">
-                      <a class="FieldButtonLink" href="#" onfocus="this.className='FieldButtonLink_hover'; window.status='Calendar'; return true;" onblur="this.className='FieldButtonLink';  window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_hover'; return true;"  onclick="showCalendar('frmMain.inpplanneddateFrom', document.frmMain.inpplanneddateFrom.value, false);return false;" >
+                      <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Calendar'; return true;" onblur=" window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;"  onclick="showCalendar('frmMain.inpplanneddateFrom', document.frmMain.inpplanneddateFrom.value, false);return false;" >
                       <table class="FieldButton"onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Show calendar';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;">
                         <tr>
                           <td class="FieldButton_bg">
@@ -360,7 +382,7 @@
                   </tr>
                 </table>
               </td>
-              <td class="TitleCell"> <SPAN class="LabelText">To Date planned</SPAN></td>
+              <td class="TitleCell"><SPAN class="LabelText">To Date planned</SPAN></td>
               <td class="TextBox_btn_ContentCell">
                 <table border="0" cellspacing="0" cellpadding="0" summary=""  style="padding-top: 0px;">
                   <tr>
@@ -368,7 +390,7 @@
                       <INPUT dojoType="openbravo:DateTextbox" displayFormat="xx" saveFormat="yy"  class="TextBox_btn_OneCell_width" type="text" name="inpplanneddateTo" id="inpPlannedDateTo" size="10" maxlength="10" value="" onkeyup="auto_complete_date(this.textbox, this.displayFormat);return true;"></INPUT><script>djConfig.searchIds.push("inpPlannedDateTo");</script>
                     </td>
                     <td class="FieldButton_ContentCell">
-                      <a class="FieldButtonLink" href="#" onfocus="this.className='FieldButtonLink_hover'; window.status='Calendar'; return true;" onblur="this.className='FieldButtonLink';  window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_hover'; return true;" onclick="showCalendar('frmMain.inpplanneddateTo', document.frmMain.inpplanneddateTo.value, false);return false;">
+                      <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Calendar'; return true;" onblur=" window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;" onclick="showCalendar('frmMain.inpplanneddateTo', document.frmMain.inpplanneddateTo.value, false);return false;">
                       <table class="FieldButton" onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Show calendar';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;">
                         <tr>
                           <td class="FieldButton_bg">
@@ -385,14 +407,14 @@
 
             <tr>
 
-              <TD class="TitleCell"> <SPAN class="LabelText">Account</SPAN></TD>
+              <TD class="TitleCell"><SPAN class="LabelText">Account</SPAN></TD>
               <TD class="Combo_ContentCell" colspan="2">
                 <SELECT name="inpcBankaccountId" id="inpcBankaccountId" class="Combo Combo_TwoCells_width">
                   <OPTION value=""></OPTION>
                   <DIV id="reportC_BankAccount_ID"></DIV></SELECT></TD>
               </TD>
               <TD class="TitleCell"></TD>
-              <TD class="TitleCell"> <SPAN class="LabelText">Organization</SPAN></TD>
+              <TD class="TitleCell"><SPAN class="LabelText">Organization</SPAN></TD>
               <TD class="Combo_ContentCell">
                 <SELECT name="inpadOrgId" id="inpadOrgId" class="Combo Combo_OneCell_width">
                 <OPTION value=""></OPTION>
@@ -413,7 +435,7 @@
                         <INPUT type="text" dojoType="openbravo:RealNumberTextbox" id="paramAmountFrom" class="dojoValidateValid TextBox_btn_OneCell_width"  value="" maxlength="10" name="inpamountFrom" onkeyup="" onchange="logChanges(this);return true;"></INPUT><script>djConfig.searchIds.push("paramAmountFrom");</script>
                       </TD>
                       <TD class="FieldButton_ContentCell">
-                      <a class="FieldButtonLink" href="#" onfocus="this.className='FieldButtonLink_hover'; window.status='Amount From'; return true;" onblur="this.className='FieldButtonLink';  window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_hover'; return true;"  onclick="calculator('frmMain.inpamountFrom', document.frmMain.inpamountFrom.value, false);return false;">
+                      <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Amount From'; return true;" onblur=" window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;"  onclick="calculator('frmMain.inpamountFrom', document.frmMain.inpamountFrom.value, false);return false;">
                       <TABLE class="FieldButton" onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;" id="NoPackageslinkCalc">
                           <TR>
                             <TD class="FieldButton_bg">
@@ -428,7 +450,7 @@
               </TD>
 
 
-              <TD class="TitleCell"> <SPAN class="LabelText">Amount To</SPAN> </TD>
+              <TD class="TitleCell"><SPAN class="LabelText">Amount To</SPAN> </TD>
               <TD class="TextBox_btn_ContentCell">
                 <TABLE border="0" cellspacing="0" cellpadding="0" summary="" class="">
                   <TR>
@@ -437,7 +459,7 @@
                     </TD>
 
                     <TD class="FieldButton_ContentCell">
-                    <a class="FieldButtonLink" href="#" onfocus="this.className='FieldButtonLink_hover'; window.status='Amount From'; return true;" onblur="this.className='FieldButtonLink';  window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_hover'; return true;" onclick="calculator('frmMain.inpamountTo', document.frmMain.inpamountTo.value, false);return false;">
+                    <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Amount From'; return true;" onblur=" window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;" onclick="calculator('frmMain.inpamountTo', document.frmMain.inpamountTo.value, false);return false;">
                     <TABLE class="FieldButton" onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;" id="NoPackageslinkCalc">
                         <TR>
                           <TD class="FieldButton_bg">
@@ -453,9 +475,9 @@
             </tr>
 
             <tr>
-              <TD class="TitleCell"> <SPAN class="LabelText">Only Applied</SPAN> </TD>
+              <TD class="TitleCell"><SPAN class="LabelText">Only Applied</SPAN> </TD>
               <TD class="Radio_Check_ContentCell"> 
-                <INPUT type="checkbox" name="inpCharge" value="Y" id="paramCharge"></TD>
+                <SPAN class="Checkbox_container_NOT_Focused"><INPUT type="checkbox" name="inpCharge" value="Y" id="paramCharge"></INPUT></SPAN></TD>
               <TD class="TitleCell"></TD>
               <TD class="TitleCell"></TD>
               <TD class="TitleCell"></TD>
@@ -468,7 +490,7 @@
               <td class="TitleCell"></td>
               <td class="Button_RightAlign_ContentCell">
                 <div>
-                  <a class="ButtonLink" href="#" onfocus="this.className='ButtonLink_hover'; window.status='Search'; return true;" onblur="this.className='ButtonLink'; window.status=''; return true;" onkeypress="this.className='ButtonLink_active'; return true;" onkeyup="this.className='ButtonLink_hover'; return true;" onclick="submitCommandForm('FIND_BANK', false, null, null, '_self');return false;">
+                  <a class="ButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Search'; return true;" onblur="window.status=''; return true;" onkeypress="this.className='ButtonLink_active'; return true;" onkeyup="this.className='ButtonLink_focus'; return true;" onclick="submitCommandForm('FIND_BANK', false, null, null, '_self');return false;">
                   <table class="Button" onmouseout="this.className='Button';window.status='';return true;" onmouseover="this.className='Button_hover';window.status='Search';return true;" onmousedown="this.className='Button_active';return true;" onmouseup="this.className='Button';return true;">
                     <tr>
                       <td class="Button_left"><img class="Button_Icon Button_Icon_search" alt="Search" title="Search" src="../../../../../web/images/blank.gif" border=0/></td>
@@ -492,7 +514,7 @@
   </table>
 <div style="height:15px;"></div>
 <table cellspacing="0" cellpadding="0" width="100%" style="text-align:-moz-center;_text-align:center;">
-  <div class="Popup_ContentPane_Client" style="overflow: auto;">
+  <div class="Popup_ContentPane_Client" style="overflow: auto;" id="client2">
     <TABLE cellspacing="0" cellpadding="0" border="0">
       <tr>
 
@@ -535,7 +557,7 @@
     <table cellspacing="0" cellpadding="0" width="100%" class="DataGrid_Header_Table DataGrid_Body_Table" style="table-layout: auto;">
 
       <TR class="DataGrid_Body_Row">
-        <TH width="3%" class="DataGrid_Header_LineNoCell DataGrid_Body_Cell_CheckBox"><INPUT type="checkbox" name="inpTodos" onclick="marcarTodosPersonal(document.frmMain.inpcPaymentId, this.checked);return true;"></TH>
+        <TH width="3%" class="DataGrid_Header_LineNoCell DataGrid_Body_Cell_CheckBox"><SPAN class="Checkbox_container_NOT_Focused"><INPUT type="checkbox" name="inpTodos" onclick="marcarTodosPersonal(document.frmMain.inpcPaymentId, this.checked);return true;"></INPUT></SPAN></TH>
         <TH width="10%" colspan="3" class="DataGrid_Header_Cell">Payment</TH>
         <TH width="10%" class="DataGrid_Header_Cell">Invoice</TH>
         <TH width="23%" colspan="4" class="DataGrid_Header_Cell">Account</TH>
@@ -555,7 +577,7 @@
       <DIV id="sectionDetail">
 
         <TR class="DataGrid_Body_Row DataGrid_Body_Row_yy" id="funcEvenOddRowxx">
-          <TD class="DataGrid_Body_LineNoCell DataGrid_Body_Cell_CheckBox" style="border-bottom-width:0px; border-bottom: none;"><INPUT type="checkbox" name="inpcPaymentId" value="" id="fieldCPaymentId" onclick="updatePrice(this);return true;"><INPUT type="hidden" name="inpPricexx" value="" id="fieldPrice"></TD>
+          <TD class="DataGrid_Body_LineNoCell DataGrid_Body_Cell_CheckBox" style="border-bottom-width:0px; border-bottom: none;"><SPAN class="Checkbox_container_NOT_Focused"><INPUT type="checkbox" name="inpcPaymentId" value="" id="fieldCPaymentId" onclick="updatePrice(this);return true;"></INPUT></SPAN><INPUT type="hidden" name="inpPricexx" value="" id="fieldPrice"></TD>
           <TD class="DataGrid_Body_Cell" id="fieldPayment" colspan="3">xxUOM</TD>
           <TD class="DataGrid_Body_Cell" id="fieldInvoice">xxInvoice</TD>
           <TD class="DataGrid_Body_Cell" id="fieldBank" colspan="4">xx</TD>