
var surfacePick ="o";
var formatPick ="o";
var sizePick = "o";
var fullSelection = "o";
function setOptions(chosen) {
var selbox = document.myform.opttwo;
selbox.options.length = 0;
if (chosen == " ") {
selbox.options[selbox.options.length] = new Option('Please select one of the options above first',' ');
}

if (chosen == "999") {
selbox.options[selbox.options.length] = new Option('Screen Format',' ');
setOptionsTwo("99");
}
if (chosen == "M2500") {
selbox.options[selbox.options.length] = new Option('Screen Format','99');
selbox.options[selbox.options.length] = new Option('NTSC Video','NTSC Video');
}

if (chosen == "HiDef Grey") {
selbox.options[selbox.options.length] = new Option('Screen Format','99');
selbox.options[selbox.options.length] = new Option('NTSC Video','NTSC Video');
}

if (chosen == "M1300") {
selbox.options[selbox.options.length] = new Option('Screen Format','99');
selbox.options[selbox.options.length] = new Option('NTSC Video','NTSC Video');
}

surfacePick = chosen;
}
function setOptionsTwo(chosen) {
var selbox = document.myform.optthree;
selbox.options.length = 0;
if (chosen == " ") {
selbox.options[selbox.options.length] = new Option('Please select one of the options above first',' ');
}
if (chosen == "99") {
selbox.options[selbox.options.length] = new Option('Screen Size','9999');
}
if (chosen == "NTSC Video" && surfacePick == "M2500") {
selbox.options[selbox.options.length] = new Option('Screen Size','9999');
selbox.options[selbox.options.length] = new Option('72 inch','72 inch');
selbox.options[selbox.options.length] = new Option('84 inch','84 inch');
selbox.options[selbox.options.length] = new Option('100 inch','100 inch');
selbox.options[selbox.options.length] = new Option('120 inch','120 inch');
selbox.options[selbox.options.length] = new Option('132 inch','132 inch');
selbox.options[selbox.options.length] = new Option('150 inch','150 inch');
}


if (chosen == "NTSC Video" && surfacePick == "HiDef Grey") {
selbox.options[selbox.options.length] = new Option('Screen Size','9999');
selbox.options[selbox.options.length] = new Option('72 inch','72 inch');
selbox.options[selbox.options.length] = new Option('84 inch','84 inch');
selbox.options[selbox.options.length] = new Option('100 inch','100 inch');
selbox.options[selbox.options.length] = new Option('120 inch','120 inch');
selbox.options[selbox.options.length] = new Option('132 inch','132 inch');
selbox.options[selbox.options.length] = new Option('150 inch','150 inch');
}


if (chosen == "NTSC Video" && surfacePick == "M1300") {
selbox.options[selbox.options.length] = new Option('Screen Size','9999');
selbox.options[selbox.options.length] = new Option('72 inch','72 inch');
selbox.options[selbox.options.length] = new Option('84 inch','84 inch');
selbox.options[selbox.options.length] = new Option('100 inch','100 inch');
selbox.options[selbox.options.length] = new Option('120 inch','120 inch');
selbox.options[selbox.options.length] = new Option('132 inch','132 inch');
selbox.options[selbox.options.length] = new Option('150 inch','150 inch');
}


 formatPick = chosen; 
}
function storeSize(chosen) {
sizePick= chosen;
}

function ChooseProd() {
var Products = new Array(18)

Products["M2500"+"NTSC Video"+"72 inch"] = "123007";
Products["HiDef Grey"+"NTSC Video"+"72 inch"] = "123025";
Products["M1300"+"NTSC Video"+"72 inch"] = "123001";
Products["M2500"+"NTSC Video"+"84 inch"] = "123008";
Products["M1300"+"NTSC Video"+"84 inch"] = "123002";
Products["HiDef Grey"+"NTSC Video"+"84 inch"] = "123026";
Products["M1300"+"NTSC Video"+"100 inch"] = "123003";
Products["M2500"+"NTSC Video"+"100 inch"] = "123009";
Products["HiDef Grey"+"NTSC Video"+"100 inch"] = "123027";
Products["M1300"+"NTSC Video"+"120 inch"] = "123004";
Products["HiDef Grey"+"NTSC Video"+"120 inch"] = "123028";
Products["M2500"+"NTSC Video"+"120 inch"] = "123010";
Products["M2500"+"NTSC Video"+"132 inch"] = "123011";
Products["M1300"+"NTSC Video"+"132 inch"] = "123005";
Products["HiDef Grey"+"NTSC Video"+"132 inch"] = "123037";
Products["HiDef Grey"+"NTSC Video"+"150 inch"] = "123038";
Products["M2500"+"NTSC Video"+"150 inch"] = "123012";
Products["M1300"+"NTSC Video"+"150 inch"] = "123006";

var Desc = new Array(18)

Desc["M2500"+"NTSC Video"+"72 inch"] = "Draper M2500 NTSC Video 72 inch Access Sonata Series V screen";
Desc["HiDef Grey"+"NTSC Video"+"72 inch"] = "Draper HiDef Grey NTSC Video 72 inch Access Sonata Series V screen";
Desc["M1300"+"NTSC Video"+"72 inch"] = "Draper M1300 NTSC Video 72 inch Access Sonata Series V screen";
Desc["M2500"+"NTSC Video"+"84 inch"] = "Draper M2500 NTSC Video 84 inch Access Sonata Series V screen";
Desc["M1300"+"NTSC Video"+"84 inch"] = "Draper M1300 NTSC Video 84 inch Access Sonata Series V screen";
Desc["HiDef Grey"+"NTSC Video"+"84 inch"] = "Draper HiDef Grey NTSC Video 84 inch Access Sonata Series V screen";
Desc["M1300"+"NTSC Video"+"100 inch"] = "Draper M1300 NTSC Video 100 inch Access Sonata Series V screen";
Desc["M2500"+"NTSC Video"+"100 inch"] = "Draper M2500 NTSC Video 100 inch Access Sonata Series V screen";
Desc["HiDef Grey"+"NTSC Video"+"100 inch"] = "Draper HiDef Grey NTSC Video 100 inch Access Sonata Series V screen";
Desc["M1300"+"NTSC Video"+"120 inch"] = "Draper M1300 NTSC Video 120 inch Access Sonata Series V screen";
Desc["HiDef Grey"+"NTSC Video"+"120 inch"] = "Draper HiDef Grey NTSC Video 120 inch Access Sonata Series V screen";
Desc["M2500"+"NTSC Video"+"120 inch"] = "Draper M2500 NTSC Video 120 inch Access Sonata Series V screen";
Desc["M2500"+"NTSC Video"+"132 inch"] = "Draper M2500 NTSC Video 132 inch Access Sonata Series V screen";
Desc["M1300"+"NTSC Video"+"132 inch"] = "Draper M1300 NTSC Video 132 inch Access Sonata Series V screen";
Desc["HiDef Grey"+"NTSC Video"+"132 inch"] = "Draper HiDef Grey NTSC Video 132 inch Access Sonata Series V screen";
Desc["HiDef Grey"+"NTSC Video"+"150 inch"] = "Draper HiDef Grey NTSC Video 150 inch Access Sonata Series V screen";
Desc["M2500"+"NTSC Video"+"150 inch"] = "Draper M2500 NTSC Video 150 inch Access Sonata Series V screen";
Desc["M1300"+"NTSC Video"+"150 inch"] = "Draper M1300 NTSC Video 150 inch Access Sonata Series V screen";

var Cost = new Array(18)

Cost["M2500"+"NTSC Video"+"72 inch"] = 4214.47;
Cost["HiDef Grey"+"NTSC Video"+"72 inch"] = 4139.53;
Cost["M1300"+"NTSC Video"+"72 inch"] = 4139.58;
Cost["M2500"+"NTSC Video"+"84 inch"] = 4340.29;
Cost["M1300"+"NTSC Video"+"84 inch"] = 4219.47;
Cost["HiDef Grey"+"NTSC Video"+"84 inch"] = 4219.77;
Cost["M1300"+"NTSC Video"+"100 inch"] = 4311.02;
Cost["M2500"+"NTSC Video"+"100 inch"] = 4679.76;
Cost["HiDef Grey"+"NTSC Video"+"100 inch"] = 4311.81;
Cost["M1300"+"NTSC Video"+"120 inch"] = 4778.71;
Cost["HiDef Grey"+"NTSC Video"+"120 inch"] = 4778.05;
Cost["M2500"+"NTSC Video"+"120 inch"] = 4882.41;
Cost["M2500"+"NTSC Video"+"132 inch"] = 5245.86;
Cost["M1300"+"NTSC Video"+"132 inch"] = 5096.79;
Cost["HiDef Grey"+"NTSC Video"+"132 inch"] = 5096.37;
Cost["HiDef Grey"+"NTSC Video"+"150 inch"] = 5702.96;
Cost["M2500"+"NTSC Video"+"150 inch"] = 5874.87;
Cost["M1300"+"NTSC Video"+"150 inch"] = 5702.06;

document.all.unitInfo.innerHTML = surfacePick + " " + formatPick+ " " + sizePick
document.all.cost.innerHTML = "Our Price $" + Cost[surfacePick+formatPick+sizePick] +" Including Free Shipping <br><br>" 
document.Prod.PartNo.value = Products[surfacePick+formatPick+sizePick];
document.Prod.Item.value = Desc[surfacePick+formatPick+sizePick];
document.Prod.Price.value = Cost[surfacePick+formatPick+sizePick];
document.all.button.innerHTML = '<input type="submit" value="ADD TO CART" class="btn">'
}
function resetCost() {
document.all.unitInfo.innerHTML = ""
document.all.cost.innerHTML = "Select a Material, Format and Screen Size below<br><br> "
document.all.button.innerHTML = '<input disabled type="submit" value="ADD TO CART" class="btn">'
}


