judin, вместо всего прежнего кода это
function calc() {
var type_host = document.getElementById("type_host");
var seo = document.getElementById("seo");
var comment = document.getElementById("comment");
var gallery = document.getElementById("gallery");
var eshop = document.getElementById("eshop");
var result = document.getElementById("result");
var price_host = 0;
var price_seo = 0;
var price_comment = 0;
var price_gallery = 0;
var price_eshop = 0;
var price = 0;
price_host += (type_host.checked == true) ? parseInt(type_host.value) : 0;
price_seo += (seo.checked == true) ? parseInt(seo.value) : 0;
price_comment += (comment.checked == true) ? parseInt(comment.value) : 0;
price_gallery += (gallery.checked == true) ? parseInt(gallery.value) : 0;
price_eshop += (eshop.checked == true) ? parseInt(eshop.value) : 0;
price=price_host+price_seo + price_comment + price_gallery + price_eshop;
result_host.innerHTML = price_host;
result_seo.innerHTML = price_seo;
result_comment.innerHTML = price_comment;
result_gallery.innerHTML = price_gallery;
result_eshop.innerHTML = price_eshop;
result.innerHTML = price;
var textarea = document.getElementsByName("comments")[0];
var counter = document.getElementById("counter");
counter.innerHTML = textarea.value.split(/ +(?:\S)/).length;
result.innerHTML *= counter.innerHTML
}
var textarea = document.getElementsByName("comments")[0];
textarea.onkeyup = calc