function process (obj1) { // Read the user form
var wi,wiot,text1;
wi = 0; wiot = ""; text1 = "";
  if (obj1.item_price_1 && obj1.item_price_1.value*1.0 >0) {wi  = obj1.item_price_1.value*1.0;} else { obj1.item_price_1.focus();
		alert ("Enter the payment amount.");
        return false; } // amount
  if (obj1.item_description_1 && obj1.item_description_1.value != "") {text1 = obj1.item_description_1.value;} else { obj1.item_description_1.focus();
		alert ("Enter your name AND first line of address.");
        return false;} // base description
if (wi > 0 && text1 != "") {obj1.item_price_1.value = Pound (wi/1.175);
	  return true; } else return false;
    }


function removeVAT (obj1) {  // submit, then clear a FORM
  if (process (obj1)) {
	 obj1.submit();
     obj1.reset();
  }
  return false;
}

function Pound (val) {  // force to valid pound amount
var str,pos,rnd=0;
  if (val < .995) rnd = 1;  // for old Netscape browsers
  str = escape (val*1.0 + 0.005001 + rnd);  // float, round, escape
  pos = str.indexOf (".");
  if (pos > 0) str = str.substring (rnd, pos + 3);
  return str;
}