<!-- Begin

function CountWords (this_field, show_word_count, show_char_count) {
if (show_word_count == null) {
show_word_count = true;
}
if (show_char_count == null) {
show_char_count = false;
}
var char_count = this_field.value.length;
var fullStr = this_field.value + " ";
var initial_whitespace_rExp = /^[^A-Za-z0-9]+/gi;
var left_trimmedStr = fullStr.replace(initial_whitespace_rExp, "");
var non_alphanumerics_rExp = rExp = /[^A-Za-z0-9]+/gi;
var cleanedStr = left_trimmedStr.replace(non_alphanumerics_rExp, " ");
var splitString = cleanedStr.split(" ");
var word_count = splitString.length -1;
if (fullStr.length <2) {
word_count = 0;
}
if (word_count == 1) {
wordOrWords = " word";
}
else {
wordOrWords = " words";
}
if (char_count == 1) {
charOrChars = " character";
} else {
charOrChars = " characters";
}
if (show_word_count & show_char_count) {
alert ("Your Text Contains:\n" + "    " + word_count + wordOrWords);
}
else {
if (show_word_count) {
alert ("Your Text Contains:  " + word_count + wordOrWords);
}
else {
if (show_char_count) {
alert ("and:  " + char_count + charOrChars);
      }
   }
}
return word_count;
}

function valueof(str)
{
  if (str == "") {
    return 0
  } else {
    return eval(str)
  }
}

function clearFields()
{
  document.calculator.operand1.value = ""
  document.calculator.result.value = ""
  document.calculator.operand1.focus()
}

function multiply()
{
  document.calculator.result.value = 
    valueof(document.calculator.operand1.value) * 250

}

//   -->
//  End -->
