<!--

	var d = document;


		function dl(linka) {
			document.location=linka;
		}
		function getElementsByClassName(obj, cn){  var arr = new Array();   var els = obj.getElementsByTagName("DIV");  var exp= new RegExp("^(.* )?"+cn+"( .*)?$", "g");  for (var i = 0; i < els.length; i++ ){    if (exp.test(els[i].className)){      arr.push(els[i]);    }  }  return arr;}
	
		function AsLinkThisOut(obj) {
			obj.style.textDecoration='none';
		}
		function AsLinkThisOver(obj) {
			obj.style.textDecoration='underline';
		}
	
		function shMarkSelection(obj) {
	//		alert(obj.innerHTML);
			obj.parentNode.className = 'shSelectMessageTabActive';
		}	
		function shUnMarkSelection(obj) {
	//		alert(obj.innerHTML);
			obj.parentNode.className = 'shSelectMessageTab';
		}
		var curShTab = 0;
		function shDoSelection(obj) {
	//		alert(obj.innerHTML);
			allTabs = obj.parentNode.parentNode.getElementsByTagName('DIV');
	//		window.status = '_';
			for (i=0; i<allTabs.length;i++) {
				if (allTabs[i].innerHTML!='') {
					allTabs[i].className = 'shSelectMessageTab';
				}
				if (obj.parentNode==allTabs[i]) {
					curShTab=Math.floor(i/2);
				}
			}
			obj.parentNode.className += 'Active';
			for (j=0;j<Math.floor(allTabs.length/2);j++) document.getElementById('shMarkMessage'+j+'Tab').style.display='none';
			document.getElementById('shMarkMessage'+curShTab+'Tab').style.display='block';
		}			
		
		function onInpSearch(v, obj) {
			if (v==1) {
				if (obj.value == 'Поиск') obj.value = ''; 
			} else {
				if (obj.value == '') obj.value = 'Поиск';
			}
		}
		
		function onInpFilter(v, obj, str) {
			if (v==1) {
				if (obj.value == str) obj.value = ''; 
			} else {
				if (obj.value == '') obj.value = str;
			}
		}

		function sedr(object) {
			object.style.color="#eb000a";
		}
		function sedt(object) {
			object.style.color="#005b1f";
		}
		function sellar(obj, n, a, b) {
			obj.style.backgroundColor="#0bae42";
			if (obj.style.color!="#ff0000")	obj.style.color="#ffffff";
			if (a && b) {
				if (document.getElementById(a + n + b).title=='[-]') {
					document.getElementById(a + n + b).src="hcimgs/smallicon_group_white.gif";
				} else if (document.getElementById(a + n + b).title=='<-') {
					document.getElementById(a + n + b).src="hcimgs/smallicon_arr_left_white.gif";
				} else {
					document.getElementById(a + n + b).src="hcimgs/smallicon_arr_white.gif";
				}
			}
		}
		function sellat(obj, n, a, b) {
			obj.style.backgroundColor="#f8fdf7";
			if (obj.style.color!="#ff0000")	obj.style.color="#005b1f";
			if (a && b) {
				if (document.getElementById(a + n + b).title=='[-]') {
					document.getElementById(a + n + b).src="hcimgs/smallicon_group.gif";
				} else if (document.getElementById(a + n + b).title=='<-') {
					document.getElementById(a + n + b).src="hcimgs/smallicon_arr_left.gif";
				} else {
					document.getElementById(a + n + b).src="hcimgs/smallicon_arr.gif";
				}
			}
		}
		function sellang(object) {
			document.getElementById('lang_val').innerHTML="<span>"+object.innerHTML+"</span>";
			document.getElementById('new_lang_val').value=object.id;
			document.newlangform.submit();
		}
		function showTR(imena) {
			for(i=0;i<document.getElementsByName(imena).length;i++) {
				document.getElementsByName(imena)[i].style.display='block';
			}
		}

		// Stylish multiple selection
		function shStyleLikeMultipleSelectOver(obj) {
				obj.style.background='#f4f4f4';
//				obj.style.color='#ffffff';
		}
		function shStyleLikeMultipleSelectOut(obj) {
				obj.style.background='#ffffff';
//				obj.style.color='#000000';
		}
		
		// Strong multiple
		function shStrongMultipleOn(obj) {
			var pNode = obj.parentNode;
			var pLen = pNode.childNodes.length;
			for (var i=0;i<pLen;i++) {
				if (pNode.childNodes[i].className=='shSelectMultipleRow') {
					pNode.childNodes[i].style.background='#ffffff';
					pNode.childNodes[i].style.color='#000000';
				}
			}
			obj.style.background='#2f9f25';
			obj.style.color='#ffffff';
			currentFolderScroll=parseInt(obj.id);
		}
		function shStrongMultipleOver(obj) {
			if (parseInt(obj.id)!=currentFolderScroll) {
				obj.style.background='#f4f4f4';
			}
		}
		function shStrongMultipleOut(obj) {
			if (parseInt(obj.id)!=currentFolderScroll) {
				obj.style.background='#ffffff';
			}
		}
		
		
		function nodeIndex(obj) {
			var nn=0;
			for (i=0;i<obj.parentNode.childNodes.length;i++) {
				if (obj==obj.parentNode.childNodes[i]) nn=i;
			}
			return nn;
		}


		function styleLikeCheckBox(obj) {
			obj.childNodes[0].className=(obj.childNodes[0].className=='shCheckboxOff')?'shCheckboxOn':'shCheckboxOff';
		}
		function shHiddenValueCheckbox(obj, id) {
			document.getElementById(id).value=(obj.childNodes[0].className=='shCheckboxOff')?'0':'1';
			if (id=='save_copy') document.getElementById('shFBFBFBDropesBox').style.visibility=(obj.childNodes[0].className=='shCheckboxOff')?'visible':'hidden';
						
		}
		
		

		function StyleGreenRadioRow(obj) {
			var pNode = obj.parentNode.parentNode.parentNode;
			var pLen = pNode.getElementsByTagName('DIV').length;
			for (var i=0;i<pLen;i++) {
				if (pNode.getElementsByTagName('DIV')[i].className=='shSelectMessageTabActive') pNode.getElementsByTagName('DIV')[i].className='shSelectMessageTab';
			}
			obj.parentNode.className='shSelectMessageTabActive';
		}

		function shHiddenValue(id, val) {
			document.getElementById(id).value=val;
		}
		function showLinks(id) {
//			alert(id);
			document.getElementById(id).style.display='block';
			document.getElementById(id).nextSibling.style.display='none';
		}

		function shStyleLikeLinkOver(obj) {
			obj.getElementsByTagName('DIV')[4].style.textDecoration='underline';
		}
		function shStyleLikeLinkOut(obj) {
			obj.getElementsByTagName('DIV')[4].style.textDecoration='none';
		}

	function showBox(id) {
		document.getElementById(id).style.visibility='visible';
		document.getElementById('whiteDropes').style.visibility='visible';
		document.getElementById('whiteDropes').style.display='block';
	}
	function hideBox(id) {
		document.getElementById(id).style.visibility='hidden';
		document.getElementById('whiteDropes').style.visibility='hidden';
		document.getElementById('whiteDropes').style.display='none';
	}

	function shStyleSmallButOver(obj) {
		obj.style.background='url(/common/hcimgs/but_next_prev_back_red.gif)';
	}
	function shStyleSmallButOut(obj) {
		obj.style.background='url(/common/hcimgs/but_next_prev_back.gif)';
	}
	
	
	
	function shMultOver(obj) {
	
	}
	function shMultOut(obj) {

	}
	function shMultOn(obj) {
		obj.style.background=(obj.style.background=='#f4f4f4')?'#ffffff':'#f4f4f4';
	}
	
	var selectionProces=0;
	var selectionMarker=1;
	var stP=0;
	var enP=0;
	function thisDivNodeI(obj,par,del) {
		for (i=0;i<par.length;i=i+del) {
			if (obj==par[i]) return i;
		}
	}
	function markMult(obj) {
		if (selectionMarker==1) {
			obj.style.background='#2f9f25';
			obj.style.color='#ffffff';
			obj.nextSibling.checked=true;
		} else {
			obj.style.background='#ffffff';
			obj.style.color='#000000';
			obj.nextSibling.checked=false;
		}
//		window.status=obj.nextSibling.value+'__'+obj.nextSibling.checked+'';
	}
	function startMult(obj) {
		selectionMarker=(obj.nextSibling.checked) ? 0 : 1;
		markMult(obj);
		selectionProces=1;
	}
	function stopMult() {
		selectionProces=0;
	}
	function overMult(obj) {
		if (selectionProces==1) {
			markMult(obj);
		} else {
			obj.style.background=(obj.nextSibling.checked) ? '#2f9f25' : '#f4f4f4';
			obj.style.color=(obj.nextSibling.checked) ? '#ffffff' : '#000000';
		}
	}
	function outMult(obj) {
		if (selectionProces==0) {
			obj.style.background=(obj.nextSibling.checked) ? '#2f9f25' : '#ffffff';
			obj.style.color=(obj.nextSibling.checked) ? '#ffffff' : '#000000';
		}
	}
	function multSelect(sw, id) {
		switch(sw) {
			case "All":
				for(i=0;i<document.getElementById(id).getElementsByTagName('DIV').length;i=i+2) {
					selectionMarker=1;
					markMult(document.getElementById(id).getElementsByTagName('DIV')[i]);
				}
				break;
			case "Nothing":
				for(i=0;i<document.getElementById(id).getElementsByTagName('DIV').length;i=i+2) {
					selectionMarker=0;
					markMult(document.getElementById(id).getElementsByTagName('DIV')[i]);
				}
				break;			
		}
	}
	function shInputWithAddressFocus(obj) {
		obj.style.width='580px';
		obj.previousSibling.style.visibility='visible';
		obj.previousSibling.style.display='block';
		obj.previousSibling.style.position='relative';
	}
	function shInputWithAddressBlur(obj) {
		obj.style.width='690px';
		obj.previousSibling.style.visibility='hidden';
		obj.previousSibling.style.display='none';
		obj.previousSibling.style.position='absolute';
	}
	function shInputWithCatFocus(obj) {
		obj.style.width='586px';
		obj.previousSibling.style.visibility='visible';
		obj.previousSibling.style.display='block';
		obj.previousSibling.style.position='relative';
	}
	function shInputWithCatBlur(obj) {
		obj.style.width='751px';
		obj.previousSibling.style.visibility='hidden';
		obj.previousSibling.style.display='none';
		obj.previousSibling.style.position='absolute';
	}
	
	
	
	function dropDown(obj) {
		obj.firstChild.style.display='block';
	}
	function dropUp(obj) {
		obj.firstChild.style.display='none';
	}
	function dropOptionDown(obj, prefix, sufix) {
		var stext = obj.innerHTML;
		stext = escape(stext);
		stext = stext.replace(/\//g,"%2F");
		stext = stext.replace(/\?/g,"%3F");
		stext = stext.replace(/=/g,"%3D");
		stext = stext.replace(/&/g,"%26");
		stext = stext.replace(/@/g,"%40");
		var per = stext.replace(/.*%u2022%20/g, "");
		var ntext = prefix+unescape(per)+sufix;
		if (stext=='') ntext = '&mdash;';
		obj.parentNode.parentNode.parentNode.childNodes[1].firstChild.firstChild.innerHTML=ntext;
		dropUp(obj.parentNode.parentNode.parentNode);
	}
	function dropOptionOver(obj) {
		obj.style.background='#f4f4f4';
	}
	function dropOptionOut(obj) {
		obj.style.background='#ffffff';
	}	
	
	function shNextPrevBackOffOver(obj) {
		obj.style.background='url(/common/hcimgs/but_next_prev_back_red.gif) left top no-repeat';
	}
	function shNextPrevBackOffOut(obj) {
		obj.style.background='url(/common/hcimgs/but_next_prev_back.gif) left top no-repeat';
	}
	function shNextPrevBack19pxOffOver(obj) {
		obj.style.background='url(/common/hcimgs/but_next_prev_back_19px_red.gif) left top no-repeat';
	}
	function shNextPrevBack19pxOffOut(obj) {
		obj.style.background='url(/common/hcimgs/but_next_prev_back_19px.gif) left top no-repeat';
	}
	
//-->

