3 function changeFaction(href
)
5 uploadFromHref(href
, 'a_data');
11 ajaxCacheHtmlId('a_data', url
);
14 function selectCat(id
)
16 var node
= $('a_category');
20 var list
= node
.getElementsByTagName('a'), selected
= 0;
21 for (var i
=0;i
<list
.length
;i
++)
23 var e
= list
[i
], parent
= e
.parentNode
;
24 if (e
.id
== 'ach_' + id
)
26 parent
.className
= 'a_bodycat_sel';
27 if (e
.className
=='sub')
30 uploadFromHref(e
, 'a_data');
35 parent
.className
= 'a_bodycat';
36 if (e
.className
=='sel')
43 function changeSelection(element
, sel
)
45 var name
= element
.className
, s
= sel
?' select':'';
46 element
.className
= (name
=='ach_show' || name
=='ach_show select') ? 'ach_show'+s
: 'ach_show'+s
+' locked';
47 element
.id
= sel
? 'selected':'not_select';
50 function showAchReq(element
)
52 if (a_lastShow
&& a_lastShow
!= element
)
53 changeSelection(a_lastShow
, false);
55 changeSelection(element
, element
.id
!= 'selected');