var ind = false;
var cycle
item.onclick = function(){
if (!ind) {
cycle = setInterval(changeBG, 100);
ind = true;
} else {
clearInterval(cycle);
ind = false;
}
};
var timer
item.onclick = function(){
if (!timer) {
timer = setInterval(changeBG, 100);
} else {
timer = clearInterval(timer);
}
};