X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/c549f7c2c83e51c3a6747887bcee59d1fb145f13..03ea97647e3fbdea4323f4f2136bdfa87cb15c1b:/js/common.js?ds=sidebyside diff --git a/js/common.js b/js/common.js index b354d3ccc..953dac7fb 100644 --- a/js/common.js +++ b/js/common.js @@ -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 ''; +}