summaryrefslogtreecommitdiff
path: root/httemplate/edit/cust_main/contacts_new.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/edit/cust_main/contacts_new.html')
-rw-r--r--httemplate/edit/cust_main/contacts_new.html17
1 files changed, 16 insertions, 1 deletions
diff --git a/httemplate/edit/cust_main/contacts_new.html b/httemplate/edit/cust_main/contacts_new.html
index cbeb1e97a..120f3af28 100644
--- a/httemplate/edit/cust_main/contacts_new.html
+++ b/httemplate/edit/cust_main/contacts_new.html
@@ -1,9 +1,25 @@
+<SCRIPT>
+ function checkPasswordValidation(fieldid) {
+ var validationResult = document.getElementById(fieldid+'_result').innerHTML;
+ if (validationResult.match(/Password valid!/)) {
+ return true;
+ }
+ else {
+ return false;
+ }
+ }
+</SCRIPT>
+
+<& '/elements/validate_password_js.html', &>
+
<DIV ID="contacts_div" STYLE="display:<% $display %>">
<BR>
<FONT CLASS="fsinnerbox-title">Contacts</FONT>
<% include('/edit/elements/edit.html',
'embed' => $opt{cust_main},
'table' => 'cust_main',
+ 'agent_virt' => 1,
+ 'submit_id' => $opt{submit_id},
'labels' => { 'contactnum' => 'Contact',
#'locationnum' => '&nbsp;',
},
@@ -17,7 +33,6 @@
'm2_error_callback' => $m2_error_callback,
},
],
- 'agent_virt' => 1,
)
%>
</DIV>