//var ajax_host="http://sibmar.ru"; var ajax_host=""; var ajax_script="/"; var site_url="http://sibmar.ru/"; var sObj = new PHP_Serializer(); function checkIt(string){ place = detect.indexOf(string) + 1; thestring = string; return place; } function close_table(){ window.close(); } function open_info(url, w, h, x, y){ if (Hnd2!=null && !Hnd2.closed){ Hnd2.close(); Hnd2 = null; } Hnd2 = window.open(url,'users','width='+w+',height='+h+',screenX='+x+',screenY='+y+',statusbar=0,scrollbars=1,resizable=0'); } function replace_symbol(symbol, replace, str) { var patern = new RegExp(symbol, "ig"); return str.replace(patern, replace); } function trim(str) { var result = str.replace(/^\s+|\s+$/, ''); return result; } function ajax_make_request(requrl, preparams, func, params, callback){ var fparams = "&fname="+encodeURI(func)+"&fparams="+encodeURI(params); var ajax_req = new Ajax.Request( requrl+preparams, {method: 'post', parameters: fparams, onComplete: callback} ); } function print_r(theObj){ if(theObj.constructor == Array || theObj.constructor == Object){ document.write("