function showPairs()
{
	var style = document.getElementById('form_style');
	if (document.getElementById)
	{
		var i=1;
		while (document.getElementById("pair"+i))
		{
			if ((style.value == '1-3/8" Smooth') || (style.value == '1-3/8" Fluted') || (style.value == '1-3/8" Spiral'))
				document.getElementById("pair"+i).value = " (pair)";
			else if ((style.value == '2" Smooth') || (style.value == '2" Fluted'))
				document.getElementById("pair"+i).value = " (each)";
			i++;
		}
	}
	if ((style.value == '1-3/8" Smooth') || (style.value == '1-3/8" Fluted') || (style.value == '1-3/8" Spiral'))
		document.getElementById("rings").value = " (package of 7)";
	else
		document.getElementById("rings").value = " (package of 4)";
}

/*
**
**  Copyright (c) 1997-2003 by Sniglets, Inc., all rights reserved.
**
**  Usage, duplication, and/or modification of this program, its
**  representation, or its results without written permission from
**  Sniglets, Inc. is expressly prohibited.
**
**  $Id: woven.js,v 1.3 2003/03/08 17:13:17 john Exp john $
**
*/

var sb_config_drop_down, sb_products, sb_product, sb_option, sb_options;

sb_config = new Object();
sb_config['label'] = 'hardware';
sb_config['name'] = 'Metal Hardware Collection';
sb_config['product_type_list_box'] = 0;
sb_config['product_color_list_box'] = 0;


sb_products = new Array();

sb_product = new Object();
sb_product['name'] = 'Metal Hardware Collection';
sb_product['url'] = 'http://www.dantehill.com/';
sb_product['colors'] = new Array(
'Satin Nickel',
'Oil Rubbed Bronze',
'Antique Brass'
);

sb_products.push(sb_product);


sb_options = new Array();

sb_option = new Object();
sb_option['type'] = 'select';
sb_option['label'] = 'rod_sets';
sb_option['name'] = 'Rod Sets';
sb_option['script_price'] = "if (v == '28-48 inches') p = 2995; else if (v == '48-86 inches') p = 4195; else if (v == '86-120 inches') p = 5395;";
sb_option['script_string'] = "if (v != '') s = ', Rod Sets: ' + v;";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'select';
sb_option['label'] = 'finials';
sb_option['name'] = 'Finial style';
sb_option['script_price'] = "if (v != '') p = 2450;";
sb_option['script_string'] = "if (v != '') s = ', Finials (pair): ' + v;";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'checkbox';
sb_option['label'] = 'ext_brackets';
sb_option['name'] = '5" inch Extension Brackets';
sb_option['script_price'] = "if (v == 'yes') p = 1195;";
sb_option['script_string'] = "if (v == 'yes') s = ', 5\" inch Extension Brackets (each): ';";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'checkbox';
sb_option['label'] = 'double_brackets';
sb_option['name'] = 'Double Brackets';
sb_option['script_price'] = "if (v == 'yes') p = 1195;";
sb_option['script_string'] = "if (v == 'yes') s = ', Double Brackets (each): ';";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'checkbox';
sb_option['label'] = 'rings';
sb_option['name'] = 'Rings';
sb_option['script_price'] = "if (v == 'yes') p = 1795;";
sb_option['script_string'] = "if (v == 'yes') s = ', Rings (package of 7): ';";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'checkbox';
sb_option['label'] = 'extender_rod';
sb_option['name'] = '44" Extender Rod';
sb_option['script_price'] = "if (v == 'yes') p = 2695;";
sb_option['script_string'] = "if (v == 'yes') s = ', 44\" Extender Rod: ';";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'checkbox';
sb_option['label'] = 'endcaps';
sb_option['name'] = 'End Caps';
sb_option['script_price'] = "if (v == 'yes') p = 1250;";
sb_option['script_string'] = "if (v == 'yes') s = ', End Caps (Pair): ';";
sb_options.push(sb_option);

