<!DOCTYPE html>
<html>
<head>
<meta charset="windows-1251" />
</head>
<body>
<div id="pizzabloc">
<form name='addtocart225' action='index.php' method='post'>
<div class='atczone'>
<input type='submit' name='submit' value='Добавить в корзину' class='scp_atc' /></div>
<input type='hidden' name='edtunitprice' value='379' />
<input type='hidden' name='lasturl' value='index.php' />
</form>
<div id="bbprice">*** Р <span>x</span></div>
</div>
<div id="pizzabloc">
<form name='addtocart226' action='index.php' method='post'>
<div class='atczone'>
<input type='submit' name='submit' value='Добавить в корзину' class='scp_atc' /></div>
<input type='hidden' name='edtunitprice' value='400' />
<input type='hidden' name='lasturl' value='index.php' />
</form>
<div id="bbprice">*** Р <span>x</span></div>
</div>
<script>
pizzablocs=document.querySelectorAll("#pizzabloc")
f=function(el){
var value=el.querySelector("input[name='edtunitprice']").value
var div=el.querySelector("#bbprice")
div.innerHTML=div.innerHTML.replace(/\*\*\*/, value)
}
;[].forEach.call(pizzablocs, f)
</script>
</body>
</html>