var weightArr = new Array(8);
var servingsArr = new Array(8);
var standard_priceArr = new Array(8);

var vstandard_priceArr = new Array(8);

weightArr[0] = "0.6";
weightArr[1] = "1.2";
weightArr[2] = "1.7";
weightArr[3] = "2.4";
weightArr[4] = "3.3";
weightArr[5] = "4.3";
weightArr[6] = "1.4";
weightArr[7] = "2.5";

servingsArr[0] = "5-8";
servingsArr[1] = "10-15";
servingsArr[2] = "20-25";
servingsArr[3] = "25-35";
servingsArr[4] = "33-45";
servingsArr[5] = "43-60";
servingsArr[6] = "14-20";
servingsArr[7] = "25-35";

standard_priceArr[0] = "30.60";
standard_priceArr[1] = "53.20";
standard_priceArr[2] = "67.30";
standard_priceArr[3] = "90.50";
standard_priceArr[4] = "126.50";
standard_priceArr[5] = "159.70";
standard_priceArr[6] = "62.60";
standard_priceArr[7] = "97.10";

vstandard_priceArr[0] = "33.70";
vstandard_priceArr[1] = "58.50";
vstandard_priceArr[2] = "74.00";
vstandard_priceArr[3] = "99.60";
vstandard_priceArr[4] = "139.20";
vstandard_priceArr[5] = "175.70";
vstandard_priceArr[6] = "68.90";
vstandard_priceArr[7] = "106.80";



function inforeveal( ) {

var cakeindex = document.itemsform.cakesize.selectedIndex
 nofill= document.itemsform.fillingsmenu.options[document.itemsform.fillingsmenu.selectedIndex].value

document.itemsform.cakeweight.value = weightArr[cakeindex];
document.itemsform.cakeservings.value = servingsArr[cakeindex];
if (nofill=="Standard") {
    document.itemsform.cakeprice.value = standard_priceArr[cakeindex];
    }
else if (nofill=="Eggless") {
    //var x = (standard_priceArr[cakeindex]*1.1)*10
    //var y = (Math.round(x))/10    
    document.itemsform.cakeprice.value = vstandard_priceArr[cakeindex];
    }

else {
    document.itemsform.cakeprice.value = standard_priceArr[cakeindex];
    }
}

