function calc()
{
living = document.form1.living.value;
family = document.form1.family.value;
stairs = document.form1.stairs.value;
dining = document.form1.dining.value;
den = document.form1.den.value;
bath = document.form1.bath.value;
kitchen = document.form1.kitchen.value;
bedroom = document.form1.bedroom.value;
sofa = document.form1.sofa.value;
loveseat = document.form1.loveseat.value;
chair = document.form1.chair.value;
sectional = document.form1.sectional.value;
neighborv = document.form1.neighborv.value;

noofrooms= parseInt(living) + parseInt(family) + parseInt(stairs) + parseInt(dining) + parseInt(den) + parseInt(bath) + parseInt(kitchen) + parseInt(bedroom);

tsofa = parseInt(sofa) * 55 ;
tloveseat = parseInt(loveseat) * 45 ;
tchair = parseInt(chair) * 35;
tsectional = parseInt(sectional) * 110;

furniture = tsofa + tloveseat + tchair + tsectional;

tneighborv = parseInt(neighborv);
document.form1.total.value=((noofrooms * tneighborv) + furniture);
//document.form1.nname1.value=document.form1.neighborv.selectedindex;
//alert(document.form1.neighborv.SelectedIndex.Text);
}

