-// request is directed to current location
-//
- JsHttpRequest.request= function(trigger, form) {
- var mark = document.getElementById('ajaxmark');
- if(mark) mark.style.visibility = 'visible';
+// request is directed to current location
+//
+JsHttpRequest.request= function(trigger, form, tout) {
+// if (trigger.type=='submit' && !validate(trigger)) return false;
+ tout = tout || 10000; // default timeout value
+ document.getElementById('msgbox').innerHTML='';
+ set_mark(tout>10000 ? 'progressbar.gif' : 'ajax-loader.gif');
+ JsHttpRequest._request(trigger, form, tout, 0);
+};
+
+JsHttpRequest._request = function(trigger, form, tout, retry) {