function stripPriceCommas(){
match = /,/;
price=document.sellerform.price.value;
newprice=price.replace(match,"");
document.sellerform.price.value=newprice;
}

function stripPoints(){
match = /\./;
loa=document.sellerform.loafeet.value;
newloa=loa.replace(match,"");
document.sellerform.loafeet.value=newloa;
}
  function resetmetricbox(){

document.sellerform.loametres.value = "00";

  }
  function resetimperialbox(){

document.sellerform.loafeet.value = "00";
document.sellerform.loainches.selectedIndex=0;

  }
  function resetbeammetric(){

document.sellerform.beammetres.value = "00";

  }
  function resetbeamimperial(){

document.sellerform.beamfeet.value = "00";
document.sellerform.beaminches.selectedIndex=0;

  }
  function resetdraftmetric(){

document.sellerform.draftmetres.value = "00";

  }
  function resetdraftimperial(){

document.sellerform.draftfeet.value = "00";
document.sellerform.draftinches.selectedIndex=0;

  }
  function checkDate(){
  if (document.sellerform.year.value.length < 4 || isNaN(document.sellerform.year.value) ){
  alert ("Your year of manufacture should be 4 digits");
	document.sellerform.year.value = "2005";
  	}
}
 function checkDims(){
 	if ((document.sellerform.loafeet.value < 1 || isNaN(document.sellerform.loafeet.value)) && (document.sellerform.loametres.value < 1 || isNaN(document.sellerform.loametres.value ))){
	alert ("You don't appear to have entered a valid LOA for your yacht - please correct this");
	}else{
		if (document.sellerform.price.value < 1 || isNaN(document.sellerform.price.value)){
	alert ("You don't appear to have entered a price for your yacht - please correct this. Re-enter the price with no spaces or commas");
	}else{
	document.sellerform.submit();
		}
	}
  }

