src/org/openbravo/erpCommon/info/BusinessPartner_F1.html
changeset 528 7aa737db257f
parent 347 adf8b19cf2a8
child 628 492ad1a5c917
--- a/src/org/openbravo/erpCommon/info/BusinessPartner_F1.html	Thu Mar 13 10:27:24 2008 +0000
+++ b/src/org/openbravo/erpCommon/info/BusinessPartner_F1.html	Thu Mar 13 14:33:37 2008 +0000
@@ -23,7 +23,9 @@
 <LINK rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Popup/Popup.css" id="paramCSS"></LINK>
 
       <script language="JavaScript" src="../../../../../web/js/ajax.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/dojoConfig.js" type="text/javascript"></script>
       <script language="JavaScript" src="../../../../../web/js/dojo/dojo.js" type="text/javascript"></script>
 
@@ -35,12 +37,7 @@
   <LINK rel="SHORTCUT ICON" href="../../../../../web/images/favicon.ico"></LINK> 
   <SCRIPT language="JavaScript" type="text/javascript" id="paramDirection">var baseDirection = "http://yourSite/web/";</SCRIPT>
   <SCRIPT language="JavaScript" type="text/javascript" id="paramLanguage">	LNG_POR_DEFECTO = "en_US";</SCRIPT>
-<SCRIPT language="JavaScript" type="text/javascript">
-keyArray = new Array(
-new keyArrayItem("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey")
-);
-enableShortcuts();
-</SCRIPT>
+
 <SCRIPT language="JavaScript" type="text/javascript">
 function depurar() {
 	var frm = document.frmSelector;
@@ -51,11 +48,35 @@
 	}
 	return true;
 }
+
+function onloadFunctions(){
+	keyArray[keyArray.length] = new keyArrayItem("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey");
+}
 </SCRIPT>
+	<SCRIPT language="JavaScript" type="text/javascript">
+	function onLoadDo(){
+		this.windowTables = new Array(
+		  new windowTableId('client', 'superior'),
+		  new windowTableId('client', 'medio'),
+		  new windowTableId('client', 'inferior')
+		);
+		setWindowTableParentElement();
+		enableShortcuts('popup');
+		
+		try {
+		  onloadFunctions();
+		} catch (e) {}
+
+		setWindowElementFocus('firstElement');
+	}
+
+	function onResizeDo(){
+	}
+	</SCRIPT>
 </HEAD>
 
 
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="setFocusFirstControl();" >
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onLoadDo();" onresize="onResizeDo();">
 <FORM name="frmSelector" method="POST" action="BusinessPartner_F2.html" target="medio">
   <INPUT type="hidden" name="Command">
 <INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
@@ -93,7 +114,7 @@
 
 
     <td>
-      <div class="Popup_ContentPane_Client" style="overflow: auto;">
+      <div class="Popup_ContentPane_Client" style="overflow: auto;" id="client">
         <table cellspacing="0" cellpadding="0" class="Popup_Client_TableSelector">
 
           <tr>
@@ -132,32 +153,32 @@
     </tr>
 
     <tr>
-      <TD class="TitleCell"> <SPAN class="LabelText">Contact</SPAN></TD>
+      <TD class="TitleCell"><SPAN class="LabelText">Contact</SPAN></TD>
       <TD class="TextBox_ContentCell" colspan="2"><INPUT type="text" name="inpContact" class="dojoValidateValid TextBox_TwoCells_width"></INPUT></TD>
 
-      <TD class="TitleCell"> <SPAN class="LabelText">City</SPAN></TD>
+      <TD class="TitleCell"><SPAN class="LabelText">City</SPAN></TD>
       <TD class="TextBox_ContentCell" colspan="2"> <INPUT type="text" name="inpCity" class="dojoValidateValid TextBox_TwoCells_width"></INPUT></TD>
     </tr>
     
     <tr>
-      <TD class="TitleCell"> <SPAN class="LabelText">Postal Code</SPAN></TD>
+      <TD class="TitleCell"><SPAN class="LabelText">Postal Code</SPAN></TD>
       <TD class="TextBox_ContentCell"><INPUT class="dojoValidateValid TextBox_OneCell_width" type="text" name="inpZIP"></INPUT></TD>
 
       <td></td>
 
-      <TD class="TitleCell"> <SPAN class="LabelText">Region</SPAN></TD>
+      <TD class="TitleCell"><SPAN class="LabelText">Region</SPAN></TD>
       <TD class="TextBox_ContentCell" colspan="2"><INPUT type="text" name="inpProvincia" class="dojoValidateValid TextBox_TwoCells_width"></INPUT> </TD>
     </tr>
       
     <tr> 
-     <TD class="TitleCell"> <SPAN class="LabelText">Customer</SPAN></TD>
-     <TD class="Radio_Check_ContentCell"> <INPUT type="radio" name="inpBpartner" value="costumer" id="fieldClientsSelect"></INPUT></TD>
+     <TD class="TitleCell"><SPAN class="LabelText">Customer</SPAN></TD>
+     <TD class="Radio_Check_ContentCell"><SPAN class="Radio_container_NOT_Focused"><INPUT type="radio" name="inpBpartner" value="costumer" id="fieldClientsSelect"></INPUT></SPAN></TD>
 
-     <TD class="TitleCell"> <SPAN class="LabelText">Providers</SPAN></TD>
-     <TD class="Radio_Check_ContentCell"> <INPUT type="radio" name="inpBpartner" value="vendor" id="fieldVendorsSelect"></INPUT></TD>
+     <TD class="TitleCell"><SPAN class="LabelText">Providers</SPAN></TD>
+     <TD class="Radio_Check_ContentCell"><SPAN class="Radio_container_NOT_Focused"><INPUT type="radio" name="inpBpartner" value="vendor" id="fieldVendorsSelect"></INPUT></SPAN></TD>
 
-     <TD class="TitleCell"> <SPAN class="LabelText">All</SPAN></TD>
-     <TD class="Radio_Check_ContentCell"> <INPUT type="radio" name="inpBpartner" value="all" id="fieldAllSelect"></INPUT></TD>
+     <TD class="TitleCell"><SPAN class="LabelText">All</SPAN></TD>
+     <TD class="Radio_Check_ContentCell"><SPAN class="Radio_container_NOT_Focused"><INPUT type="radio" name="inpBpartner" value="all" id="fieldAllSelect"></INPUT></SPAN></TD>
     </tr>
 
     <tr>
@@ -165,10 +186,10 @@
       <td class="Button_LeftAlign_ContentCell">
         <div>
           <a class="ButtonLink" href="#"
-            onfocus="this.className='ButtonLink_hover'; window.status='Search'; return true;"
-            onblur="this.className='ButtonLink'; window.status=''; return true;"
+            onfocus="setWindowElementFocus(this); window.status='Search'; return true;"
+            onblur="window.status=''; return true;"
             onkeypress="this.className='ButtonLink_active'; return true;"
-            onkeyup="this.className='ButtonLink_hover'; return true;"
+            onkeyup="this.className='ButtonLink_focus'; return true;"
             onclick="submitCommandForm('FIND', true);return false;">
             <table class="Button"
               onmousedown="this.className='Button_active'; return true;"