<script type="text/javascript">
<!--
- Calendar.setup({ inputField : "from", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger_from" });
- Calendar.setup({ inputField : "to", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger_to" });
- Calendar.setup({ inputField : "FU_date", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "FU_date_trigger" });
-
function enable_delete_shipto(used) { var s=document.getElementById('delete_shipto'); if (s) s.disabled = (used > 0 ? true : false); }
function enable_delete_contact(used){ var s=document.getElementById('delete_contact'); if (s) s.disabled = (used > 0 ? true : false); }
- var maintab = new ddtabcontent("maintab");
- maintab.setpersist(true);
- maintab.setselectedClassTarget("link"); //"link" or "linkparent"
- maintab.init();
+ function submitInputButton(button)
+ {
+ var hidden = document.createElement("input");
+ hidden.setAttribute("type", "hidden");
+
+ if( button.hasAttribute("name") )
+ hidden.setAttribute("name", button.getAttribute("name"));
+
+ if( button.hasAttribute("value") )
+ hidden.setAttribute("value", button.getAttribute("value"));
+
+
+ button.form.appendChild(hidden);
+
+ button.disabled = true;
+
+ button.form.submit();
+ }
function check_taxzone_and_ustid() {
- if (($('#taxzone_id').attr('value') == '1') && ($('#ustid').attr('value') == '')) {
+ if (($('#taxzone_id').val() == '1') && ($('#ustid').val() == '')) {
alert('[% LxERP.t8('Please enter the sales tax identification number.') %]');
return false;
}
-->
</script>
-</body>
-</html>