function countit(){
    var formcontent=document.wordcount.wordcount2.value
    formcontent=formcontent.match(/\S+/g);
    document.wordcount.wordcount3.value=formcontent.length
}

function calc(){
	var words = parseFloat(document.getElementById("words").value);
	var price = document.getElementById("price");
	var vat = document.getElementById("vat");
	var total = document.getElementById("total");
	if (words <192) {words=192}
	price.value = Math.round(words/250 * 130);
	if (words <192) {words=192}
	vat.value = Math.round(words/250 * 130 * 0.16 * 10)/10;	
	if (words <192) {words=192}
	total.value = Math.round(words/250 * 130 * 1.16);
}