function workit()
{
var xsource = new Array(0,0.09,0.1); // source language
var xtarget = new Array(0,0.08,0.09); // target language
var xtype = new Array(0,0,0.06,0,0.02,0.02,0.04,0.03,0.01); // type of text
var itemA = parseInt(form1.words.value);
if(!itemA){itemA=1};
var itemB = parseInt(form1.source.options[form1.source.selectedIndex].value);
var itemC = parseInt(form1.target.options[form1.target.selectedIndex].value);
var itemD = parseInt(form1.type.options[form1.type.selectedIndex].value);

var total = (itemA*(xtarget[itemC]+xtype[itemD]));

if(total < 9) {total = 9};

mytotal.innerHTML = total.toFixed(2);
}
