Добрый день. Функция new() не работает.
<script language="javascript">
function old()
{
document.getElementById('site1').innerHTML = "<div class='portfolio_block'><img class='alignnone' src='images/sites/avon-4.jpg'><br><div class='portfolio_text'><a class='btn btn-primary' href='4' role='button' target='_blank'>Просмотреть</a></div></div>";
document.getElementById('site2').innerHTML = "<div class='portfolio_block'><img class='alignnone' src='images/sites/avon-5.jpg'><br><div class='portfolio_text'><a class='btn btn-primary' href='5' role='button' target='_blank'>Просмотреть</a></div></div>";
document.getElementById('site3').innerHTML = "<div class='portfolio_block'><img class='alignnone' src='images/sites/avon-6.jpg'><br><div class='portfolio_text'><a class='btn btn-primary' href='6' role='button' target='_blank'>Просмотреть</a></div></div>";
document.getElementById('buttons').innerHTML = "<button type='button' name='new' onclick='new()' class='btn btn-primary order'>< Новые</button> <button type='button' name='old' class='btn btn-primary order' disabled>Старые ></button>";
}
</script>
<script language="javascript">
function new()
{
document.getElementById('site1').innerHTML = "<div class='portfolio_block'><img class='alignnone' src='images/sites/avon-1.jpg'><br><div class='portfolio_text'><a class='btn btn-primary' href='1' role='button' target='_blank'>Просмотреть</a></div></div>";
document.getElementById('site2').innerHTML = "<div class='portfolio_block'><img class='alignnone' src='images/sites/avon-2.jpg'><br><div class='portfolio_text'><a class='btn btn-primary' href='2' role='button' target='_blank'>Просмотреть</a></div></div>";
document.getElementById('site3').innerHTML = "<div class='portfolio_block'><img class='alignnone' src='images/sites/avon-3.jpg'><br><div class='portfolio_text'><a class='btn btn-primary' href='3' role='button' target='_blank'>Просмотреть</a></div></div>";
document.getElementById('buttons').innerHTML = "<button type='button' name='new' class='btn btn-primary order' disabled>< Новые</button><button type='button' name='old' onclick='old()' class='btn btn-primary order'>Старые ></button>";
}
</script>
<div class="row">
<div class="col-md-4" id="site1">
<div class="portfolio_block">
<img class="alignnone" src="images/sites/avon-1.jpg"><br>
<div class="portfolio_text">
<a class="btn btn-primary" href="1" role="button" target="_blank">Просмотреть</a>
</div>
</div>
</div>
<div class="col-md-4" id="site2">
<div class="portfolio_block">
<img class="alignnone" src="images/sites/avon-2.jpg"><br>
<div class="portfolio_text">
<a class="btn btn-primary" href="2" role="button" target="_blank">Просмотреть</a>
</div>
</div>
</div>
<div class="col-md-4" id="site3">
<div class="portfolio_block">
<img class="alignnone" src="images/sites/avon-3.jpg"><br>
<div class="portfolio_text">
<a class="btn btn-primary" href="3" role="button" target="_blank">Просмотреть</a>
</div>
</div>
</div>
<div class="buttons_portfolio" id="buttons">
<button type="button" name="new" class="btn btn-primary order disabled">
< Новые
</button>
<button type="button" name="old" onclick="old()" class="btn btn-primary order">
Старые >
</button>
</div>
</div>