function countit(){
    var formcontent=document.quote.wordcount2.value
    formcontent=formcontent.match(/\S+/g);
    document.quote.wordcount3.value=formcontent.length
}

var rateList = new Array (33, 50*1.3*1.155, 60*1.155, 50*1.155, 60*1.155, 70*1.155);

function getIndex(){
    var box = document.getElementById("selectItem");
    return(box.selectedIndex);
}

function calc(){
    var rate = rateList[getIndex()];
    var words = parseFloat(document.getElementById("words").value);
    var price = document.getElementById("price");
	 if (words <250) {words=250}
    price.value = Math.round(words/250 * rate);
}