
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 == "Glass Beaded") {
selbox.options[selbox.options.length] = new Option('Screen Format','99');
selbox.options[selbox.options.length] = new Option('AV','AV');
}

if (chosen == "Matt White") {
selbox.options[selbox.options.length] = new Option('Screen Format','99');
selbox.options[selbox.options.length] = new Option('AV','AV');
}

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 == "AV" && surfacePick == "Glass Beaded") {
selbox.options[selbox.options.length] = new Option('Screen Size','9999');
selbox.options[selbox.options.length] = new Option('40 x 40 inch','40 x 40 inch');
selbox.options[selbox.options.length] = new Option('50 x 50 inch','50 x 50 inch');
selbox.options[selbox.options.length] = new Option('60 x 60 inch','60 x 60 inch');
selbox.options[selbox.options.length] = new Option('70 x 70 inch','70 x 70 inch');
}


if (chosen == "AV" && surfacePick == "Matt White") {
selbox.options[selbox.options.length] = new Option('Screen Size','9999');
selbox.options[selbox.options.length] = new Option('40 x 40 inch','40 x 40 inch');
selbox.options[selbox.options.length] = new Option('50 x 50 inch','50 x 50 inch');
selbox.options[selbox.options.length] = new Option('60 x 60 inch','60 x 60 inch');
selbox.options[selbox.options.length] = new Option('70 x 70 inch','70 x 70 inch');
}


 formatPick = chosen; 
}
function storeSize(chosen) {
sizePick= chosen;
}

function ChooseProd() {
var Products = new Array(8)

Products["Glass Beaded"+"AV"+"40 x 40 inch"] = "216005";
Products["Matt White"+"AV"+"40 x 40 inch"] = "216001";
Products["Glass Beaded"+"AV"+"50 x 50 inch"] = "216006";
Products["Matt White"+"AV"+"50 x 50 inch"] = "216002";
Products["Glass Beaded"+"AV"+"60 x 60 inch"] = "216007";
Products["Matt White"+"AV"+"60 x 60 inch"] = "216003";
Products["Glass Beaded"+"AV"+"70 x 70 inch"] = "216008";
Products["Matt White"+"AV"+"70 x 70 inch"] = "216004";

var Desc = new Array(8)

Desc["Glass Beaded"+"AV"+"40 x 40 inch"] = "Draper Glass Beaded AV 40 x 40 inch Consul screen";
Desc["Matt White"+"AV"+"40 x 40 inch"] = "Draper Matt White AV 40 x 40 inch Consul screen";
Desc["Glass Beaded"+"AV"+"50 x 50 inch"] = "Draper Glass Beaded AV 50 x 50 inch Consul screen";
Desc["Matt White"+"AV"+"50 x 50 inch"] = "Draper Matt White AV 50 x 50 inch Consul screen";
Desc["Glass Beaded"+"AV"+"60 x 60 inch"] = "Draper Glass Beaded AV 60 x 60 inch Consul screen";
Desc["Matt White"+"AV"+"60 x 60 inch"] = "Draper Matt White AV 60 x 60 inch Consul screen";
Desc["Glass Beaded"+"AV"+"70 x 70 inch"] = "Draper Glass Beaded AV 70 x 70 inch Consul screen";
Desc["Matt White"+"AV"+"70 x 70 inch"] = "Draper Matt White AV 70 x 70 inch Consul screen";

var Cost = new Array(8)

Cost["Glass Beaded"+"AV"+"40 x 40 inch"] = 88.47;
Cost["Matt White"+"AV"+"40 x 40 inch"] = 88.53;
Cost["Glass Beaded"+"AV"+"50 x 50 inch"] = 90.58;
Cost["Matt White"+"AV"+"50 x 50 inch"] = 90.29;
Cost["Glass Beaded"+"AV"+"60 x 60 inch"] = 100.47;
Cost["Matt White"+"AV"+"60 x 60 inch"] = 100.77;
Cost["Glass Beaded"+"AV"+"70 x 70 inch"] = 103.02;
Cost["Matt White"+"AV"+"70 x 70 inch"] = 103.76;

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">'
}



