var price = new Array();
price['30.5*30.5*1,unfilled-honed'] = "10.90";
price['30.5*30.5*1,unfilled-polished'] = "10.90";
price['30.5*30.5*1,unfilled-brushed'] = "10.90";
price['30.5*30.5*1,filled-honed'] = "11.50";
price['30.5*30.5*1,filled-polished'] = "11.90";
price['30.5*61*1.2,unfilled-honed'] = "13.00";
price['30.5*61*1.2,unfilled-polished'] = "13.00";
price['30.5*61*1.2,unfilled-brushed'] = "13.00";
price['30.5*61*1.2,filled-honed'] = "13.50";
price['30.5*61*1.2,filled-polished'] = "13.90";
price['40.6*40.6*1.2,unfilled-honed'] = "13.49";
price['40.6*40.6*1.2,unfilled-polished'] = "13.49";
price['40.6*40.6*1.2,unfilled-brushed'] = "13.49";
price['40.6*40.6*1.2,filled-honed'] = "14.00";
price['40.6*40.6*1.2,filled-polished'] = "14.00";
price['40.6*61*1.2,unfilled-honed'] = "13.50";
price['40.6*61*1.2,unfilled-polished'] = "13.50";
price['40.6*61*1.2,unfilled-brushed'] = "13.50";
price['40.6*61*1.2,filled-honed'] = "14.50";
price['40.6*61*1.2,filled-polished'] = "14.50";
price['45.7*45.7*1.2,unfilled-honed'] = "13.99";
price['45.7*45.7*1.2,unfilled-polished'] = "13.99";
price['45.7*45.7*1.2,unfilled-brushed'] = "13.99";
price['45.7*45.7*1.2,filled-honed'] = "15";
price['45.7*45.7*1.2,filled-polished'] = "15";
price['61*61*1.5,unfilled-honed'] = "16.50";
price['61*61*1.5,unfilled-polished'] = "16.50";
price['61*61*1.5,unfilled-brushed'] = "16.50";
price['61*61*1.5,filled-honed'] = "18";
price['61*61*1.5,filled-polished'] = "18";
price['60*60*2,unfilled-honed'] = "16.95";
price['60*60*2,unfilled-polished'] = "16.95";
price['60*60*2,unfilled-brushed'] = "16.95";
price['60*60*2,filled-honed'] = "18.30";
price['60*60*2,filled-polished'] = "18.30";
price['slab 2 cm,unfilled-honed'] = "17.50";
price['slab 2 cm,unfilled-polished'] = "17.50";
price['slab 2 cm,unfilled-brushed'] = "17.50";
price['slab 2 cm,filled-honed'] = "19.50";
price['slab 2 cm,filled-polished'] = "19.50";

function unitprice()
{
	var d = document.getElementById('dimention').value;
	var f = document.getElementById('finishing').value;
	var put = document.getElementById('put');
	if(d && f) put.innerHTML = price[d+','+f];
	updatePrice('total_area');
}

function updatePrice(obj)
{
	obj = document.getElementById(obj);
	var unitprice = document.getElementById('put').innerHTML;
	var amount = obj.value;
	if(unitprice*1 && amount*1)
		document.getElementById('total_amount').value = unitprice*amount;
	else 
		document.getElementById('total_amount').value = '';
}












