function hideOption()
{
	var prodType = document.order_form.form_type.value;
	if (prodType >= "4") {
		document.getElementById("rowLift").style.display = "none";
		document.getElementById("row2on1").style.display = "none";
		//document.getElementById("rowTDBU").style.display = "none";
		document.getElementById("rowCord").style.display = "none";
	}
	else {
		document.getElementById("rowLift").style.display = "";
		document.getElementById("row2on1").style.display = "";
		//document.getElementById("rowTDBU").style.display = "";
		document.getElementById("rowCord").style.display = "";
	}
}
function checkWidth() {
	f = document.forms['order_form'];
	product_width = parseInt(f.elements['form_width_int'].value);
	e = f.elements['form_width_frac'];
	if (e.value != 'even')
		product_width += eval(e.value);
		
	if ((f.elements['form_cord_loop'].checked == false) && (product_width > 96))
		alert('Continuous Cord Loop is strongly recommended for shades over 96\" wide');
}

/*
**
**  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'] = 'fabric';
sb_config['name'] = 'Roman Shades';
sb_config['product_type_list_box'] = 0;
sb_config['product_color_list_box'] = 0;
sb_config['script_check'] = "if ((f.elements['form_cord_loop'].checked) && (f.elements['form_duo_fold'].checked)) s = 'The Top Down / Bottom Up option cannot be used with Continuous Cord Loop option'; else if ((f.elements['form_cord_loop'].checked) && (product_length < 24)) s = 'Continuous Cord Loop not available for this length.';";

sb_products = new Array();

sb_product = new Object();
sb_product['name'] = 'Plain Roman Shades Group $';
sb_product['url'] = 'http://www.dantehill.com/';
sb_product['width_minimum'] = 12;
sb_product['width_maximum'] = 120;
sb_product['length_minimum'] = 16;
sb_product['length_maximum'] = 120;
sb_product['colors'] = colors_A;
sb_product['widths'] = new Array(
  24, 30, 36, 42, 48, 54, 60, 66, 72, 78, 84, 90, 96, 120
);
sb_product['lengths'] = new Array(
  36, 42, 48, 54, 60, 66, 72, 78, 84, 90, 96, 120
);
sb_product['prices'] = new Array(
127, 131, 136, 139, 145, 188, 192, 198, 203, 209, 213, 220, 284, 362,
136, 140, 145, 148, 154, 206, 210, 218, 222, 227, 232, 236, 304, 378,
139, 142, 148, 152, 156, 209, 213, 220, 227, 232, 236, 241, 308, 395,
148, 152, 156, 162, 168, 227, 232, 238, 244, 253, 260, 261, 329, 413,
150, 154, 160, 166, 171, 230, 236, 244, 250, 255, 261, 267, 333, 432,
162, 166, 171, 176, 183, 250, 255, 261, 269, 273, 281, 285, 353, 451,
168, 174, 178, 180, 190, 255, 260, 267, 273, 279, 285, 290, 357, 469,
178, 183, 190, 192, 198, 273, 279, 285, 293, 297, 304, 311, 381, 488,
180, 188, 192, 197, 203, 279, 283, 290, 297, 302, 311, 316, 385, 509,
192, 197, 202, 209, 215, 295, 302, 311, 318, 323, 329, 335, 403, 528,
197, 202, 206, 210, 218, 297, 304, 314, 321, 328, 335, 339, 409, 544,
222, 241, 248, 250, 255, 355, 360, 363, 377, 384, 388, 395, 462, 640
);
sb_products.push(sb_product);

sb_product = new Object();
sb_product['name'] = 'Plain Roman Shades Group $$';
sb_product['url'] = 'http://www.dantehill.com/';
sb_product['width_minimum'] = 12;
sb_product['width_maximum'] = 120;
sb_product['length_minimum'] = 16;
sb_product['length_maximum'] = 120;
sb_product['colors'] = colors_B;
sb_product['widths'] = new Array(
  24, 30, 36, 42, 48, 54, 60, 66, 72, 78, 84, 90, 96, 120
);
sb_product['lengths'] = new Array(
  36, 42, 48, 54, 60, 66, 72, 78, 84, 90, 96, 120
);
sb_product['prices'] = new Array(
140, 145, 150, 154, 160, 218, 222, 230, 234, 238, 244, 250, 315, 409,
152, 156, 162, 166, 174, 241, 248, 255, 260, 265, 269, 276, 343, 430,
154, 160, 164, 168, 176, 248, 253, 258, 265, 269, 273, 279, 345, 451,
168, 174, 178, 183, 192, 272, 276, 283, 288, 293, 297, 304, 374, 472,
171, 176, 180, 190, 197, 273, 279, 285, 293, 297, 302, 311, 378, 495,
188, 192, 197, 202, 209, 300, 304, 314, 321, 325, 329, 337, 403, 516,
195, 198, 203, 209, 215, 302, 309, 318, 325, 329, 335, 341, 409, 542,
209, 213, 218, 222, 230, 329, 335, 341, 349, 353, 360, 370, 437, 565,
210, 215, 220, 224, 232, 332, 339, 347, 353, 358, 365, 374, 441, 591,
222, 227, 232, 236, 244, 358, 363, 372, 379, 384, 391, 398, 465, 614,
224, 230, 234, 241, 250, 360, 370, 377, 384, 388, 395, 402, 469, 637,
260, 279, 288, 290, 293, 430, 435, 437, 452, 458, 466, 472, 538, 754
);
sb_products.push(sb_product);

sb_product = new Object();
sb_product['name'] = 'Plain Roman Shades Group $$$';
sb_product['url'] = 'http://www.dantehill.com/';
sb_product['width_minimum'] = 12;
sb_product['width_maximum'] = 120;
sb_product['length_minimum'] = 16;
sb_product['length_maximum'] = 120;
sb_product['colors'] = colors_C;
sb_product['widths'] = new Array(
  24, 30, 36, 42, 48, 54, 60, 66, 72, 78, 84, 90, 96, 120
);
sb_product['lengths'] = new Array(
  36, 42, 48, 54, 60, 66, 72, 78, 84, 90, 96, 120
);
sb_product['prices'] = new Array(
162, 166, 174, 178, 183, 253, 258, 267, 272, 276, 281, 288, 353, 444,
176, 180, 188, 195, 202, 279, 285, 293, 297, 304, 311, 318, 388, 467,
178, 183, 192, 197, 203, 285, 290, 295, 304, 311, 316, 323, 389, 493,
197, 202, 206, 213, 220, 314, 318, 328, 332, 337, 343, 351, 420, 518,
198, 203, 210, 218, 224, 316, 323, 329, 337, 343, 349, 358, 425, 544,
215, 220, 224, 232, 238, 347, 351, 360, 370, 374, 381, 388, 458, 570,
222, 230, 234, 238, 250, 349, 353, 365, 374, 381, 386, 393, 462, 596,
238, 248, 253, 258, 267, 381, 386, 393, 402, 407, 416, 423, 495, 623,
241, 250, 255, 260, 269, 384, 391, 400, 407, 414, 421, 430, 500, 654,
258, 261, 269, 273, 281, 414, 419, 426, 437, 442, 449, 458, 526, 679,
260, 267, 272, 279, 288, 416, 423, 435, 442, 447, 456, 463, 532, 707,
290, 307, 311, 314, 321, 486, 491, 493, 507, 514, 522, 528, 596, 839
);
sb_products.push(sb_product);

sb_product = new Object();
sb_product['name'] = 'Plain Roman Shades Group $$$$';
sb_product['url'] = 'http://www.dantehill.com/';
sb_product['width_minimum'] = 12;
sb_product['width_maximum'] = 120;
sb_product['length_minimum'] = 16;
sb_product['length_maximum'] = 120;
sb_product['colors'] = colors_D;
sb_product['widths'] = new Array(
  24, 30, 36, 42, 48, 54, 60, 66, 72, 78, 84, 90, 96, 120
);
sb_product['lengths'] = new Array(
  36, 42, 48, 54, 60, 66, 72, 78, 84, 90, 96, 120
);
sb_product['prices'] = new Array(
178, 183, 191, 195, 201, 279, 283, 294, 299, 304, 309, 317, 388, 488,
193, 198, 207, 214, 222, 307, 314, 322, 326, 334, 342, 349, 426, 514,
195, 201, 211, 216, 224, 314, 319, 324, 334, 342, 347, 356, 428, 542,
216, 222, 227, 234, 242, 345, 349, 360, 365, 371, 378, 386, 462, 570,
218, 224, 231, 240, 247, 347, 356, 362, 371, 378, 384, 394, 467, 598,
237, 242, 247, 255, 262, 381, 386, 396, 407, 412, 419, 427, 504, 627,
245, 253, 257, 262, 275, 384, 388, 401, 412, 419, 425, 432, 508, 655,
262, 272, 279, 283, 294, 419, 425, 432, 442, 448, 458, 465, 544, 686,
265, 275, 281, 286, 296, 422, 430, 440, 448, 455, 463, 473, 550, 719,
283, 288, 296, 301, 309, 455, 461, 468, 480, 486, 493, 504, 578, 747,
286, 294, 299, 307, 317, 458, 465, 478, 486, 491, 502, 509, 585, 778,
319, 337, 342, 345, 353, 535, 541, 543, 558, 565, 574, 581, 655, 923
);
sb_products.push(sb_product);

sb_product = new Object();
sb_product['name'] = 'Cordless Plain Roman Shades Group $';
sb_product['url'] = 'http://www.dantehill.com/';
sb_product['width_minimum'] = 18;
sb_product['width_maximum'] = 84;
sb_product['length_minimum'] = 18;
sb_product['length_maximum'] = 84;
sb_product['colors'] = colors_A_cordless;
sb_product['widths'] = new Array(
  24, 30, 36, 42, 48, 54, 60, 66, 72, 78, 84
);
sb_product['lengths'] = new Array(
  36, 42, 48, 54, 60, 66, 72, 78, 84
);
sb_product['prices'] = new Array(
127, 131, 136, 139, 145, 188, 192, 198, 203, 209, 213,
136, 140, 145, 148, 154, 206, 210, 218, 222, 227, 232,
139, 142, 148, 152, 156, 209, 213, 220, 227, 232, 236,
148, 152, 156, 162, 168, 227, 232, 238, 244, 253, 260,
150, 154, 160, 166, 171, 230, 236, 244, 250, 255, 261,
162, 166, 171, 176, 183, 250, 255, 261, 269, 273, 281,
168, 174, 178, 180, 190, 255, 260, 267, 273, 279, 285,
178, 183, 190, 192, 198, 273, 279, 285, 293, 297, 304,
180, 188, 192, 197, 203, 279, 283, 290, 297, 302, 311
);
sb_products.push(sb_product);

sb_product = new Object();
sb_product['name'] = 'Cordless Plain Roman Shades Group $$';
sb_product['url'] = 'http://www.dantehill.com/';
sb_product['width_minimum'] = 18;
sb_product['width_maximum'] = 84;
sb_product['length_minimum'] = 18;
sb_product['length_maximum'] = 84;
sb_product['colors'] = colors_B_cordless;
sb_product['widths'] = new Array(
  24, 30, 36, 42, 48, 54, 60, 66, 72, 78, 84
);
sb_product['lengths'] = new Array(
  36, 42, 48, 54, 60, 66, 72, 78, 84
);
sb_product['prices'] = new Array(
140, 145, 150, 154, 160, 218, 222, 230, 234, 238, 244,
152, 156, 162, 166, 174, 241, 248, 255, 260, 265, 269,
154, 160, 164, 168, 176, 248, 253, 258, 265, 269, 273,
168, 174, 178, 183, 192, 272, 276, 283, 288, 293, 297,
171, 176, 180, 190, 197, 273, 279, 285, 293, 297, 302,
188, 192, 197, 202, 209, 300, 304, 314, 321, 325, 329,
195, 198, 203, 209, 215, 302, 309, 318, 325, 329, 335,
209, 213, 218, 222, 230, 329, 335, 341, 349, 353, 360,
210, 215, 220, 224, 232, 332, 339, 347, 353, 358, 365
);
sb_products.push(sb_product);

sb_product = new Object();
sb_product['name'] = 'Cordless Plain Roman Shades Group $$$';
sb_product['url'] = 'http://www.dantehill.com/';
sb_product['width_minimum'] = 18;
sb_product['width_maximum'] = 84;
sb_product['length_minimum'] = 18;
sb_product['length_maximum'] = 84;
sb_product['colors'] = colors_C_cordless;
sb_product['widths'] = new Array(
  24, 30, 36, 42, 48, 54, 60, 66, 72, 78, 84
);
sb_product['lengths'] = new Array(
  36, 42, 48, 54, 60, 66, 72, 78, 84
);
sb_product['prices'] = new Array(
162, 166, 174, 178, 183, 253, 258, 267, 272, 276, 281,
176, 180, 188, 195, 202, 279, 285, 293, 297, 304, 311,
178, 183, 192, 197, 203, 285, 290, 295, 304, 311, 316,
197, 202, 206, 213, 220, 314, 318, 328, 332, 337, 343,
198, 203, 210, 218, 224, 316, 323, 329, 337, 343, 349,
215, 220, 224, 232, 238, 347, 351, 360, 370, 374, 381,
222, 230, 234, 238, 250, 349, 353, 365, 374, 381, 386,
238, 248, 253, 258, 267, 381, 386, 393, 402, 407, 416,
241, 250, 255, 260, 269, 384, 391, 400, 407, 414, 421
);
sb_products.push(sb_product);


sb_options = new Array();

sb_option = new Object();
sb_option['type'] = 'select';
sb_option['label'] = 'mount_position';
sb_option['name'] = 'Mount position';
sb_option['script_check'] = "if (!v) s = 'Please select a mount position.';";
sb_option['script_string'] = "s = ', Mount-' + v;";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'radio';
sb_option['label'] = 'cord_position';
sb_option['name'] = 'Lift position';
sb_option['script_check'] = "if (!v) s = 'Please select a cord position.';";
sb_option['script_string'] = "if (f.elements['form_type'].value <= 2) s = ', cord on the ' + v;";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'checkbox';
sb_option['label'] = 'headrail';
sb_option['name'] = '2-on-1 headrail';
sb_option['script_price'] = "if (v == 'yes') p = 3000;";
sb_option['script_check'] = "if (v == 'yes') { if (f.elements['form_cord_loop'].checked) s = '2-on-1 headrail option not available with Continuous Cord Loop'; else if (f.elements['form_duo_fold'].checked) s = '2-on-1 headrail option not available with Top Down/Bottom Up'; else if (f.elements.form_comments.value == '') s = 'Note for 2-on-1 option you have selected: At the bottom of the page you will see a blank box for comments, notes or requests. Please use it to enter the width of each shade and position of the lift controls. If they are equal, just enter \"Equal shades\" and the lift position of each shade';}";
sb_option['script_string'] = "if (v == 'yes') s = ', 2-on-1 headrail';";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'checkbox';
sb_option['label'] = 'duo_fold';
sb_option['name'] = 'Duo-Fold';
sb_option['script_string'] = "if (v == 'yes') s = ', Top Down/Bottom Up';";
sb_option['script_check'] = "if (v == 'yes') {if ((product_width < 24) || (product_length < 24)) s = 'Top Down/Bottom Up control not available at these dimensions';}";
sb_option['script_price'] = "if (v == 'yes') p = 5500;";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'checkbox';
sb_option['label'] = 'cord_loop';
sb_option['name'] = 'Continuous Cord Loop';
sb_option['script_string'] = "if (v == 'yes') s = ', Continuous Cord Loop';";
sb_option['script_check'] = "if ((v == 'yes') && (product_length < 24)) s = 'Continuous Cord Loop not available for this length.';";
sb_option['script_price'] = "if (v == 'yes') {if(product_width <= 36) p = 5800; else if(product_width <= 72) p = 7800; else if(product_width <= 96) p = 9800; else if(product_width > 96) p = 15500;}";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'select';
sb_option['label'] = 'lining';
sb_option['name'] = 'Lining';
sb_option['script_check'] = "if (((v == 'Standard Blackout') || (v == 'Thermal Sateen')) && (f.elements['form_type'].value > 2)) s = 'Only Standard and Premium Blackout lining is available for this product type.';";
sb_option['script_price'] = "if ((si == 1) || (si == 2)) p = Math.floor(price * 0.10 + 0.5); else if (si == 3)  p = Math.floor(price * 0.25 + 0.5);";
//sb_option['script_string'] = "if (v != '') s = ', Lining: ' + v;";
sb_option['script_string'] = "s = ', Lining: ' + v;";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'text';
sb_option['label'] = 'cordless';
sb_option['name'] = 'Cordless';
sb_option['script_price'] = "if ((f.elements['form_type'].value > 2) && (product_width <= 48)) p = 5300; else if ((f.elements['form_type'].value > 2) && (product_width > 48)) p = 6300;";
sb_options.push(sb_option);

sb_option = new Object();
sb_option['type'] = 'checkbox';
sb_option['label'] = 'cords_forward';
sb_option['name'] = 'Cords forward';
sb_option['script_string'] = "if (v == 'yes') s = ', Cords forward';";
sb_option['script_price'] = "if (v == 'yes') p = 1800;";
sb_options.push(sb_option);
