i have 3 checkboxes which are price discounts: 10%, 20% and 50%. what i want to do is, if user checks multiple price discounts, i want to display all product names, product prices and also prices after discount in the textarea for all checked checkboxes. is it possible to that? for example like this, user has checked all three checkboxes:

Name: Speaker
Price: RM165.00
Discount: RM148.50

Name: Speaker
Price: RM165.00
Discount: RM132.00

Name: Speaker
Price: RM165.00
Discount: RM82.50

Code:
<script language="javascript">

function checkPrice(arg){
	var ValidChars = "0123456789.";
   	var isNumber = true;
   	var char;

 
   	for (i = 0; i < arg.length && isNumber == true; i++){ 
     		Char = arg.charAt(i); 
      		if (ValidChars.indexOf(Char) == -1){
         		isNumber = false;
         	}
      	}
  	return isNumber;	
}

function calculateProduct(){
	var prod_name = document.form1.prodName.value;
	var prod_price = document.form1.prodPrice.value;

	if(prod_name == null || prod_name == ""){
		alert("Error: Please enter product name.");
		document.form1.prodName.focus();
	}
	else if(prod_price == null || prod_price == ""){
		alert("Error: Please enter product price.");
		document.form1.prodName.focus();
	}
	else if(checkPrice(prod_price) == false){
		alert("Error: Product price must be numeric.");
		document.form1.prodPrice.focus();
	}
	else{
		if(form1.disc1.checked == true){
			var prod_discount = form1.disc1.value;
			processPrice(prod_name, prod_price, prod_discount)
		}
		else if(form1.disc2.checked == true){
			var prod_discount = form1.disc2.value;
			processPrice(prod_name, prod_price, prod_discount)
		}
		else if(form1.disc3.checked == true){
			var prod_discount = form1.disc3.value;
			processPrice(prod_name, prod_price, prod_discount)
		}	
		else{
			document.form1.description.value = "";
		}			
	}
}

function processPrice(prod_name, prod_price, prod_discount){
	var new_price = prod_price - (prod_price * prod_discount);
	new_price = new_price.toFixed(2);
	document.form1.description.value = "Name: " + prod_name + "\nPrice: RM" + prod_price + "\nDiscount: RM" + new_price + "\n\n";
}
</script>