]> wagnertech.de Git - mfinanz.git/blobdiff - js/common.js
Parser für besondere Zeichen in special_chars umgeschrieben.
[mfinanz.git] / js / common.js
index b354d3cccb80ec5d7f0fe4529370cde6943961f8..953dac7fba524eb92124e789849bc27956c56e61 100644 (file)
@@ -44,8 +44,6 @@ function set_longdescription_window(input_name) {
   var name = document.getElementsByName(input_name)[0].value;
   url = "common.pl?" +
     "action=set_longdescription&" +
-    "login=" +  encodeURIComponent(document.getElementsByName("login")[0].value)+ "&"+
-    "password=" + encodeURIComponent(document.getElementsByName("password")[0].value) + "&" +
     "longdescription=" + escape_more(document.getElementsByName(input_name)[0].value) + "&" +
     "input_name=" + escape_more(input_name) + "&"
   window.open(url, "_new_generic", parm);
@@ -149,3 +147,9 @@ function show_alert_and_focus(input_name, errorMessage) {
   return false;
 }
   
+function get_input_value(input_name) {
+  var the_input = document.getElementsByName(input_name);
+  if (the_input && the_input[0])
+    return the_input[0].value;
+  return '';
+}