// JavaScript Document<!-- function pricepermts(formname,pm) {var frmname = formnamevar shippingvar cartqty = cText // alert(cartqty + "debug");A = frmname.len.value// Check to tha A ie the length is not less than 1 if it is make it 1// this will prevent the customer buying less that 1 metre of Fabricif (A < 1) A = 1;A = Number(A)price = (A * pm)frmname.price.value = roundNumber(price)frmname.itemname2.value ='length ' +  A + ' metres' // Check the cart qty returned form roman cart via // javascript in the formif (cartqty==0) {frmname.shipping1.value = Shipping1(A);//alert("cartqty = 0" + "debug");}else{frmname.shipping1.value = Shippingmorethan1(A);//alert("cartqty > 1" + "debug");}}// ***** End ********/* Calulate the Shipping for the first product */function Shipping1(num) {	var result; 	if(num >0 && num <=9999 ) result = 5;	if(num >9999 ) result = 5;	if (result == null) result = 0;	//alert(result + "debug");	return result;}/* Calulate the Shipping for the addtional products  */function Shippingmorethan1(num) {	var result; 	if(num >0 && num <=9999 ) result = 5;	if(num >9999 ) result = 5;	if (result == null) result = 0;	//alert(result + "debug");	return result;}/* This Funtion will round the price to 2 decinal places */function roundNumber(num) {	var result = num.toFixed(2); 	return result;}