button1.onmouseover = bordOn1;
button1.onmouseout = bordOff;

button2.onmouseover = bordOn2;
button2.onmouseout = bordOff;

button3.onmouseover = bordOn3;
button3.onmouseout = bordOff;

button4.onmouseover = bordOn4;
button4.onmouseout = bordOff;

button5.onmouseover = bordOn5;
button5.onmouseout = bordOff;

button6.onmouseover = bordOn6;
button6.onmouseout = bordOff;

color1 = '#E80101';


function bordOn1() {
  this.style.borderColor=color1;
  setVar('1');
}

function bordOn2() {
  this.style.borderColor=color1;
  setVar('2');
}

function bordOn3() {
  this.style.borderColor=color1;
  setVar('3');
}

function bordOn4() {
  this.style.borderColor=color1;
  setVar('4');
}

function bordOn5() {
  this.style.borderColor=color1;
  setVar('5');
}

function bordOn6() {
  this.style.borderColor=color1;
  setVar('6');
}

function bordOff() {
  this.style.borderColor='#3810CB';
  setVar('0');
}

function setVar(n){
stroka.setVariable("nBut", n);
}


