﻿var items = new Array(15);
	
items['Hallway_id'] = '1502;1503;1504;1505;1506;1507;1508;1509;1510;1511;1512;1513;1514;1515;1516;1517;1518;1519;1520;1521;1522;1523;1524;1525;1526;1527;1528;1529;1530;1531;1532';
items['Hallway_name'] = 'Bookcase (per section);Box (Extra Large);Box (Large);Box (Medium);Box (Small);Box of Books;Box of Coats;Box of Ornaments;Box of Shoes / Boots;Bureau;Carpet (Small);Chair;Chandelier (Large);Chandelier (Small);Clock;Coat Stand;Cupboard;Fan, Ceiling;Fan, Pedestal;Fan, Table;Grandfather Clock;Hall Table;Mirror (Large);Mirror (Small);Picture (Large);Picture (Small);Safe (Make, Size & Weight);Shoe Rack;Table;Umbrella Stand;Window A.C';
items['Hallway_cbf'] = '20;10;6;3;2;2;10;6;6;20;3;10;20;10;5;20;20;4;6;3;20;15;7;3;7;3;15;10;20;20;4';

items['Living-Room_id'] = '1533;1534;1535;1536;1537;1538;1539;1540;1541;1542;1543;1544;1545;1546;1547;1548;1549;1550;1551;1552;1553;1554;1555;1556;1557;1558;1559;1560;1561;1562;1563;1564;1565;1566;1567;1568;1569;1570;1571;1572;1573;1574;1575;1576;1577;1578;1579;1580;1581;1582;1583;1584;1585;1586;1587;1588;1589;1590;1591;1592;1593;1594;1595;1596;1597;1598;1599;1600;1601;1602;1603;1604;1605;1606;1607;1608;1609;1610;1611;1612;1613;1614;1615;1616;1617;1618;1619;1620;1621;1622;1623;1624;1625;1626;1627;1628;1629;1630;1631;1632;1633;1634;1635;1636;1637;1638;1639;1640;1641;1642;1643;1644;1645;1646;1647;1648;1649;1650;1651;1652;1653;1654;1655;1656;1657;1658;1659;1660;1661;1662;1663;1664';
items['Living-Room_name'] = '3 Seater Sofa;4 Seater Sofa;Aquarium Stand (Large);Aquarium Stand (Small);Aquarium-10 gallon;Aquarium-20 gallon;Aquarium-55 gallon;Armchair;Bar 3 x 4 x 2;Bar Stool;Bean Bag;Bench;Blinds/Shades (per window);Bookcase (per section);Bookshelf Small;Box (Extra Large);Box (Large);Box (Medium);Box (Small);Box of Books;Box of CDs;Box of DVDs/Videos;Box of Ornaments;Buffet Base (Large);Buffet Base (Small);Bureau;Cabinet (Large);Cabinet (Medium);Cabinet (Small);Cabinet, Curio;Carpet (Area Large);Carpet (Area Small);CD Rack;Ceiling Fitting;Chair;Chair, Lounge;Chair, Occasional;Chair, Overstuffed;Chair, Recliner;Chair, Rocker;Chair, Wicker;Chaise Lounge;Chandelier (Large);Chandelier (Small);China Cabinet - 1 Piece;China Cabinet - 2 Piece;Clock;Coat Stand;Cocktail Cabinet;Coffee Table (Large);Coffee Table (Small);Cupboard;Curtains and Rods;Dehumidifier;Desk (Large);Desk (Small);Entertainment Ctr. (Large);Entertainment Ctr. (Small);Fan, Ceiling;Fan, Pedestal;Fan, Table;Fireplace Equipment;Flat Screen TV + Stand;Flat Screen TV- Large;Flat Screen TV- Small;Flat Screen TV- Standard;Folding Bed ;Futon;Glass Cabinet;Glass Showcase;Grandfather Clock;HiFi Unit;Lamp, Floor;Lamp, Stand;Lamp, Table;Large Sideboard;Lounge Suite;Magazine Rack;Mirror (Large);Mirror (Small);Nest of Tables;Occasional Table (Large);Occasional Table, (Small);Oriental Screen;Ottoman/Footstool;Overmantel;Painiting (Large);Painting (Small);Pedestal;Piano, Baby Grand;Piano, Concert;Piano, Grand;Piano, Spinet;Piano, Stool / Bench;Piano, Upright;Picture (Large);Picture (Small);Plants;Plants (Large);Popizon Chair;Portable Bar;Roll-Top Desk;Room Divider;Rug/Pad (Large);Rug/Pad (Small);Side Table;Sideboard (Large);Sideboard (Small);Sofa Bed;Sofa Section (4 Piece);Sofa Section (5 Piece);Sofa Table;Sofa, Loveseat;Speakers (Large);Speakers (Regular);Stereo / Hi-Fi System;Stool;Telephone;Toy Chest;Tub Armchair, Small;TV - 20" or Smaller;TV - 21" - 41";TV - 42" - 50";TV - 51" and More;TV Stand (Standard);Umbrella Stand;Video/DVD/Satellite Player;Wall Unit (Large);Wall Unit (Medium);Wall Unit (Small);Welsh Dresser;Window A.C';
items['Living-Room_cbf'] = '41;50;50;10;3;5;30;15;24;5;6;10;3;20;10;10;6;3;2;2;2;2;6;50;30;20;35;20;10;10;10;5;10;3;10;15;15;25;15;12;15;20;20;10;45;50;5;20;40;15;10;20;4;10;35;22;60;30;4;6;3;5;25;20;5;8;30;30;20;15;20;15;3;6;2;30;70;2;7;3;10;;106;10;5;50;7;3;10;70;100;80;70;5;70;7;3;3;15;20;15;30;40;10;3;15;30;20;50;150;185;15;32;10;5;4;5;1;15;15;5;20;50;55;25;20;2;85;60;40;50;4';

items['Kitchen_id'] = '1665;1666;1667;1668;1669;1670;1671;1672;1673;1674;1675;1676;1677;1678;1679;1680;1681;1682;1683;1684;1685;1686;1687;1688;1689;1690;1691;1692;1693;1694;1695;1696;1697;1698;1699;1700;1701;1702;1703;1704;1705;1706;1707;1708;1709;1710;1711;1712;1713;1714;1715;1716;1717;1718;1719;1720;1721;1722;1723;1724;1725';
items['Kitchen_name'] = 'Baby"s High Chair;Blinds/Shades (per window);Box (Extra Large);Box (Large);Box (Medium);Box (Small);Box of China;Box of Cleaning Products;Box of Foodstuffs;Box of Glasses;Box of Miscellaneous;Box of Pots & Pans;Chair;Drying Rack;Coffee Maker;Cooker;Curtains and Rods;Dishwasher;Display Unit;Fan, Ceiling;Fan, Pedestal;Fan, Table;Food Processor;Freezer, Chest (Large);Freezer, Chest (Small);Freezer, Chest (Standard);Fridge, American Style;Fridge/Freezer (Large);Fridge/Freezer (Small);Fridge/Freezer (Standard);Garbage Can;High Chair;Serving Cart;Kitchen Cabinet;Kitchen Chair;Kitchen Stool;Kitchen Table (Large);Kitchen Table (Medium);Kitchen Table (Small);Microwave;Pot Plants;Rug/Pad (Large);Rug/Pad (Small);Sideboard (Large);Sideboard (Small);Stair Carpet;Store Cupboard;Stove;Toaster Oven;Trolley;Tumble Dryer;Vacuum Cleaner;Wahing Machine;Washer and Dryer;Water Cooler;Welsh Dresser; Window A.C;Range, 20" Wide;Range, 30" Wide;Range, 36" Wide;Trash Compactor';
items['Kitchen_cbf'] = '4;3;10;6;3;2;6;6;6;6;6;6;10;3;3;4;4;20;15;4;6;3;3;45;25;35;50;60;35;45;7;5;10;40;10;5;60;40;25;4;4;10;3;30;20;5;30;25;4;12;25;6;25;50;5;50;4;10;15;30;15';

items['Dining-Room_id'] = '1726;1727;1728;1729;1730;1731;1732;1733;1734;1735;1736;1737;1738;1739;1740;1741;1742;1743;1744;1745;1746;1747;1748;1749;1750;1751;1752;1753;1754;1755;1756;1757;1758;1759;1760;1761;1762;1763;1764;1765;1766;1767;1768;1769;1770;1771;1772;1773;1774;1775;1776;1777;1778;1779;1780;1781;1782;1783;1784;1785';
items['Dining-Room_name'] = 'Antique/Carver Chair;Bar 3 x 4 x 2;Bar Stool;Base Buffet;Bench;Blinds/Shades (per window);Box (Extra Large);Box (Large);Box (Medium);Box (Small);Box of China/Glasses;Box, Dish Pack;Box, Large;Cabinet;Cabinet (Large);Cabinet (Medium);Cabinet (Small);Cabinet, Corner;Cabinet, Curio;Carpet (Area Large);Carpet (Area Small);Chair;Chandelier (Large);Chandelier (Small);China Cabinet - 1 Piece;China Cabinet - 2 Piece;Cocktail Cabinet;Curtains and Rods;Desk (Large);Desk (Small);Dining Chair;Dining Table (Large);Dining Table (Medium);Dining Table (Small);Display Unit;Fan, Ceiling;Fan, Pedestal;Fan, Table;Harvest Bench;High Chair;Lamp, Floor;Lamp, Stand;Lamp, Table;Mirror (Large);Mirror (Small);Nest of Tables;Picture (Large);Picture (Small);Plants;Plants (Large);Portable Bar;Pot Plants;Rug/Pad (Large);Rug/Pad (Small);Serving Cart;Stool;Tea Cart;Welsh Dresser;Window A.C;Wine Rack';
items['Dining-Room_cbf'] = '15;24;5;30;10;3;10;6;3;2;6;10;6;20;35;20;10;20;10;10;5;10;20;10;45;50;40;4;35;22;10;55;45;36;15;4;6;3;10;5;3;6;2;7;3;10;7;3;3;15;15;4;10;3;10;5;10;50;4;10';

items['Family-Room_id'] = '1786;1787;1788;1789;1790;1791;1792;1793;1794;1795;1796;1797;1798;1799;1800;1801;1802;1803;1804;1805;1806;1807;1808;1809;1810;1811;1812;1813;1814;1815;1816;1817;1818;1819;1820;1821;1822;1823;1824;1825;1826;1827;1828;1829;1830;1831;1832;1833;1834;1835;1836;1837;1838;1839;1840;1841;1842;1843;1844;1845;1846;1847;1848;1849;1850;1851;1852;1853;1854;1855;1856;1857;1858;1859;1860;1861;1862;1863;1864;1865;1866;1867;1868;1869;1870;1871;1872;1873;1874;1875;1876;1877;1878;1879;1880;1881;1882;1883;1884;1885;1886;1887;1888;1889;1890;1891;1892;1893;1894;1895;1896;1897;1898;1899;1900;1901;1902;1903;1904;1905;1906;1907;1908;1909;1910;1911;1912;1913;1914;1915;1916;1917';
items['Family-Room_name'] = '3 Seater Sofa;4 Seater Sofa;Aquarium Stand (Large);Aquarium Stand (Small);Aquarium-10 gallon;Aquarium-20 gallon;Aquarium-55 gallon;Armchair;Bar 3 x 4 x 2;Bar Stool;Bean Bag;Bench;Blinds/Shades (per window);Bookcase (per section);Bookshelf Small;Box (Extra Large);Box (Large);Box (Medium);Box (Small);Box of Books;Box of CDs;Box of DVDs/Videos;Box of Ornaments;Buffet Base (Large);Buffet Base (Small);Bureau;Cabinet (Large);Cabinet (Medium);Cabinet (Small);Cabinet, Curio;Carpet (Area Large);Carpet (Area Small);CD Rack;Ceiling Fitting;Chair;Chair, Lounge;Chair, Occasional;Chair, Overstuffed;Chair, Recliner;Chair, Rocker;Chair, Wicker;Chaise Lounge;Chandelier (Large);Chandelier (Small);China Cabinet - 1 Piece;China Cabinet - 2 Piece;Clock;Coat Stand;Cocktail Cabinet;Coffee Table (Large);Coffee Table (Small);Cupboard;Curtains and Rods;Dehumidifier;Desk (Large);Desk (Small);Entertainment Ctr. (Large);Entertainment Ctr. (Small);Fan, Ceiling;Fan, Pedestal;Fan, Table;Fireplace Equipment;Flat Screen TV + Stand;Flat Screen TV- Large;Flat Screen TV- Small;Flat Screen TV- Standard;Folding Bed ;Futon;Glass Cabinet;Glass Showcase;Grandfather Clock;HiFi Unit;Lamp, Floor;Lamp, Stand;Lamp, Table;Large Sideboard;Lounge Suite;Magazine Rack;Mirror (Large);Mirror (Small);Nest of Tables;Occasional Table (Large);Occasional Table, (Small);Oriental Screen;Ottoman/Footstool;Overmantel;Painiting (Large);Painting (Small);Pedestal;Piano, Baby Grand;Piano, Concert;Piano, Grand;Piano, Spinet;Piano, Stool / Bench;Piano, Upright;Picture (Large);Picture (Small);Plants;Plants (Large);Popizon Chair;Portable Bar;Roll-Top Desk;Room Divider;Rug/Pad (Large);Rug/Pad (Small);Side Table;Sideboard (Large);Sideboard (Small);Sofa Bed;Sofa Section (4 Piece);Sofa Section (5 Piece);Sofa Table;Sofa, Loveseat;Speakers (Large);Speakers (Regular);Stereo / Hi-Fi System;Stool;Telephone;Toy Chest;Tub Armchair, Small;TV - 20" or Smaller;TV - 21" - 41";TV - 42" - 50";TV - 51" and More;TV Stand (Standard);Umbrella Stand;Video/DVD/Satellite Player;Wall Unit (Large);Wall Unit (Medium);Wall Unit (Small);Welsh Dresser;Window A.C';
items['Family-Room_cbf'] = '41;50;50;10;3;5;30;15;24;5;6;10;3;20;10;10;6;3;2;2;2;2;6;50;30;20;35;20;10;10;10;5;10;3;10;15;15;25;15;12;15;20;20;10;45;50;5;20;40;15;10;20;4;10;35;22;60;30;4;6;3;5;25;20;5;8;30;30;20;15;20;15;3;6;2;30;70;2;7;3;10;10;6;10;5;50;7;3;10;70;100;80;70;5;70;7;3;3;15;20;15;30;40;10;3;15;30;20;50;150;185;15;32;10;5;4;5;1;15;15;5;20;50;55;25;20;2;85;60;40;50;4';

items['Bedroom_id'] = '1918;1919;1920;1921;1922;1923;1924;1925;1926;1927;1928;1929;1930;1931;1932;1933;1934;1935;1936;1937;1938;1939;1940;1941;1942;1943;1944;1945;1946;1947;1948;1949;1950;1951;1952;1953;1954;1955;1956;1957;1958;1959;1960;1961;1962;1963;1964;1965;1966;1967;1968;1969;1970;1971;1972;1973;1974;1975;1976;1977;1978;1979;1980;1981;1982;1983;1984;1985;1986;1987;1988;1989;1990;1991;1992;1993;1994;1995;1996;1997;1998;1999;2000;2001;2002;2003;2004;2005;2006;2007;2008;2009;2010;2011;2012;2013;2014;2015;2016;2017;2018;2019;2020;2021;2022;2023;2024;2025;2026;2027;2028;2029;2030;2031;2032;2033;2034;2035;2036;2037;2038;2039';
items['Bedroom_name'] = "Bed Canopy;Bed Footboard;Bed, Bunk ;Bed, Bunk (Single);Bed, Cabin (Flat);Bed, Divan (Double);Bed, Divan (King Size);Bed, Divan (Single);Bed, Double;Bed, Folding;Bed, Headboard (Large);Bed, Headboard (Medium);Bed, Headboard (Small);Bed, King Size;Bed, King Size 'Slatted;Bed, Single ;Bed, 'Slatted (Double);Bed, 'Slatted (Single);Bedpost;Bedroom Chair;Bedside Lamp;Bedside Table;Blinds/Shades (per window);Bookcase (per section);Box (Extra Large);Box (Large);Box (Medium);Box (Small);Box of Books;Box of Clothes;Box of Comforters ;Box of Linen/Towels;Box of Ornaments;Box of Pillows;Box of Shoes;Box of Toys/Games;Box Spring;Cabinet;Cabinet (Large);Cabinet (Medium);Cabinet (Small);Cabinet, Corner;Cane Chair;Carpet (Area Large);Carpet (Area Small);Chair;Chair, Boudoir;Chair, Recliner;Chair, Rocker;Chandelier (Large);Chandelier (Small);Changing Table;Chest / Trunk;Chest of Drawers;Chest of Drawers (Large);Chest of Drawers (Medium);Chest of Drawers (Small);Chest, Armoire (Large);Chest, Armoire (Small);Chest, Armoire (Standard);Chest, Cedar;Chest, Lingerie;Cheval Mirror;Child Table / Chairs ;Child's Folding Cot;Clock;Clothes Valet;Coat Rack;Computer Chair;Computer System;Cot (Large);Cot (Small);Cradle;Crib;Curtains and Rods;Dehumidifier;Dresser / Vanity Bench;Dresser, Double;Dresser, Single;Dresser, Triple;Dressing Table;Dressing Table, Double;Dressing Table, Single;Dressing Table, Triple;Fan, Ceiling;Fan, Pedestal;Fan, Table;Futon;Hamper;Hanging Clothes Box;Ironing Board;Lamp, Floor;Lamp, Stand;Lamp, Table;Linen Basket;Mattress, Double;Mattress, King Size;Mattress, Single;Mirror (Large);Mirror (Small);Ottoman/Footstool;Picture (Large);Picture (Small);Portable TV ;Rug/Pad (Large);Rug/Pad (Small);Shoe Rack;Sofa Bed;Suitcase (Large);Suitcase (Small);Table, Normal;Tallboy;Wardobe, 4 Door;Wardrobe (Flat Packed);Wardrobe Box;Wardrobe, Double;Wardrobe, Single ;Wardrobe, Triple;Washstand and Slab;Water Bed;Window A.C;Winthrop Desk";
items['Bedroom_cbf'] = '15;10;60;30;30;58;78;39;50;30;25;15;10;60;45;30;35;25;5;12;15;15;3;20;10;6;3;2;2;6;6;6;6;6;6;6;20;20;35;20;10;20;15;10;5;10;7;15;12;20;10;25;12;12;30;20;15;60;40;50;15;15;6;5;25;5;4;10;10;15;25;10;20;15;4;10;3;40;30;50;30;40;30;50;4;6;3;30;5;10;3;3;6;2;10;30;40;20;7;3;5;7;3;4;10;3;10;50;10;5;40;25;65;50;40;45;25;60;30;75;4;22';

items['Office-/-Study_id'] = '2040;2041;2042;2043;2044;2045;2046;2047;2048;2049;2050;2051;2052;2053;2054;2055;2056;2057;2058;2059;2060;2061;2062;2063;2064;2065;2066;2067;2068;2069;2070;2071;2072;2073;2074;2075;2076;2077;2078;2079;2080;2081;2082;2083;2084;2085;2086;2087;2088;2089;2090;2091;2092;2093;2094;2095;2096;2097;2098;2099;2100;2101;2102;2103;2104;2105;2106;2107;2108;2109;2110;2111;2112;2113;2114;2115;2116';
items['Office-/-Study_name'] = 'Black Board;Blinds/Shades (per window);Bookcase (per section);Bookshelf Small;Box (Extra Large);Box (Large);Box (Medium);Box (Small);Box of Books;Box of Files;Box of Records;Bureau;Cabinet;Cabinet, Corner;CD Rack;Chair;Chair Mat ;Chair, Folding;Chair, Office;Clock;Computer Desk;Computer Screen;Computer System;Computer Table/Desk;Copier, Table Top;Credenza;Curtains and Rods;Desk;Desk, Chair;Desk, Double;Desk, Executive;Desk, Hutch;Desk, Return;Desk, Single;Fan, Ceiling;Fan, Pedestal;Fan, Table;Fax Machine;File Cab (2 Draw);File Cab (3 Draw);File Cab (4 Draw);File Cab (5 Draw);Garbage Can;Keyboard (Large);Keyboard (Small);Lamp, Floor;Lamp, Stand;Lamp, Table;Mirror (Large);Mirror (Small);Notice Board;Office Chair;Pedestal;Photocopiers;Picture (Large);Picture (Small);Plants;Plants (Large);Pot Plants;Printer (Large);Printer (Standard);Projector;Rug/Pad (Large);Rug/Pad (Small);Safe (Large);Safe (Small);Statue (Large);Statue (Small);Suitcase;Table, Conference;Table, Boardroom;Table, Normal;Telephone;Trunk;Typewriter;UPS;Window A.C';
items['Office-/-Study_cbf'] = '5;3;20;10;10;6;3;2;2;2;2;20;20;30;10;10;1;2;10;5;15;2;15;20;15;20;4;22;5;35;50;10;35;30;4;6;3;4;20;30;40;50;7;5;3;3;6;2;7;3;7;18;10;4;7;3;3;15;4;8;4;2;10;3;50;15;10;5;5;70;60;40;1;10;3;4;4';

items['Garage_id'] = '2117;2118;2119;2120;2121;2122;2123;2124;2125;2126;2127;2128;2129;2130;2131;2132;2133;2134;2135;2136;2137;2138;2139;2140;2141;2142;2143;2144;2145;2146;2147;2148;2149;2150;2151;2152;2153;2154;2155;2156;2157;2158;2159;2160;2161;2162;2163;2164;2165;2166;2167;2168;2169;2170;2171;2172;2173';
items['Garage_name'] = "Bicycle;Bike;Bookcase (per section);Bowling Ball/Bag;Box (Extra Large);Box (Large);Box (Medium);Box (Small);Box of Clothes;Box of Ornaments;Box of Sports Equipment;Box of Tools;Cabinet;Cabinet (Large);Cabinet (Medium);Cabinet (Small);Edger;Elliptical Machine;Exercise Bike;Exercise Equipment, (Large);Exercise Equipment, (Small);Extension Ladder;Fridge/Freezer (Large);Fridge/Freezer (Small);Fridge/Freezer (Standard);Garbage Can (Large);Garbage Can (Small);Garden Tools;Golf Clubs;Hose & Reel;Kid's Jeep;Ladder 10';Ladder 7';Lawn Mower;Metal Chair;Plastic Bin (Large);Plastic Bin (Medium);Plastic Bin (Small);Rug/Pad (Large);Rug/Pad (Small);Shoe Rack;Snowblower;Snowmobile;Step Ladder;Tool Box (Large);Tool Box (Medium);Tool Box (Small);Tool Gang Box;Toy Chest;Treadmill;Trunk (Large);Trunk (Small);Utility Cabinet;Utility Table;Vacuum Cleaner;Wheelbarrow;Workbench";
items['Garage_cbf'] = '15;15;20;5;10;6;3;2;6;6;10;6;20;35;20;10;5;50;20;40;20;30;60;35;45;15;7;5;10;10;15;10;7;20;7;5;3;2;10;3;10;20;50;7;50;30;5;50;15;50;10;5;15;15;6;15;30';

items['Basement_id'] = '2174;2175;2176;2177;2178;2179;2180;2181;2182;2183;2184;2185;2186;2187;2188;2189;2190;2191;2192;2193;2194;2195;2196;2197;2198;2199;2200;2201;2202;2203;2204;2205;2206;2207;2208;2209;2210;2211;2212;2213;2214;2215;2216;2217;2218;2219;2220;2221;2222;2223;2224;2225;2226;2227;2228;2229;2230;2231;2232;2233;2234;2235;2236;2237;2238;2239;2240;2241;2242;2243;2244;2245;2246;2247;2248;2249;2250;2251;2252;2253;2254;2255;2256;2257;2258;2259;2260;2261;2262;2263;2264;2265;2266;2267;2268;2269;2270;2271;2272;2273;2274;2275;2276;2277;2278;2279;2280;2281;2282;2283;2284;2285;2286;2287;2288;2289;2290;2291;2292;2293;2294;2295;2296;2297;2298;2299;2300;2301;2302;2303;2304;2305;2306;2307;2308;2309;2310;2311;2312;2313;2314;2315;2316;2317;2318';
items['Basement_name'] = '3 Seater Sofa;4 Seater Sofa;Armchair;Bar 3 x 4 x 2;Bar Stool;Bean Bag;Bench;Blinds/Shades (per window);Bookcase (per section);Bookshelf Small;Box (Extra Large);Box (Large);Box (Medium);Box (Small);Box of Books;Box of CDs;Box of Clothes;Box of DVDs/Videos;Box of Ornaments;Box of Shoes;Box of Sports Equipment;Box of Tools;Box of Toys/Games;Cabinet;Cabinet (Large);Cabinet (Medium);Cabinet (Small);Carpet (Area Large);Carpet (Area Small);CD Rack;Chair;Chair, Lounge;Chair, Occasional;Chair, Overstuffed;Chair, Recliner;Chair, Rocker;Chair, Wicker;Chaise Lounge;Chest / Trunk;Chest of Drawers;Chest of Drawers (Large);Chest of Drawers (Medium);Chest of Drawers (Small);Chest, Armoire (Large);Chest, Armoire (Small);Chest, Armoire (Standard);Cheval Mirror;Child Table / Chairs ;Clock;Computer Chair;Computer System;Cupboard;Curtains and Rods;Desk (Large);Desk (Small);Elliptical Machine;Entertainment Ctr. (Large);Entertainment Ctr. (Small);Exercise Bike;Exercise Equipment, (Large);Exercise Equipment, (Small);Fan, Pedestal;Fan, Table;Flat Screen TV + Stand;Flat Screen TV- Large;Flat Screen TV- Small;Flat Screen TV- Standard;Fridge/Freezer (Large);Fridge/Freezer (Small);Fridge/Freezer (Standard);Glass Showcase;Grandfather Clock;HiFi Unit;Lamp, Floor;Lamp, Stand;Lamp, Table;Large Sideboard;Lounge Suite;Magazine Rack;Mirror (Large);Mirror (Small);Nest of Tables;Occasional Table (Large);Occasional Table, (Small);Ottoman/Footstool;Painiting (Large);Painting (Small);Pedestal;Piano, Baby Grand;Piano, Concert;Piano, Grand;Piano, Spinet;Piano, Stool / Bench;Piano, Upright;Picture (Large);Picture (Small);Ping Pong Table;Plants;Plants (Large);Plastic Bin (Large);Plastic Bin (Medium);Plastic Bin (Small);Pool Table;Popizon Chair;Portable Bar;Portable TV ;Pot Plants;Roll-Top Desk;Room Divider;Rug/Pad (Large);Rug/Pad (Small);Side Table;Sideboard (Large);Sideboard (Small);Sofa Bed;Sofa Section (4 Piece);Sofa Section (5 Piece);Sofa Table;Sofa, Loveseat;Speakers (Large);Speakers (Regular);Stereo / Hi-Fi System;Stool;Suitcase (Large);Suitcase (Small);Table;Telephone;Toy Chest;Treadmill;Trunk (Large);Trunk (Small);Tub Armchair, Small;TV - 20" or Smaller;TV - 21" - 41";TV - 42" - 50";TV - 51" and More;TV Stand (Standard);Utility Cabinet;Utility Table;Vacuum Cleaner;Video/DVD/Satellite Player;Wall Unit (Large);Wall Unit (Medium);Wall Unit (Small);Window A.C';
items['Basement_cbf'] = '41;50;15;24;5;6;10;3;20;10;10;6;3;2;2;2;6;2;6;6;10;6;6;20;35;20;10;10;5;10;10;15;15;25;15;12;15;20;12;12;30;20;15;60;40;50;6;5;5;10;15;20;4;35;22;50;60;30;20;40;20;6;3;25;20;5;8;60;35;45;15;20;15;3;6;2;30;70;2;7;3;10;10;6;5;7;3;10;70;100;80;70;5;70;7;3;50;3;15;5;3;2;50;20;15;4;4;30;40;10;3;15;30;20;50;150;185;15;32;10;5;4;5;10;5;20;1;15;50;10;5;15;5;20;50;55;25;15;15;6;2;85;60;40;4;';

items['Attic_id'] = '2319;2320;2321;2322;2323;2324;2325;2326;2327;2328;2329;2330;2331;2332;2333;2334;2335;2336;2337;2338;2339;2340;2341;2342;2343;2344;2345;2346;2347;2348;2349;2350;2351;2352;2353;2354;2355;2356;2357;2358;2359;2360;2361;2362;2363;2364;2365;2366;2367;2368;2369;2370;2371;2372;2373;2374;2375;2376;2377;2378;2379;2380;2381;2382;2383;2384;2385;2386;2387;2388;2389;2390;2391;2392';
items['Attic_name'] = 'Bed, Bunk ;Bed, Bunk (Single);Bed, Cabin (Flat);Bed, Divan (Double);Bed, Divan (King Size);Bed, Divan (Single);Bed, Double;Bed, Folding;Bedside Lamp;Bedside Table;Bookcase (per section);Bookshelf Small;Box (Extra Large);Box (Large);Box (Medium);Box (Small);Box of Antique;Box of Books;Box of CDs;Box of Clothes;Box of DVDs/Videos;Box of Ornaments;Box of Pillows;Box of Shoes;Box of Sports Equipment;Box of Tools;Box of Toys/Games;Box Spring;CD Rack;Chair;Chair, Lounge;Chair, Occasional;Chair, Overstuffed;Chair, Recliner;Chair, Rocker;Chair, Wicker;Chaise Lounge;Chest / Trunk;Chest of Drawers;Chest of Drawers (Large);Chest of Drawers (Medium);Chest of Drawers (Small);Chest, Armoire (Large);Chest, Armoire (Small);Chest, Armoire (Standard);Clock;Computer Chair;Computer System;Cupboard;Fan, Pedestal;Fan, Table;Flat Screen TV + Stand;Flat Screen TV- Small;Flat Screen TV- Standard;Futon;Lamp,Floor;Lamp, Stand;Lamp, Table;Mattress, Single;Mirror (Large);Mirror (Small);Ottoman/Footstool;Picture (Large);Picture (Small);Portable TV ;Rug/Pad (Large);Rug/Pad (Small);Suitcase (Large);Suitcase (Small);TV - 20" or Smaller;TV - 21" - 41";TV Stand (Standard);Video/DVD/Satellite Player;Window A.C';
items['Attic_cbf'] = '60;30;30;58;78;39;50;30;15;15;20;10;10;6;3;2;6;2;2;6;2;6;6;6;10;6;6;20;10;10;15;15;25;15;12;15;20;12;12;30;20;15;60;40;50;5;10;15;20;6;3;25;5;8;30;3;6;2;20;7;3;5;7;3;4;10;3;10;5;5;20;25;2;4';

items['Sunroom_id'] = '2393;2394;2395;2396;2397;2398;2399;2400;2401;2402;2403;2404;2405;2406;2407;2408;2409;2410;2411;2412;2413;2414;2415;2416;2417;2418';
items['Sunroom_name'] = 'Sofa/Loveseat;Armchair;Bench;Blinds/Shades (per window);Box of Ornaments;Coffee Table (Large);Coffee Table (Small);Sunroom Chair;Sunroom Sofa;Sunroom Table;Curtains and Rods;Fan, Pedestal;Fan, Table;Lamp, Floor;Lamp, Stand;Lamp, Table;Magazine Rack;Ottoman/Footstool (Large);Ottoman/Footstool (Small);Plants;Plants (Large);Pot Plants;Rug/Pad (Large);Rug/Pad (Small);Side Table;Stool';
items['Sunroom_cbf'] = '32;15;10;3;6;15;10;10;30;12;4;6;3;3;6;2;2;10;5;3;15;4;10;3;10;5';

items['Patio-/-Garden_id'] = '2419;2420;2421;2422;2423;2424;2425;2426;2427;2428;2429;2430;2431;2432;2433;2434;2435;2436;2437;2438;2439;2440;2441;2442;2443;2444;2445;2446;2447;2448;2449;2450;2451;2452;2453;2454;2455;2456;2457;2458;2459';
items['Patio-/-Garden_name'] = 'Barbecue;Barbecue Grill;Bench (Large);Bench (Small);Box (Extra Large);Box (Large);Box (Medium);Box (Small);Box of Garden Tools;Box of Ornaments;Box of Toys;Chair, Garden;Chair, Lounge;Chair, Patio;Chair, Stackable;Edger;Garden Bench;Garden Roller;Garden Shed Dismantled;Garden Table;Garden/Patio Heater;Hose & Reel;Lawn Mower;Leaf Sweeper;Parasol;Patio Set;Patio Set (5 Piece);Patio Table;Patio Umbrella;Plant Artificial (Large);Plant Artificial (Small);Plants;Plants (Large);Pot Plants;Retractable Sunsetter;Sand Box;Step Ladder;Sun Lounger;Trampoline;Wheelbarrow;Workbench';
items['Patio-/-Garden_cbf'] = '10;15;10;5;10;6;3;2;6;6;6;10;15;10;3;5;10;20;50;20;20;10;20;5;10;35;70;25;10;15;5;3;15;4;25;10;7;20;40;15;30';

items['Nursery_id'] = '2460;2461;2462;2463;2464;2465;2466;2467;2468;2469;2470;2471;2472;2473;2474;2475;2476;2477;2478;2479;2480;2481;2482;2483;2484;2485';
items['Nursery_name'] = "Baby Bath;Baby Carriage;Baby Walker;Baby's High Chair;Bassinet ;Bed, Baby’s ;Bouncer Seat;Box (Extra Large);Box (Large);Box (Medium);Box (Small);Box of Clothes;Box of Linen/Towels;Box of Ornaments;Box of Toys;Car Seat ;Chair, Baby’s ;Changing Table ;Chest;Cradle;Crib;Cupboard;Diaper Trash Can;Pack 'n Play/Playpen;Stroller;Table, Baby's";
items['Nursery_cbf'] = '3;4;5;4;5;30;5;10;6;3;2;6;6;6;10;3;3;25;12;20;15;20;6;10;5;5';

items['Laundry_id'] = '2486;2487;2488;2489;2490;2491;2492;2493;2494;2495;2496;2497;2498;2499;2500;2501;2502;2503;2504;2505;2506;2507;2508;2509;2510;2511;2512;2513;2514;2515;2516;2517;2518';
items['Laundry_name'] = "Basket;Box (Extra Large);Box (Large);Box (Medium);Box (Small);Box of China/Glasses;Box of Clothes;Box of Linen/Towels;Broom;Bucket;Cabinet;Cabinet (Large);Cabinet (Medium);Cabinet (Small);Cart;Clothes Dryer;Clothes Dryer Rack;Clothes Hamper;Cupboard;Dryer, Electric;Dryer, Gas;Ironing Board;Rug/Pad (Large);Rug/Pad (Small);Stool;Vacuum Cleaner;Wardrobe (Flat Packed);Wardrobe Box;Wardrobe, Double;Wardrobe, Single ;Wardrobe, Triple;Washer and Dryer;Washing Machine";
items['Laundry_cbf'] = '5;10;6;3;2;6;6;6;1;2;20;35;20;10;20;25;5;5;20;25;25;3;10;3;5;6;50;40;45;25;60;50;25';

items['Miscellaneous_id'] = '2519;2520;2521;2522;2523;2524;2525;2526;2527;2528;2529;2530;2531;2532;2533;2534;2535;2536;2537;2538;2539;2540;2541;2542;2543;2544;2545;2546;2547;2548;2549;2550;2551;2552;2553;2554;2555;2556;2557;2558;2559;2560;2561;2562;2563;2564;2565;2566;2567;2568;2569;2570;2571;2572;2573;2574;2575;2576;2577;2578;2579;2580;2581;2582;2583;2584;2585;2586;2587;2588;2589;2590;2591;2592;2593;2594;2595;2596;2597;2598;2599;2600;2601;2602;2603;2604;2605;2606;2607;2608;2609;2610;2611;2612;2613;2614;2615;2616;2617;2618;2619;2620;2621;2622;2623;2624;2625;2626;2627;2628;2629;2630;2631;2632;2633;2634;2635;2636;2637;2638;2639;2640;2641;2642;2643;2644;2645;2646;2647;2648;2649;2650;2651;2652;2653;2654;2655;2656;2657;2658;2659;2660;2661;2662;2663;2664;2665;2666;2667;2668;2669;2670;2671;2672;2673;2674;2675;2676;2677;2678;2679;2680;2681;2682;2683;2684';
items['Miscellaneous_name'] = "Aerial/Dish;Air Conditioner;Aquarium;Aquarium Stand (Large);Aquarium Stand (Small);Aquarium-10 gallon;Aquarium-20 gallon;Aquarium-55 gallon;Automobile;Bar 3 x 4 x 2;Bar Stool;Barbecue;Bench;Bike (Adult);Bike (Child);Bird Bath;Bird Cage;Bookcase (per section);Bookshelf Small;Box (Extra Large);Box (Large);Box (Medium);Box (Small);Box of Tools;Cabinet (Large);Cabinet (Medium);Cabinet (Small);Cabinet, Corner;Cabinet, Curio;Cabinet, Metal;Camper Shell;Camper Trailer;Camping Gear;Card Table;Carpet (Area Large);Carpet (Area Small);Case of Wine;Chair;Chair, Club;Chair, Folding;Chair, Metal;Chair, Plastic;Chair, Porch;Chaise Lounge;Chest, Tools;Clothes Basket;Cocktail Cabinet;Cooler;Cot, Folding;Credenza;Dog House;Drop-leaf Table;Edger;Elliptical Machine;Exercise Bike;Extension Ladder;Fan;Farm Equipment;Footlocker;Garbage Can;Garden Hose/Tool;Glider-Settee;Golf Bag;Guitar;Gun Cabinet;Hand Sewing Machine;Heater/Radiator;Hutch;Instep Stroller;Ironing Board;Kitchen Island;Ladder;Ladder, Step;Lawn Edger;Lawn Mower;Lawn Mower, Power;Lawn Mower, Riding;Mirror (Large);Mirror (Small);Moped;Musical Instrument;Ottoman/Footstool (Large);Ottoman/Footstool (Small);Pedestal;Picnic Bench;Picnic Table;Picture (Large);Picture (Small);Plane/Ultralight;Plant Stand;Plants;Plants (Large);Plastic Bag (Large);Plastic Bag (Small);Playpen, Folding;Playpen, Non-Folding;Portable Bar;Pottery;Power Tool;Power Tool Hand;Power Tool Stand;Pushchair;Rocker Swing;Rug/Pad (Large);Rug/Pad (Small);Saddle (Large);Saddle (Standard);Safe (Make, Size & Weight);Sawhorse;Screen/Folding;Sculpture;Server;Settee;Sewing Machine;Sewing Machine, Console;Shelving;Sideboard (Large);Sideboard (Small);Snowblower;Sofa, Hideabed;Softstrider;Softstrider Ex;Softstrider Pro;Spa/Hot Tub;Speakers (Large);Speakers (Regular);Spreader;Stand (Medium);Stand (Small);Stereo Console ;Stool;Suitcase;Table;Table Saw;Table, Small;Table, Utility;Tackle Box;Tire;Tool Chest;Tool Shed;Toolbox;Toy Chest;Trailer;Trailer > 14';Trampoline ;Trash Can;Treadle Sewing Machine;Treadmill;Trolley;Trunk;TV Stand;TV Tray Set ;Umbrella;Utility Cabinet;Vacuum Cleaner;Van/Truck/SUV;Vanity Table;Wading Pool;Wagon;Wall Shelves;Waste Basket;Weight Bench;Wheelbarrow;Workbench;Workbench (Small);Workbench (Standard)";
items['Miscellaneous_cbf'] = '5;15;20;50;10;3;5;30;400;24;5;10;10;15;5;5;5;20;10;10;6;3;2;6;35;20;10;20;10;20;50;700;15;5;10;5;5;10;15;2;3;3;10;20;15;5;40;3;10;20;10;25;5;50;20;30;5;350;5;7;2;20;7;5;20;6;5;20;15;3;20;4;3;5;20;10;50;7;3;35;15;10;5;10;5;20;7;3;100;2;3;15;7;3;5;10;15;4;1;5;3;4;15;10;3;10;5;15;5;12;4;15;40;5;10;15;30;20;20;60;25;25;25;70;10;5;2;10;5;25;5;5;20;20;2;5;2;3;15;100;5;15;100;115;40;7;12;50;12;10;3;4;3;10;6;550;20;4;5;10;2;15;15;30;10;30';


function applyClass()
{    
    document.getElementById('aHallway').className='rmlnk';
    document.getElementById('aLiving-Room').className='rmlnk';
    document.getElementById('aDining-Room').className='rmlnk';    
    document.getElementById('aKitchen').className='rmlnk';
    document.getElementById('aFamily-Room').className='rmlnk';
    document.getElementById('aBedroom').className='rmlnk';
    document.getElementById('aOffice-/-Study').className='rmlnk';
    document.getElementById('aGarage').className='rmlnk'; 
    document.getElementById('aBasement').className='rmlnk'; 
    document.getElementById('aAttic').className='rmlnk';
    document.getElementById('aSunroom').className='rmlnk';
    document.getElementById('aPatio-/-Garden').className='rmlnk';
    document.getElementById('aNursery').className='rmlnk';
    document.getElementById('aLaundry').className='rmlnk';    
    document.getElementById('aMiscellaneous').className='rmlnk';
    
}

function showTable(room)
{  
    var divName = 'div' + room;
    var hfTableName = document.getElementById('ctl00_cph_hfTName');  
    var showRoomItems = document.getElementById(divName); 
    var divTot_summary = document.getElementById('divTot_summary'); 
    var cubicSheet = document.getElementById('tblCubic');  

    var roomLink = document.getElementById('a'+room); 
    applyClass();    
    roomLink.className='rmlnkC';
    
    if(hfTableName.value != "")
    {
        var hideRoomItems=document.getElementById(hfTableName.value);
        hideRoomItems.style.display = 'none';
    }

    cubicSheet.style.display = 'block';
    showRoomItems.style.display = 'block';
    
    document.getElementById('spPrintEmail').style.display = 'none';
    
    document.getElementById('divSSummary').style.display = 'none';
    document.getElementById('divQSummary').style.display = '';
    document.getElementById('ctl00_cph_btnSummary1').style.display = '';
    document.getElementById('ctl00_cph_btnReset1').style.display = '';
    document.getElementById('ctl00_cph_hfReset').value = room;
    var origName = room.replace(/-/g, " ");
    origName = origName.replace(/:/g, " - ");

    document.getElementById('ctl00_cph_lblRoom').innerHTML = '';
   
    hfTableName.value = divName;

    if(showRoomItems.innerHTML == '')
    {
        FillItems(room);
    }    
    calcSummary();
}

function FillItems(room)
{
  
    var divRoom = document.getElementById('div' + room);
    
     var strID = items[room + '_id'];
     var strName = items[room + '_name'];
     var strCbf = items[room + '_cbf'];
       
    var itemId = strID.split(';');
    var itemName = strName.split(';');
    var itemCbf = strCbf.split(';');
    
    var strTable = "";
    strTable = strTable + '<table cellspacing="0" align="center" border="0" width="630">';
    for (var i = 0; i < itemId.length; i++)
    {
        var name = itemName[i].replace(/'/g, ":");
        if(i%2 == 0)
            strTable = strTable + '<tr bgcolor="#ffffff">';
        else
            strTable = strTable + '<tr bgcolor="#f5f5f5">';
        strTable = strTable + "<td width='25'>&nbsp;</td><td width='280'>" + itemName[i] + "</td><td width='98' align='center'>" + parseInt(itemCbf[i]) * 7 + "</td><td width='107' align='center'>" + itemCbf[i] + "</td><td width='40'><input name='" + itemId[i] + "_" + parseInt(itemCbf[i]) * 7 + "_" + itemCbf[i] + "_" + name + "_" + room + "' type='text' maxlength='3' id='txtItem_" + itemId[i] + "' class='sbtbx' onfocus='javascript:ClearField(this,0);' onblur='javascript:FillDefault(this,0);' onkeypress='javascript:return numkeys(event);' onblur='javascript:calcSummary();' style='width:35px;' value=0 /></td><td width='25'><a href=javascript:addition('txtItem_" + itemId[i] + "'); class='add' title='click here to add one item'>&nbsp;+&nbsp;</a></td><td width='30'><a href=javascript:Subtraction('txtItem_" + itemId[i] + "'); class='sub' title='click here to delete one item'>&nbsp;-&nbsp;</a></td><td width='25'>&nbsp;</td>";
        strTable = strTable + '</tr>';
	}
	strTable = strTable + '</table>';
	
	divRoom.innerHTML = strTable;
}

function addition(name)
{
    var itemQty = document.getElementById(name); 
    if(itemQty.value == "")
    {
        itemQty.value = 0;
    }
    itemQty.value = parseInt(itemQty.value) + 1;
    calcSummary();
}

function Subtraction(name)
{
    var itemQty=document.getElementById(name); 
    if(itemQty.value == "")
    {
        alert('Please Enter the Quantity');
    }
    else if ( parseInt(itemQty.value) > 0)
    {
        itemQty.value = parseInt(itemQty.value) - 1;
        calcSummary();
    }
}

function getElements()
{
    var obj = document.aspnetForm;
    var len = obj.elements.length;
    var hfQtyIds = document.getElementById('ctl00_cph_hfQtyIds'); 
    var ctnIds = '';
    var itmCount;
    itmCount = 0;

    for (var i = 0; i < len; i++) 
    {
        var element = obj.elements[i];
        var Control = element.id;
        if(Control.indexOf("txt") != -1)
        {
            if (element.value != "" && element.value != "0" && element.value != " Search" && element.value != "Zip Code" && element.value != "Type your query here..." && element.value != "Your Email (for replies only)" && element.value != "Tell us what you are exactly looking for here!" && element.value != "Enter Your Email Address (Optional)")
            {
                var cId = element.name.split("_");
                ctnIds = ctnIds + cId[0] + '_' + element.value + ',';
                itmCount = parseInt(itmCount) + 1;
            }
        }
    }
    if(parseInt(itmCount) > 0)
    {
        hfQtyIds.value = ctnIds;
    }
    else
    {
     if(document.getElementById('spPrintEmail'))        
            document.getElementById('spPrintEmail').style.display = 'none';
        alert('Atleast One Item Must be Selected');
        return false;
    }
}

function showSummary()
{
    var obj = document.aspnetForm;
    var len = obj.elements.length;
    var ItemValues;
    var item,qty,weight;
    var str = '';
    var summary;
    var RoomName = '';
    var RoomType = '';
    var RoomTypeName = '';
    var CBF = '';  
    
    applyClass();
  
    var hfTableName = document.getElementById('ctl00_cph_hfTName'); 
    var hideRoom = document.getElementById(hfTableName.value); 
    var divTot_summary = document.getElementById('divTot_summary'); 
    var cubicSheet = document.getElementById('tblCubic');
    
    if(hfTableName.value != "")
    {
        hideRoom.style.display='none';
    }
    

    for (var i = 0; i < len; i++) 
    {
        var element = obj.elements[i];
        var Control = element.id;

        if(Control.indexOf("txt") != -1)
        {
           if (element.value != "" && element.value != "0" && element.value != " Search" && element.value != "Zip Code" && element.value != "Type your query here..." && element.value != "Your Email (for replies only)" && element.value != "Tell us what you are exactly looking for here!" && element.value != "Enter Your Email Address (Optional)")
           {
                ItemValues = element.name.split('_');
                weight = ItemValues[1];
                CBF = ItemValues[2];
                item = ItemValues[3].replace(/:/g, "'");
                RoomName = ItemValues[4];
                
                if (RoomName == RoomType )
                {
                    RoomTypeName = '';
                }
                else
                {
                    var origName = RoomName.replace(/-/g, " ");
                    origName = origName.replace(/:/g, " - ");
                    RoomTypeName = origName + '<span class="gdhd">&nbsp;<a href=javascript:showTable(\''+ RoomName +'\');'+'><b>Edit</b></a></span>';
                }
                RoomType = RoomName;
                qty = element.value;
        		str = str+ '<tr><td></td><td>'+ RoomTypeName +'</td><td height=20>'+ item +'</td><td align=center>'+ qty +'</td><td align=center>'+ weight +'</td><td align=center>'+ CBF +'</td><td></td></tr>';
           }
        }
    }
    
    if (CBF != "" && CBF != "0")
    {
        summary = "<table width='632' cellpadding='0' cellspacing='0' border='0' style='border:#E1E1E1 solid 1px;' align='center'><tr height='20' class='gvhd'><td width='20'>&nbsp;</td><td width='150'>Room Name</td><td width='200'>Item Name</td><td width='60' align=center>Qty</td><td width='75' align=center>Weight</td><td width='75' align=center>CBF</td><td width='20'>&nbsp;</td></tr>";
        summary = summary + str;
        summary = summary + "</table>";
        
        document.getElementById('divRes').style.display = '';
    }
    else
    {
        summary = "<table width=632 cellpadding=0 cellspacing=0 border='0' style='border:#E1E1E1 solid 1px;'><tr><td height='150' align='center' class='blct'>No Items Are Selected. Choose the Items then Click on Total Summary.</td></tr></table>";
        
        document.getElementById('divRes').style.display = 'none';
    }    
    
    document.getElementById('divSSummary').style.display = '';
    document.getElementById('divQSummary').style.display = 'none';
    cubicSheet.style.display = 'none';
    divTot_summary.innerHTML = summary;
    document.getElementById('ctl00_cph_btnSummary1').style.display = 'none';
    document.getElementById('ctl00_cph_btnReset1').style.display = 'none';
    
    document.getElementById('spPrintEmail').style.display = '';
    
    document.getElementById('ctl00_cph_lblRoom').innerHTML = '<span class=quote_sub>Detailed Summary</span>';
    
    getElements();
        
    //return false;
}

function calcSummary()
{
    var tdSummary = document.getElementById('ctl00_cph_tdSummary'); 
    var tdQty = document.getElementById('ctl00_cph_tdQty'); 
    var tdWeight = document.getElementById('ctl00_cph_tdWeight'); 
    var tdCBF = document.getElementById('ctl00_cph_tdCBF'); 

    var obj = document.aspnetForm;
    var len = obj.elements.length;

    var totQty = '';
    var totWeight = '';
    var totCBF = '';
    var ItemValues;
    var weight,CBF,Qty;
  
    totQty = 0;
    totWeight = 0;
    totCBF = 0;
  
    for (var i = 0; i < len; i++) 
    {
        var element = obj.elements[i];
        var Control = element.id;
        if(Control.indexOf("txt")!= -1)
        {
            if (element.value != "" && element.value != "0" && element.value != " Search" && element.value != "Zip Code" && element.value != "Type your query here..." && element.value != "Your Email (for replies only)" && element.value != "Tell us what you are exactly looking for here!" && element.value != "Enter Your Email Address (Optional)")
            {
                if(/^\d+$/.test(element.value))
                { 
                    ItemValues = element.name.split('_');
                    CBF = parseInt(ItemValues[2]);
                    Qty = parseInt(element.value);
                    weight = parseInt(ItemValues[1]) * Qty;
                    totQty = totQty + Qty ;
                    totWeight = totWeight + weight;
                }
                else
                {
                    alert('Enter a Valid Integer');
                }
            }
        }
    }
        
    totCBF = parseInt(totWeight) / 7;
    tdSummary.innerHTML = '<u>Quick Summary</u>';
    tdQty.innerHTML = '&nbsp;No. of Items : <span class=menu_l>' + totQty + "</span>";
    tdWeight.innerHTML = 'Weight: <span class=menu_l>' + totWeight + ' lbs</span>';
    tdCBF.innerHTML = 'Volume: <span class=menu_l>'+ totCBF + ' CBF</span>';
   
    document.getElementById('ctl00_cph_tdQty2').innerHTML = totQty;
    document.getElementById('ctl00_cph_tdWeight2').innerHTML = totWeight + ' lbs';
    document.getElementById('ctl00_cph_tdCBF2').innerHTML = '&nbsp;&nbsp;&nbsp;'+totCBF + ' CBF';
    
    document.getElementById('ctl00_cph_hdnTotItems').value = totQty;
    document.getElementById('ctl00_cph_hdntotWeight').value = totWeight;
    document.getElementById('ctl00_cph_hdnCBF').value = totCBF;
    
    
}
function Reset()
{
    var hlReset = document.getElementById('ctl00_cph_hfReset'); 
    var obj = document.aspnetForm;
    var len = obj.elements.length;
    
    for (var i = 0; i < len; i++) 
    {
        var element = obj.elements[i];
        var Control = element.name;
        if (Control.indexOf(hlReset.value) != '-1' ) 
        {
           element.value='0';
        }
    }
    calcSummary();
    return false;
}

function numkeys(evt)
{ 
    if(navigator.appName == 'Netscape')
    {
        if(evt.charCode != 0)
            if (evt.charCode < 48 || evt.charCode > 57)
                return false;
    }
    else if(navigator.appName == 'Opera')
    {
        if((evt.keyCode > 47 && evt.keyCode < 58) || evt.keyCode == 8 || evt.keyCode == 46 || evt.keyCode == 39 || evt.keyCode == 37)
            return true;
        else
            return false;
    }
    else
    {
        if (evt.keyCode < 48 || evt.keyCode > 57)
            return false;
    }
    return true;
}