var shape_sizes = new Array ("1","8","2","3","1","9","2","4","1","10","3","5","1","12","4","7","1","11","4","5","1","13","5","7","1","18","5","8","1","19","6","9","2","14","2","8","2","20","2","7","2","15","2","8","2","21","2","7","2","16","2","10","2","22","2","7","2","17","2","10","3","23","3","0","3","24","4","0","3","25","5","0","3","26","6","0","3","27","7","0","3","28","8","0","3","29","9","0","3","30","10","0","4","31","3","3","4","32","4","4","4","33","5","5","4","34","6","6","4","35","7","7","4","36","8","8","5","37","4","0","5","38","5","0","5","39","6","0","5","40","7","0","5","41","7","0","5","42","8","0","5","43","9","0","5","44","10","0"); function ShapeChange_(ref_shape) { var i, j; j = SearchForm.get_size.options.length = 1; SearchForm.get_size.options.selectedIndex = 0; for (i = 0; i < shape_sizes.length / 4; i++) { if (shape_sizes[i*4] == ref_shape) { SearchForm.get_size.options.length = j+1; model.options[j].value = shape_sizes[i*4+1]; if (shape_sizes[i*4+3] == 0) { text = shape_sizes[i*4+2] + ' ft.'; } else { text = shape_sizes[i*4+2] + ' x ' + shape_sizes[i*4+3] + ' ft.'; } model.options[j].text = text; j += 1; } } return; }