var block = document.getElementById("teaser_7"); var text = 'not valid site-http://statehistory.ru'; if(block){block.innerHTML = text;}