// this script contains the specific data for the product(s) sold on this page

// Data from Magic XL Spreadsheet

var DoDebug=false
var ArrayDone=false;
var productData=new Array();

function setProductArrayData(){
	if(ArrayDone == false)
	{
		// Data from Magic XL Spreadsheet...
		productData["B"] = new pObject("Weak Link ","",0.00,1.00,1,"");
		productData["C"] = new pObject("Weak Link Reserve ","",0.00,1.00,1,"");
		productData["D"] = new pObject("Weak Link Cover ","",0.00,1.00,1,"");
		productData["E"] = new pObject("Weak Link Shackle ","",0.00,1.00,1,"");
		productData["F"] = new pObject("Notch-type connector","",0.00,1.00,1,"");
		productData["G"] = new pObject("Scissor-type connector 097000","RH060",31.64,1.00,1,"");
		productData["H"] = new pObject("Screw-type connector 095000","RH070",6.86,1.00,1,"");
		productData["J"] = new pObject("Delta-type connector 095010","RH090",9.04,1.00,1,"");
		productData["K"] = new pObject("Connecting ring 102000","RH080",26.11,1.00,1,"");

		
		
		// ...Data from Magic XL Spreadsheet
		
		ArrayDone = true;
	};
}

// Descriptions & Data for Drop-Down Selection Boxes
// Also From XL Spreadsheet

function DoWeak_linkForm()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$Weak_linkForm", "Select Item Required", 5);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
	LineArray[0] = new BoxLine("WC021"," Weak Link No 1 Black", "2.71");
	LineArray[1] = new BoxLine("WC022"," Weak Link No 2 Brown", "2.71");
	LineArray[2] = new BoxLine("WC023"," Weak Link No 3 Red", "2.71");
	LineArray[3] = new BoxLine("WC024"," Weak Link No 4 Blue", "2.71");
	LineArray[4] = new BoxLine("WC025"," Weak Link No 5 White", "2.71");


	BuildSelection(BoxDefn, LineArray);
}

function DoRWeak_linkForm()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$RWeak_linkForm", "Select Item Required", 5);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
	LineArray[0] = new BoxLine("WC031"," Reserve Weak Link No 1 Black", "2.71");
	LineArray[1] = new BoxLine("WC032"," Reserve Weak Link No 2 Brown", "2.71");
	LineArray[2] = new BoxLine("WC033"," Reserve Weak Link No 3 Red", "2.71");
	LineArray[3] = new BoxLine("WC034"," Reserve Weak Link No 4 Blue", "2.71");
	LineArray[4] = new BoxLine("WC035"," Reserve Weak Link No 5 White", "2.71");


	BuildSelection(BoxDefn, LineArray);
}

function DoLinkCoversForm()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$LinkCoversForm", "Select Item Required", 2);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
	LineArray[0] = new BoxLine("WC041"," Weak Cover Single", "5.27");
	LineArray[1] = new BoxLine("WC042"," Weak Cover Double", "4.77");
	
	BuildSelection(BoxDefn, LineArray);
}

function DoShacklesForm()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$ShacklesForm", "Select Item Required", 3);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
	LineArray[0] = new BoxLine("WC051"," Shackle 3 mm opening", "4.92");
	LineArray[1] = new BoxLine("WC052"," Shackle 6 mm opening", "4.92");
	LineArray[2] = new BoxLine("WC053"," Shackle 8 mm opening", "4.92");

	BuildSelection(BoxDefn, LineArray);
}

function DoNotch_connectorForm()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$Notch_connectorForm", "Select Parts Required", 4);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
	LineArray[0] = new BoxLine("RH051-"," Notch Connector 096000", "29.93");
	LineArray[1] = new BoxLine("RH052-"," 8 mm shackle 112800", "4.92");
	LineArray[2] = new BoxLine("RH053-"," Seperate Oval ring 096005", "9.04");
	LineArray[3] = new BoxLine("RH054-"," Seperate Hook 096010 ", "20.89");
	
	BuildSelection(BoxDefn, LineArray);
}
