<!-- hide JavaScript code from browsers that are not JavaScript enabled
function addNum(){
	var pOne = document.calc.product1.value;
	var pTwo = document.calc.product2.value;
      var pThree = document.calc.product3.value * 4 ;
      
     
   	      	result1 = Number(pOne) + Number(pTwo) + Number(pThree);
       document.calc.result2.value=(Math.ceil(result1*1/3))*.5;
result3metal = document.calc.result2.value * document.calc.priceperftMetal.value;
result3gold = document.calc.result2.value * document.calc.priceperftGold.value;

var pFour = document.calc.product4.value;
//var rThree = result3;
document.calc.result4Metal.value = Number(pFour) + Number(result3metal);
document.calc.result4Gold.value = Number(pFour) + Number(result3gold);

if(document.calc.result4Metal.value == "NaN" || document.calc.result2.value == "NaN"){
	alert("Please check your values to ensure that you entered numbers");	
}

}



   		
	//get the numbers for a and b, mutliply and then return in product
	
//end hiding of JavaScript code -->

