1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.
89.
90.
91.
92.
93.
94.
95.
96.
97.
98.
99.
100.
101.
102.
103.
104.
105.
106.
107.
108.
109.
110.
111.
112.
113.
114.
115.
116.
117.
118.
119.
120.
121.
122.
123.
124.
125.
126.
127.
128.
129.
130.
131.
132.
133.
134.
135.
136.
137.
138.
139.
140.
141.
142.
143.
144.
145.
146.
147.
148.
149.
150.
151.
152.
153.
154.
155.
156.
157.
158.
159.
160.
161.
162.
163.
164.
165.
166.
167.
168.
169.
170.
171.
172.
173.
174.
175.
176.
177.
178.
179.
180.
181.
182.
183.
184.
185.
186.
187.
188.
189.
190.
191.
192.
193.
194.
195.
196.
197.
198.
199.
200.
201.
202.
203.
204.
205.
206.
207.
208.
209.
210.
211.
212.
213.
214.
215.
216.
217.
218.
219.
220.
221.
222.
223.
224.
225.
226.
227.
228.
229.
230.
231.
232.
233.
234.
235.
236.
237.
238.
239.
240.
241.
242.
243.
244.
245.
246.
247.
248.
249.
250.
251.
252.
253.
254.
255.
256.
257.
258.
259.
260.
261.
262.
263.
264.
265.
266.
267.
268.
269.
270.
271.
272.
273.
274.
275.
276.
277.
278.
279.
280.
281.
282.
283.
284.
285.
286.
287.
288.
289.
290.
291.
292.
293.
294.
295.
296.
297.
298.
299.
300.
301.
302.
303.
304.
305.
306.
307.
308.
309.
310.
311.
312.
313.
314.
315.
316.
317.
318.
319.
320.
321.
322.
323.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<script src="lib/JsHttpRequest/JsHttpRequest.js"></script>
<script language="JavaScript">
// Function is called when we need to calculate MD5.
function opendiv(page_id, object_id) {
if(page_id== 1 ) {
JsHttpRequest.query('loading.php',
{}, function(result, errors) {document.getElementById("right_frame").innerHTML = errors; },false);
JsHttpRequest.query(
'object_details.php?object_id='+object_id,
{ },
function(result, errors) {
document.getElementById("right_frame").innerHTML = errors;
},
false
);
JsHttpRequest.query(
'object_details_title.php?object_id='+object_id,
{ },
function(result, errors) {
document.getElementById("title_right_frame").innerHTML = errors;
},
false
);
};
if(page_id== 2 ) {
JsHttpRequest.query(
'left_bottom.php',
{ },
function(result, errors) {
document.getElementById("left_frame_bottom").innerHTML = errors;
},
false
);
JsHttpRequest.query(
'main_page.php',
{ },
function(result, errors) {
document.getElementById("right_frame").innerHTML = errors;
},
false
);
JsHttpRequest.query(
'main_page_title.php',
{ },
function(result, errors) {
document.getElementById("title_right_frame").innerHTML = errors;
},
false
);
}
}
function opendiv_about() {
JsHttpRequest.query('loading.php',
{}, function(result, errors) {document.getElementById("right_frame").innerHTML = errors; },false);
JsHttpRequest.query('about_title.php',
{}, function(result, errors) {document.getElementById("title_right_frame").innerHTML = errors; },false);
JsHttpRequest.query('about.php',
{}, function(result, errors) {document.getElementById("right_frame").innerHTML = errors; },false);
}
function opendiv_serv() {
JsHttpRequest.query('loading.php',
{}, function(result, errors) {document.getElementById("right_frame").innerHTML = errors; },false);
JsHttpRequest.query('serv_title.php',
{}, function(result, errors) {document.getElementById("title_right_frame").innerHTML = errors; },false);
JsHttpRequest.query('serv.php',
{}, function(result, errors) {document.getElementById("right_frame").innerHTML = errors; },false);
}
function opendiv_dreq(id) {
JsHttpRequest.query('loading2.php',
{}, function(result, errors) {document.getElementById("create_request_frame").innerHTML = errors; },false);
JsHttpRequest.query('object_details_request.php?object_id='+id,
{}, function(result, errors) {document.getElementById("create_request_frame").innerHTML = errors; },false);
}
function opendiv_dreq_send(id) {
var tmp_s1 = document.getElementById("odrq_name");
if (tmp_s1) { tmp_s1 = document.getElementById("odrq_name").value } else { tmp_s1 = "-" };
var tmp_s2 = document.getElementById("odrq_tel");
if (tmp_s2) { tmp_s2 = document.getElementById("odrq_tel").value } else { tmp_s2 = "-" };
var tmp_s3 = document.getElementById("odrq_time");
if (tmp_s3) { tmp_s3 = document.getElementById("odrq_time").value } else { tmp_s3 = "-" };
JsHttpRequest.query('loading2.php',
{}, function(result, errors) {document.getElementById("create_request_frame").innerHTML = errors; },false);
JsHttpRequest.query('object_details_request_send.php?object_id='+id,
{
'odrq_name': tmp_s1,
'odrq_tel': tmp_s2,
'odrq_time': tmp_s3
}, function(result, errors) {document.getElementById("create_request_frame").innerHTML = errors; },false);
}
// Функция trim удаляет пробелы
// в начале и в конце строки
function trim(str, chars) {
return ltrim(rtrim(str, chars), chars);
}
// Функция ltrim удаляет пробелы
// в начале строки
function ltrim(str, chars) {
chars = chars || "s";
return str.replace(
new RegExp("^[" + chars + "]+", "g"), "");
}
// Функция rtrim удаляет пробелы
// в конце строки
function rtrim(str, chars) {
chars = chars || "s";
return str.replace(
new RegExp("[" + chars + "]+$", "g"), "");
}
function opendiv_search_result(add_string) {
JsHttpRequest.query('loading.php',
{}, function(result, errors) {document.getElementById("search_result_frm").innerHTML = errors; },false);
JsHttpRequest.query('search_result.php'+trim(add_string,' '),
{}, function(result, errors) {document.getElementById("search_result_frm").innerHTML = errors; },false);
}
function sale_add() {
JsHttpRequest.query('loading.php',
{}, function(result, errors) {document.getElementById("right_frame").innerHTML = errors; },false);
JsHttpRequest.query('sale_add_title.php',
{}, function(result, errors) {document.getElementById("title_right_frame").innerHTML = errors; },false);
JsHttpRequest.query('sale_add.php',
{}, function(result, errors) {document.getElementById("right_frame").innerHTML = errors; },false);
}
function sale_send() {
var tmp_s1 = document.getElementById("descript");
if (tmp_s1) { tmp_s1 = document.getElementById("descript").value } else { tmp_s1 = "-" };
var tmp_s2 = document.getElementById("location");
if (tmp_s2) { tmp_s2 = document.getElementById("location").value } else { tmp_s2 = "-" };
var tmp_s3 = document.getElementById("sale_oper");
if (tmp_s3) { tmp_s3 = document.getElementById("sale_oper").value } else { tmp_s3 = "-" };
var tmp_s4 = document.getElementById("sale_obj");
if (tmp_s4) { tmp_s4 = document.getElementById("sale_obj").value } else { tmp_s4 = "-" };
var tmp_s5 = document.getElementById("street");
if (tmp_s5) { tmp_s5 = document.getElementById("street").value } else { tmp_s5 = "-" };
var tmp_s6 = document.getElementById("uname");
if (tmp_s6) { tmp_s6 = document.getElementById("uname").value } else { tmp_s6 = "-" };
var tmp_s7 = document.getElementById("phone");
if (tmp_s7) { tmp_s7 = document.getElementById("phone").value } else { tmp_s7 = "-" };
JsHttpRequest.query('loading.php',
{}, function(result, errors) {document.getElementById("right_frame").innerHTML = errors; },false);
JsHttpRequest.query('sale_send_title.php',
{}, function(result, errors) {document.getElementById("title_right_frame").innerHTML = errors; },false);
JsHttpRequest.query('sale_send.php',
{
'descript': tmp_s1,
'location': tmp_s2,
'oper': tmp_s3,
'obj': tmp_s4,
'street': tmp_s5,
'uname': tmp_s6,
'phone': tmp_s7
}, function(result, errors) {document.getElementById("right_frame").innerHTML = errors; },false);
JsHttpRequest.query('sale_send.php',
{
'descript': tmp_s1,
'location': tmp_s2,
'oper': tmp_s3,
'obj': tmp_s4,
'street': tmp_s5,
'uname': tmp_s6,
'phone': tmp_s7
}, function(result, errors) {document.getElementById("right_frame").innerHTML = errors; },false);
}
function right_main_page() {
JsHttpRequest.query('loading.php',
{}, function(result, errors) {document.getElementById("right_frame").innerHTML = errors; },false);
JsHttpRequest.query('main_page_title.php',
{}, function(result, errors) {document.getElementById("title_right_frame").innerHTML = errors; },false);
JsHttpRequest.query('main_page.php',
{}, function(result, errors) {document.getElementById("right_frame").innerHTML = errors; },false);
}
function mi(tablestr) {
tablestr.style.backgroundColor='#999999';
}
function mo(tablestr) {
tablestr.style.backgroundColor='';
}
function pause(ms)
{
var date = new Date();
var curDate = null;
do { curDate = new Date(); }
while(curDate-date < ms);
}
function showBigPicture(src, w, h){
PopupWin = window.open(src, "Big", 'alwaysRaised=yes,resizable=no,menubar=no,status=no,scrollbars=no,width='+w+',height='+h);
PopupWin.focus();
}
</script>
<script type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3. 0
var i,x,a=document.MM_sr; for(i= 0 ;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3. 0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i= 0 ; i<a.length; i++)
if (a[i].indexOf("#")!= 0 ){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4. 01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))> 0 &&parent.frames.length) {
d=parent.frames[n.substring(p+ 1 )].document; n=n.substring( 0 ,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i= 0 ;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i= 0 ;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3. 0
var i,j= 0 ,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i= 0 ;i<(a.length- 2 );i+= 3 )
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+ 2 ];}
}
//-->
</script>
<script language="JavaScript1.2">
function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)", 50 )
}
function low(which2){
clearInterval(highlighting)
which2.filters.alpha.opacity= 20
}
function highlightit(cur2){
if (cur2.filters.alpha.opacity< 100 )
cur2.filters.alpha.opacity+= 5
else if (window.highlighting)
clearInterval(highlighting)
}
</script>
</head>
<body onselectstart="return false" onload="MM_preloadImages('images/ban2r.gif')">
<script language="JavaScript" type="text/javascript" src="js/wz_tooltip.js"></script>
<script language="JavaScript" type="text/javascript" src="js/main.js"></script>
<? include 'header.php'; ?>
<noscript>
<table width="1024" height="50" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" >
<tr>
<td align="center">
<div id="js-warning" class="dingbat3">JavaScript отключен у вашего браузера. Для корректной работы необходимо включить JavaScript.</div>
</td>
</tr>
<tr>
<td align="center" height="20" bgcolor="red">
</td>
</tr>
</table>
<table width="1024" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td align="center">
<?
if (isset($_GET['page'])==false) {$page='list';} else {$page = $_GET['page'];}
if ($page=="list") {include 'all_base_nojs.php';}
if ($page=="detail") {include 'object_details_nojs.php';}
if ($page=="pic") {include 'picture_nojs.php';}
?>
</td>
</tr>
</table>
</noscript>
<script language="JavaScript" type="text/javascript">
opendiv( 2 , 0 ) ;
opendiv_search_result('?obj_per_pages=15') ;
</script>
</body>
</html>