function makeDecimal (amount) {
   if (amount != null && amount != 0) {
     var x = Math.round(parseFloat(amount) * 100);
                                    // round and make it an integer
     if (x < 100) {var d=0;} else
     var d = parseInt(x / 100);      // the dollars amount
     var c = x % 100;                // the cents amount
     var g = (c >= 10)?"":"0";       // need extra "0" if cents 
                                    // is a single digit number
     amount = "" + d + "." + g + c  // construct the string thing
   }
   return amount
}




function checkQty3() {
 
    
  
 if (document.getElementById('myID3').value > 0  && document.getElementById('myID3').value <=24)
   
   {document.additem3.price.value=makeDecimal(49)
   document.getElementById('price3').innerHTML  = '$49.00'  }
   
   else if   (document.getElementById('myID3').value >= 25 && document.getElementById('myID3').value <= 99)
   
    {document.additem3.price.value=makeDecimal(44)
	document.getElementById('price3').innerHTML  ='$44.00'  }
	
	
else if   (document.getElementById('myID3').value >= 100)
   
    {document.additem3.price.value=makeDecimal(39)
	document.getElementById('price3').innerHTML = '$39.00'  }
	}


function checkQty4() {
 
    
  
 if (document.getElementById('myID4').value > 0 )
   
   {document.additem4.price.value=makeDecimal(100) 
   document.getElementById('price4').innerHTML = '$100.00'  }
   
   
	}


function updateAmt (qty, price) {
   qty = parseFloat(qty)
   if (qty != null || qty != 0)
      amount= qty * parseFloat(price)
      else amount=0;
   return amount
}






