Die Variablen login und password müssen/dürfen seit der Umstellung auf Session basier...
[kivitendo-erp.git] / js / customer_or_vendor_selection.js
1 function customer_or_vendor_selection_window(input_name, input_id, is_vendor, allow_both, action_on_cov_selected) {
2   var parm = centerParms(800,600) + ",width=800,height=600,status=yes,scrollbars=yes";
3   var name = document.getElementsByName(input_name)[0].value;
4   url = "common.pl?" +
5     "action=cov_selection_internal&" +
6     "name=" + escape_more(name) + "&" +
7     "input_name=" + escape(input_name) + "&" +
8     "input_id=" + escape(input_id) + "&" +
9     "is_vendor=" + (is_vendor ? "1" : "0") + "&" +
10     "allow_both=" + (allow_both ? "1" : "0") + "&" +
11     "action_on_cov_selected=" + (action_on_cov_selected ? escape(action_on_cov_selected) : "")
12   //alert(url);
13   window.open(url, "_new_cov_selection", parm);
14 }