// JavaScript Document

// Calculate the Price if the text lenght is greater than zero
// calc-premiumtext.htm

function priceCalc() {

//alert('Test')

var A = '0.00'
var groupArray = document.frmOne.radiogroup1;
for (i=0; i<groupArray.length; i++) {
     if (groupArray[i].checked === true) {
       // A =   document.frmOne.action=document.frmOne.radiogroup1[i].value;
	    A =  document.frmOne.radiogroup1[i].value;
     }
	}

//alert(A)
price = Number(A)

document.frmOne.price.value = roundNumber(price)

}

// ******  End *******


/* This Funtion Will round the price to 2 decinal places */

function roundNumber(num) {
	var result = num.toFixed(2); 
	return result;
}




