<script language="JavaScript">
var items_1=new Array (
'1', 'bookcases',
'16', 'butler tables',
'13', 'coffee tables',
'14', 'hall tables',
'5', 'leather accents',
'12', 'mirrors',
'15', 'side tables',
'8', 'storage and display units',
'9', 'tables',
'10', 'wood accents',
'');
var items_2=new Array (
'1', 'bookcases',
'11', 'chests of drawers',
'6', 'sideboards',
'8', 'storage and display units',
'');
var items_3=new Array (
'1', 'bookcases',
'2', 'chairs',
'13', 'coffee tables',
'14', 'hall tables',
'6', 'sideboards',
'8', 'storage and display units',
'9', 'tables',
'');
var items_4=new Array (
'16', 'butler tables',
'2', 'chairs',
'11', 'chests of drawers',
'13', 'coffee tables',
'17', 'sectionals',
'15', 'side tables',
'7', 'sofas',
'8', 'storage and display units',
'');
var items_5=new Array (
'3', 'home office and entertainment',
'');
var items_6=new Array (
'11', 'chests of drawers',
'');
var items_0=new Array ('');
function freeSelect(sel,dflt){
for(var i=0;sel.options.length>0;i++){
sel.options[0]=null;
}
sel.options[0]=new Option(dflt,'');
}
function changeRoom(form,room)
{
var cb=form.productItems;
freeSelect(cb,'select item');
var items=eval("items_" + room);
for(i=0; i<(items.length-1);i+=2)
{
var opt=new Option(items[i+1],items[i]);
cb.options[cb.options.length]=opt;
}
}
</script>
Bookmarks