/* javascript function to update form field

 *  field		form field that is being counted

 *  count		form field that will show characters left

 *  maxchars 	maximum number of characters

*/



function pricediscount1(id,pricevalue)

{ 
	var packprice;
	var qty;
pricevalue = (parseFloat(pricevalue)).toFixed(2);
  document.getElementById('productdiscount'+id).value = '$'+pricevalue;
  packprice = document.getElementById('packprice'+id).value; 
  qty = pricevalue / packprice;
  document.getElementById('cart_quantity'+id).value = qty;

}  
  /*	

  document.getElementById('cart_quantity'+id).value = document.getElementById('cart_price'+id).options[document.getElementById('cart_price'+id).selectedIndex].text;
  */	

