// this script contains the specific data for the product(s) sold on this page

// prices updated 30-12-06

// Data from Magic XL Spreadsheet

var DoDebug=false;
var ArrayDone=false;
var productData=new Array();

function setProductArrayData(){
	if(ArrayDone == false)
	{
		if(DoDebug == true)
		{
			window.alert("setProductArrayData()");
		}
		// Data from Magic XL Spreadsheet...
		productData["D"] = new pObject("Locking Wire 1/2 Kg Reel","",0.00,1.00,1,"");
		productData["E"] = new pObject("R Pin 1.2mm Diameter x 5","SPL020",1.09,1.00,1,"");
		productData["C"] = new pObject("Safety Pin x 2","",0.00,1.00,1,"");
		productData["B"] = new pObject("Imperial SP90 Split Pin","",0.00,1.00,1,"");
		productData["A"] = new pObject("Metric Split Pin","",0.00,1.00,1,"");
		
		// ...Data from Magic XL Spreadsheet
		
		ArrayDone = true;
	};
}



// Descriptions & Data for Drop-Down Selection Boxes
// Also From XL Spreadsheet
function DoMetric()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$Metric", "Select Size Required", 7);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
	LineArray[0] = new BoxLine("SPL061", "1 x 12 mm Pkt 20", "1.85");
	LineArray[1] = new BoxLine("SPL062", "1.5 x 20 mm Pkt 20", "1.85");
	LineArray[2] = new BoxLine("SPL063", "1.5 x 32 mm Pkt 20", "1.85");
	LineArray[3] = new BoxLine("SPL064", "2 x 25 mm Pkt 15", "5.76");
	LineArray[4] = new BoxLine("SPL065", "2.5 x 25 mm Pkt 10", "2.33");
	LineArray[5] = new BoxLine("SPL066", "3 x 28 mm Pkt 5", "2.33");
	LineArray[6] = new BoxLine("SPL067", "4 x 35 mm Pkt 3", "2.82");
	
	BuildSelection(BoxDefn, LineArray);
}

function DoImpPinForm()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$ImpPinForm", "Select Size Required", 6);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
    LineArray[0] = new BoxLine("SPL051", "1/16 x 3/4 Pkt 20", "1.17");
    LineArray[1] = new BoxLine("SPL052", "1/16 x 1 Pkt 20", "1.17");
    LineArray[2] = new BoxLine("SPL053", "5/64 x 1 Pkt 20", "1.17");
    LineArray[3] = new BoxLine("SPL054", "3/32 x 1 Pkt 15", "1.17");
    LineArray[4] = new BoxLine("SPL055", "1/8 x 1.25 Pkt 15", "1.17");
    LineArray[5] = new BoxLine("SPL056", "1/8 x 1.5 Pkt 5", "1.17");
	
	BuildSelection(BoxDefn, LineArray);
}

function DoSafety_SIZE()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$Safety_SIZE", "Select Size Required", 5);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
	LineArray[0] = new BoxLine("SPL031", "1.4mm x 20mm", "1.40");
	LineArray[1] = new BoxLine("SPL032", "1.2mm x 35mm", "2.23");
	LineArray[2] = new BoxLine("SPL033", "1.3mm x 51mm", "2.23");
	LineArray[3] = new BoxLine("SPL034", "16swg x 1 3/8&quot;", "1.71");
	LineArray[4] = new BoxLine("SPL035", "12swg x 2 1/4&quot;", "1.11");
	
	BuildSelection(BoxDefn, LineArray);
}

function DoLock_Wire_SIZE()
{
	//Selection Box Description
	// Name, Initial Text, Number of lines in box
	BoxDefn = new BoxDefnition("$Lock_Wire_SIZE", "Select Size Required", 5);
	LineArray = new Array(BoxDefn.length);
	
	// Text & Price Information for Each line in the box
	LineArray[0] = new BoxLine("IT021", "18swg", "8.74");
    LineArray[1] = new BoxLine("IT022", "20swg", "8.74");
    LineArray[2] = new BoxLine("IT023", "22swg", "8.74");
    LineArray[3] = new BoxLine("IT024", "24swg", "11.30");
    LineArray[4] = new BoxLine("IT025", "26swg", "11.94");
	
	BuildSelection(BoxDefn, LineArray);
}

