// this script contains the specific data for the product(s) sold on this page

// prices updated 29-12-08

// 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["A"] = new pObject("EW Avionics Cable","DLC010",0.00,1.00,1,"");
productData["B"] = new pObject("Volkslogger Cable","DLC020",0.00,1.00,1,"");
productData["C"] = new pObject("Colibri Cable","DLC030",0.00,1.00,1,"");
productData["D"] = new pObject("LX 20 Cable","DLC040",0.00,1.00,1,"");
productData["E"] = new pObject("LX50/5000 Cable","DLC050",0.00,1.00,1,"");
productData["F"] = new pObject("Hp Ipaq Cable","DLC070",0.00,1.00,1,"");
productData["G"] = new pObject("Compaq Aero Cable","DLC080",0.00,1.00,1,"");
productData["H"] = new pObject("Garmin Cable","DLC090",0.00,1.00,1,"");
productData["J"] = new pObject("Serial terminal","DLC100",0.00,1.00,1,"");

		// ...Data from Magic XL Spreadsheet

		ArrayDone = true;
	};
}

// Descriptions & Data for Drop-Down Selection Boxes
// Also From XL Spreadsheet
function DoEWForm()
{
//Selection Box Description
// Name, Initial Text, Number of lines in box
    BoxDefn = new BoxDefnition("$EWForm", "Select Cable", 2);
    LineArray = new Array(BoxDefn.length);

// Text & Price Information for Each line in the box	
      LineArray[0] = new BoxLine("DLC011","EW Model A & B Cable ", "22.23");
      LineArray[1] = new BoxLine("DLC012","EW Model D Cable ", "18.95");


    BuildSelection(BoxDefn, LineArray);
}


function DoVolksForm()
{
//Selection Box Description
// Name, Initial Text, Number of lines in box
    BoxDefn = new BoxDefnition("$VolksForm", "Select Cable", 4);
    LineArray = new Array(BoxDefn.length);

// Text & Price Information for Each line in the box	
      LineArray[0] = new BoxLine("DLC021","Volkslogger Round Connector Cable ", "22.23");
      LineArray[1] = new BoxLine("DLC022","Volkslogger Flat Connector Cable ", "17.69");
      LineArray[2] = new BoxLine("DLC023","Vlogger Round Con Cable c/w Mains adpt", "28.35");
      LineArray[3] = new BoxLine("DLC024","Vlogger Flat Con Cable c/w Mains adpt", "21.78");


    BuildSelection(BoxDefn, LineArray);
}

function DoColibriForm()
{
//Selection Box Description
// Name, Initial Text, Number of lines in box
    BoxDefn = new BoxDefnition("$ColibriForm", "Select Cable", 2);
    LineArray = new Array(BoxDefn.length);

// Text & Price Information for Each line in the box	
      LineArray[0] = new BoxLine("DLC031","Colibri Cable ", "17.59");
      LineArray[1] = new BoxLine("DLC032","Colibri Cable c/w Mains adpt ", "22.25");


    BuildSelection(BoxDefn, LineArray);
}


function DoLX50Form()
{
//Selection Box Description
// Name, Initial Text, Number of lines in box
    BoxDefn = new BoxDefnition("$LX50Form", "Select Cable", 3);
    LineArray = new Array(BoxDefn.length);

// Text & Price Information for Each line in the box	
      LineArray[0] = new BoxLine("DLC051","LX50/5000/7000 Cable 9 way D ", "19.63");
      LineArray[1] = new BoxLine("DLC052","LX50/5000/7000 Cable 25 way D ", "19.63");
      LineArray[2] = new BoxLine("DLC053","LX7000 Cable RJ45 Connector ", "19.63");


    BuildSelection(BoxDefn, LineArray);
}


function DoIpaqForm()
{
//Selection Box Description
// Name, Initial Text, Number of lines in box
    BoxDefn = new BoxDefnition("$IpaqForm", "Select Cable", 4);
    LineArray = new Array(BoxDefn.length);

// Text & Price Information for Each line in the box	
      LineArray[0] = new BoxLine("DLC071","Ipaq 22/38/39/5400 Serial Cable ", "10.39");
      LineArray[1] = new BoxLine("DLC072","Ipaq 31/36/3700 Serial Cable ", "23.80");
      LineArray[2] = new BoxLine("DLC073","Ipaq 22/38/39/5400 USB Cable ", "10.39");
      LineArray[3] = new BoxLine("DLC074","Ipaq 31/36/3700 USB Cable ", "10.39");


    BuildSelection(BoxDefn, LineArray);
}


function DoGarminForm()
{
//Selection Box Description
// Name, Initial Text, Number of lines in box
    BoxDefn = new BoxDefnition("$GarminForm", "Select Cable", 2);
    LineArray = new Array(BoxDefn.length);

// Text & Price Information for Each line in the box	
      LineArray[0] = new BoxLine("DLC091","Garmin Pilot II/III Cable ", "14.53");
      LineArray[1] = new BoxLine("DLC092","Garmin 12XL Cable ", "14.53");


    BuildSelection(BoxDefn, LineArray);
}

function DoSerialForm()
{
//Selection Box Description
// Name, Initial Text, Number of lines in box
    BoxDefn = new BoxDefnition("$SerialForm", "Select type", 2);
    LineArray = new Array(BoxDefn.length);

// Text & Price Information for Each line in the box	
      LineArray[0] = new BoxLine("DLC101","Serial to USB ", "15.03");
      LineArray[1] = new BoxLine("DLC102","9 pin male to 9 pin female ", "4.08");


    BuildSelection(BoxDefn, LineArray);
}


