src-wad/src/org/openbravo/wad/Template_Relation.html
changeset 1605 8a0fe0193bef
parent 1233 d28906a523ba
child 1689 5dec1e87975e
--- a/src-wad/src/org/openbravo/wad/Template_Relation.html	Wed Sep 03 17:10:52 2008 +0000
+++ b/src-wad/src/org/openbravo/wad/Template_Relation.html	Wed Sep 03 17:55:37 2008 +0000
@@ -25,13 +25,13 @@
 <LINK rel="SHORTCUT ICON" href="../../../../../web/images/favicon.ico" type="image/x-icon"/>
 <link rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Main/Main_Relation.css" id="paramCSS"/>
 <FIELD_TMP id="importCSS"></FIELD_TMP>
-<script language="JavaScript" type="text/javascript" id="paramDirection">
-var baseDirection = "../../../../../web/";
+<script language="JavaScript" type="text/javascript" id="paramDirectory">
+var baseDirectory = "../../../../../web/";
 </script>
 <script language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></script>
 <SCRIPT language="JavaScript" src="../utility/MessagesJS.js" type="text/javascript"></SCRIPT>
 <script language="JavaScript" type="text/javascript" id="paramLanguage">
-	LNG_POR_DEFECTO = "en_US";
+	defaultLang = "en_US";
 </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>
@@ -51,7 +51,7 @@
 
 </script>
 <script language="JavaScript" type="text/javascript">
-function depurar(action, Formulario, valor) {
+function validate(action, form, value) {
   var frm=document.frmMain;
   var key = eval("document.frmMain." + frm.inpKeyName.value);
   var myvalue = getSelectedValues();
@@ -59,7 +59,7 @@
   setInputValue(frm.inpKeyName.value, myvalue);
   if (action=="TAB") {
     if (isMultipleSelected()) {
-      mensaje(13);
+      showJSMessage(13);
       return false;
     }
     if (inputValue(key)==null || inputValue(key)=="") {
@@ -68,24 +68,24 @@
     }
   } else if (action=="EDIT") {
     if (isMultipleSelected()) {
-      mensaje(13);
+      showJSMessage(13);
       return false;
     }
     if (inputValue(key)==null || inputValue(key)=="") {
-      mensaje(1);
+      showJSMessage(1);
       return false;
     }
   } else if (action=="DEFAULT") {
     if (isMultipleSelected()) {
-      mensaje(13);
+      showJSMessage(13);
       return false;
     }
     if (inputValue(key)==null || inputValue(key)=="") {
-      mensaje(1);
+      showJSMessage(1);
       return false;
     }
   }
-  return depurarClient(action, Formulario, valor);
+  return validateClient(action, form, value);
 }
 
 function selectFilters(params) {