
var partPick    = "";
var surfacePick = "";
var formatPick  = "";
var sizePick    = "";

var Data            = new Array();
var description     = "";
var descriptionOrg  = "";
var cost            = "";
var costOrg         = "";

var screenAddon = "";
var quietMotor  = '<input type="checkbox" name="quietMotor" value="yes" onClick="addonSelected()">Quiet Motor';
var lowVoltage  = '<input type="checkbox" name="lowVoltage" value="yes" onClick="addonSelected()">Low Voltage Control Built-In';

var quietMotorPrice = 155.99;
var lowVoltagePrice = 199.99;

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 == "HiDef Grey") {
selbox.options[selbox.options.length] = new Option('Screen Format','99');
selbox.options[selbox.options.length] = new Option('15:9','15:9');
selbox.options[selbox.options.length] = new Option('16:10','16:10');
selbox.options[selbox.options.length] = new Option('HDTV','HDTV');
selbox.options[selbox.options.length] = new Option('NTSC','NTSC');
selbox.options[selbox.options.length] = new Option('WideScreen','WideScreen');
selbox.options[selbox.options.length] = new Option('AV','AV');
}

if (chosen == "M1300") {
selbox.options[selbox.options.length] = new Option('Screen Format','99');
selbox.options[selbox.options.length] = new Option('15:9','15:9');
selbox.options[selbox.options.length] = new Option('16:10','16:10');
selbox.options[selbox.options.length] = new Option('HDTV','HDTV');
selbox.options[selbox.options.length] = new Option('NTSC','NTSC');
selbox.options[selbox.options.length] = new Option('WideScreen','WideScreen');
selbox.options[selbox.options.length] = new Option('AV','AV');
}

if (chosen == "M2500") {
selbox.options[selbox.options.length] = new Option('Screen Format','99');
selbox.options[selbox.options.length] = new Option('15:9','15:9');
selbox.options[selbox.options.length] = new Option('16:10','16:10');
selbox.options[selbox.options.length] = new Option('HDTV','HDTV');
selbox.options[selbox.options.length] = new Option('NTSC','NTSC');
selbox.options[selbox.options.length] = new Option('WideScreen','WideScreen');
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 == "NTSC" && surfacePick == "HiDef Grey") {
selbox.options[selbox.options.length] = new Option('Screen Size','9999');
selbox.options[selbox.options.length] = new Option('10 ft','10 ft');
selbox.options[selbox.options.length] = new Option('100 inch','100 inch');
selbox.options[selbox.options.length] = new Option('6 ft','6 ft');
selbox.options[selbox.options.length] = new Option('7 ft','7 ft');
}


if (chosen == "NTSC" && surfacePick == "M1300") {
selbox.options[selbox.options.length] = new Option('Screen Size','9999');
selbox.options[selbox.options.length] = new Option('10 ft','10 ft');
selbox.options[selbox.options.length] = new Option('100 inch','100 inch');
selbox.options[selbox.options.length] = new Option('6 ft','6 ft');
selbox.options[selbox.options.length] = new Option('7 ft','7 ft');
}


if (chosen == "NTSC" && surfacePick == "M2500") {
selbox.options[selbox.options.length] = new Option('Screen Size','9999');
selbox.options[selbox.options.length] = new Option('10 ft','10 ft');
selbox.options[selbox.options.length] = new Option('100 inch','100 inch');
selbox.options[selbox.options.length] = new Option('6 ft','6 ft');
selbox.options[selbox.options.length] = new Option('7 ft','7 ft');
}


if (chosen == "HDTV" && surfacePick == "HiDef Grey") {
selbox.options[selbox.options.length] = new Option('Screen Size','9999');
selbox.options[selbox.options.length] = new Option('106 inch','106 inch');
selbox.options[selbox.options.length] = new Option('65 inch','65 inch');
selbox.options[selbox.options.length] = new Option('73 inch','73 inch');
selbox.options[selbox.options.length] = new Option('82 inch','82 inch');
selbox.options[selbox.options.length] = new Option('92 inch','92 inch');
}


if (chosen == "HDTV" && surfacePick == "M1300") {
selbox.options[selbox.options.length] = new Option('Screen Size','9999');
selbox.options[selbox.options.length] = new Option('106 inch','106 inch');
selbox.options[selbox.options.length] = new Option('65 inch','65 inch');
selbox.options[selbox.options.length] = new Option('73 inch','73 inch');
selbox.options[selbox.options.length] = new Option('82 inch','82 inch');
selbox.options[selbox.options.length] = new Option('92 inch','92 inch');
}


if (chosen == "HDTV" && surfacePick == "M2500") {
selbox.options[selbox.options.length] = new Option('Screen Size','9999');
selbox.options[selbox.options.length] = new Option('106 inch','106 inch');
selbox.options[selbox.options.length] = new Option('65 inch','65 inch');
selbox.options[selbox.options.length] = new Option('73 inch','73 inch');
selbox.options[selbox.options.length] = new Option('82 inch','82 inch');
selbox.options[selbox.options.length] = new Option('92 inch','92 inch');
}


if (chosen == "15:9" && surfacePick == "HiDef Grey") {
selbox.options[selbox.options.length] = new Option('Screen Size','9999');
selbox.options[selbox.options.length] = new Option('107 inch','107 inch');
selbox.options[selbox.options.length] = new Option('66 inch','66 inch');
selbox.options[selbox.options.length] = new Option('75 inch','75 inch');
selbox.options[selbox.options.length] = new Option('84 inch','84 inch');
selbox.options[selbox.options.length] = new Option('93 inch','93 inch');
}


if (chosen == "15:9" && surfacePick == "M1300") {
selbox.options[selbox.options.length] = new Option('Screen Size','9999');
selbox.options[selbox.options.length] = new Option('107 inch','107 inch');
selbox.options[selbox.options.length] = new Option('66 inch','66 inch');
selbox.options[selbox.options.length] = new Option('75 inch','75 inch');
selbox.options[selbox.options.length] = new Option('84 inch','84 inch');
selbox.options[selbox.options.length] = new Option('93 inch','93 inch');
}


if (chosen == "15:9" && surfacePick == "M2500") {
selbox.options[selbox.options.length] = new Option('Screen Size','9999');
selbox.options[selbox.options.length] = new Option('107 inch','107 inch');
selbox.options[selbox.options.length] = new Option('66 inch','66 inch');
selbox.options[selbox.options.length] = new Option('75 inch','75 inch');
selbox.options[selbox.options.length] = new Option('84 inch','84 inch');
selbox.options[selbox.options.length] = new Option('93 inch','93 inch');
}


if (chosen == "WideScreen" && surfacePick == "HiDef Grey") {
selbox.options[selbox.options.length] = new Option('Screen Size','9999');
selbox.options[selbox.options.length] = new Option('108 inch','108 inch');
selbox.options[selbox.options.length] = new Option('99 inch','99 inch');
}


if (chosen == "WideScreen" && surfacePick == "M1300") {
selbox.options[selbox.options.length] = new Option('Screen Size','9999');
selbox.options[selbox.options.length] = new Option('108 inch','108 inch');
selbox.options[selbox.options.length] = new Option('99 inch','99 inch');
}


if (chosen == "WideScreen" && surfacePick == "M2500") {
selbox.options[selbox.options.length] = new Option('Screen Size','9999');
selbox.options[selbox.options.length] = new Option('108 inch','108 inch');
selbox.options[selbox.options.length] = new Option('99 inch','99 inch');
}


if (chosen == "16:10" && surfacePick == "HiDef Grey") {
selbox.options[selbox.options.length] = new Option('Screen Size','9999');
selbox.options[selbox.options.length] = new Option('109 inch','109 inch');
selbox.options[selbox.options.length] = new Option('67 inch','67 inch');
selbox.options[selbox.options.length] = new Option('76 inch','76 inch');
selbox.options[selbox.options.length] = new Option('85 inch','85 inch');
selbox.options[selbox.options.length] = new Option('94 inch','94 inch');
}


if (chosen == "16:10" && surfacePick == "M1300") {
selbox.options[selbox.options.length] = new Option('Screen Size','9999');
selbox.options[selbox.options.length] = new Option('109 inch','109 inch');
selbox.options[selbox.options.length] = new Option('67 inch','67 inch');
selbox.options[selbox.options.length] = new Option('76 inch','76 inch');
selbox.options[selbox.options.length] = new Option('85 inch','85 inch');
selbox.options[selbox.options.length] = new Option('94 inch','94 inch');
}


if (chosen == "16:10" && surfacePick == "M2500") {
selbox.options[selbox.options.length] = new Option('Screen Size','9999');
selbox.options[selbox.options.length] = new Option('109 inch','109 inch');
selbox.options[selbox.options.length] = new Option('67 inch','67 inch');
selbox.options[selbox.options.length] = new Option('76 inch','76 inch');
selbox.options[selbox.options.length] = new Option('85 inch','85 inch');
selbox.options[selbox.options.length] = new Option('94 inch','94 inch');
}


if (chosen == "AV" && surfacePick == "HiDef Grey") {
selbox.options[selbox.options.length] = new Option('Screen Size','9999');
selbox.options[selbox.options.length] = new Option('50 inch x 50 inch','50 inch x 50 inch');
selbox.options[selbox.options.length] = new Option('60 inch x 60 inch','60 inch x 60 inch');
selbox.options[selbox.options.length] = new Option('70 inch x 70 inch','70 inch x 70 inch');
selbox.options[selbox.options.length] = new Option('72 inch x 96 inch','72 inch x 96 inch');
selbox.options[selbox.options.length] = new Option('84 inch x 84 inch','84 inch x 84 inch');
selbox.options[selbox.options.length] = new Option('96 inch x 96 inch','96 inch x 96 inch');
}


if (chosen == "AV" && surfacePick == "M1300") {
selbox.options[selbox.options.length] = new Option('Screen Size','9999');
selbox.options[selbox.options.length] = new Option('50 inch x 50 inch','50 inch x 50 inch');
selbox.options[selbox.options.length] = new Option('60 inch x 60 inch','60 inch x 60 inch');
selbox.options[selbox.options.length] = new Option('70 inch x 70 inch','70 inch x 70 inch');
selbox.options[selbox.options.length] = new Option('72 inch x 96 inch','72 inch x 96 inch');
selbox.options[selbox.options.length] = new Option('84 inch x 84 inch','84 inch x 84 inch');
selbox.options[selbox.options.length] = new Option('96 inch x 96 inch','96 inch x 96 inch');
}


if (chosen == "AV" && surfacePick == "M2500") {
selbox.options[selbox.options.length] = new Option('Screen Size','9999');
selbox.options[selbox.options.length] = new Option('50 inch x 50 inch','50 inch x 50 inch');
selbox.options[selbox.options.length] = new Option('60 inch x 60 inch','60 inch x 60 inch');
selbox.options[selbox.options.length] = new Option('70 inch x 70 inch','70 inch x 70 inch');
selbox.options[selbox.options.length] = new Option('72 inch x 96 inch','72 inch x 96 inch');
selbox.options[selbox.options.length] = new Option('84 inch x 84 inch','84 inch x 84 inch');
selbox.options[selbox.options.length] = new Option('96 inch x 96 inch','96 inch x 96 inch');
}


 formatPick = chosen; 
}
function storeSize(chosen) {
sizePick= chosen;
}

function saveValues() {
document.Prod.PartNo.value = partPick;
document.Prod.Item.value = description;
document.Prod.Price.value = cost;
}

function displayValues() {
document.getElementById('unitInfo').innerHTML = surfacePick + " " + formatPick + " " + sizePick
document.getElementById('cost').innerHTML = "Our Price $" + cost +" Including Free Shipping<br><br>"

document.getElementById('button').innerHTML = '<input type="submit" value="ADD TO CART" class="btn">';
}

function displayAddons() {
  document.getElementById('access').innerHTML = screenAddon;
}

function ChooseProd() {

Data[0] = new Array("107297","HiDef Grey","NTSC","10 ft","q","","","Silhouette/Series V, 10 ft, NTSC, HiDef Grey, 110 V","1365");
Data[1] = new Array("107245","M1300","NTSC","10 ft","q","","","Silhouette/Series V, 10 ft, NTSC, M1300, 110 V","1365");
Data[2] = new Array("107258","M2500","NTSC","10 ft","q","","","Silhouette/Series V, 10 ft, NTSC, M2500, 110 V","1494");
Data[3] = new Array("107301","HiDef Grey","NTSC","100 inch","q","","","Silhouette/Series V, 100 inch, NTSC, HiDef Grey, 110 V","1330");
Data[4] = new Array("107249","M1300","NTSC","100 inch","q","","","Silhouette/Series V, 100 inch, NTSC, M1300, 110 V","1330");
Data[5] = new Array("107262","M2500","NTSC","100 inch","q","","","Silhouette/Series V, 100 inch, NTSC, M2500, 110 V","1458");
Data[6] = new Array("107303","HiDef Grey","HDTV","106 inch","q","","","Silhouette/Series V, 106 inch, HDTV, HiDef Grey, 110 V","1367");
Data[7] = new Array("107251","M1300","HDTV","106 inch","q","","","Silhouette/Series V, 106 inch, HDTV, M1300, 110 V","1367");
Data[8] = new Array("107264","M2500","HDTV","106 inch","q","","","Silhouette/Series V, 106 inch, HDTV, M2500, 110 V","1497");
Data[9] = new Array("107361","HiDef Grey","15:9","107 inch","q","","","Silhouette/Series V, 107 inch, 15:9, HiDef Grey, 110 V","1367");
Data[10] = new Array("107356","M1300","15:9","107 inch","q","","","Silhouette/Series V, 107 inch, 15:9, M1300, 110 V","1367");
Data[11] = new Array("107366","M2500","15:9","107 inch","q","","","Silhouette/Series V, 107 inch, 15:9, M2500, 110 V","1497");
Data[12] = new Array("107305","HiDef Grey","WideScreen","108 inch","q","","","Silhouette/Series V, 108 inch, WideScreen, HiDef Grey, 110 V","1367");
Data[13] = new Array("107253","M1300","WideScreen","108 inch","q","","","Silhouette/Series V, 108 inch, WideScreen, M1300, 110 V","1367");
Data[14] = new Array("107266","M2500","WideScreen","108 inch","q","","","Silhouette/Series V, 108 inch, WideScreen, M2500, 110 V","1497");
Data[15] = new Array("107346","HiDef Grey","16:10","109 inch","q","","","Silhouette/Series V, 109 inch, 16:10, HiDef Grey, 110 V","1367");
Data[16] = new Array("107341","M1300","16:10","109 inch","q","","","Silhouette/Series V, 109 inch, 16:10, M1300, 110 V","1367");
Data[17] = new Array("107351","M2500","16:10","109 inch","q","","","Silhouette/Series V, 109 inch, 16:10, M2500, 110 V","1497");
Data[18] = new Array("107293","HiDef Grey","AV","50 inch x 50 inch","q","","","Silhouette/Series V, 50 inch x 50 inch, AV, HiDef Grey, 110 V","1022");
Data[19] = new Array("107241","M1300","AV","50 inch x 50 inch","q","","","Silhouette/Series V, 50 inch x 50 inch, AV, M1300, 110 V","1022");
Data[20] = new Array("107254","M2500","AV","50 inch x 50 inch","q","","","Silhouette/Series V, 50 inch x 50 inch, AV, M2500, 110 V","1134");
Data[21] = new Array("107299","HiDef Grey","NTSC","6 ft","q","","","Silhouette/Series V, 6 ft, NTSC, HiDef Grey, 110 V","1101");
Data[22] = new Array("107247","M1300","NTSC","6 ft","q","","","Silhouette/Series V, 6 ft, NTSC, M1300, 110 V","1101");
Data[23] = new Array("107260","M2500","NTSC","6 ft","q","","","Silhouette/Series V, 6 ft, NTSC, M2500, 110 V","1201");
Data[24] = new Array("107294","HiDef Grey","AV","60 inch x 60 inch","q","","","Silhouette/Series V, 60 inch x 60 inch, AV, HiDef Grey, 110 V","1095");
Data[25] = new Array("107242","M1300","AV","60 inch x 60 inch","q","","","Silhouette/Series V, 60 inch x 60 inch, AV, M1300, 110 V","1095");
Data[26] = new Array("107255","M2500","AV","60 inch x 60 inch","q","","","Silhouette/Series V, 60 inch x 60 inch, AV, M2500, 110 V","1225");
Data[27] = new Array("107325","HiDef Grey","HDTV","65 inch","q","","","Silhouette/Series V, 65 inch, HDTV, HiDef Grey, 110 V","1099");
Data[28] = new Array("107319","M1300","HDTV","65 inch","q","","","Silhouette/Series V, 65 inch, HDTV, M1300, 110 V","1099");
Data[29] = new Array("107322","M2500","HDTV","65 inch","q","","","Silhouette/Series V, 65 inch, HDTV, M2500, 110 V","1199");
Data[30] = new Array("107357","HiDef Grey","15:9","66 inch","q","","","Silhouette/Series V, 66 inch, 15:9, HiDef Grey, 110 V","1099");
Data[31] = new Array("107352","M1300","15:9","66 inch","q","","","Silhouette/Series V, 66 inch, 15:9, M1300, 110 V","1099");
Data[32] = new Array("107362","M2500","15:9","66 inch","q","","","Silhouette/Series V, 66 inch, 15:9, M2500, 110 V","1199");
Data[33] = new Array("107342","HiDef Grey","16:10","67 inch","q","","","Silhouette/Series V, 67 inch, 16:10, HiDef Grey, 110 V","1099");
Data[34] = new Array("107337","M1300","16:10","67 inch","q","","","Silhouette/Series V, 67 inch, 16:10, M1300, 110 V","1099");
Data[35] = new Array("107347","M2500","16:10","67 inch","q","","","Silhouette/Series V, 67 inch, 16:10, M2500, 110 V","1199");
Data[36] = new Array("107300","HiDef Grey","NTSC","7 ft","q","","","Silhouette/Series V, 7 ft, NTSC, HiDef Grey, 110 V","1186");
Data[37] = new Array("107248","M1300","NTSC","7 ft","q","","","Silhouette/Series V, 7 ft, NTSC, M1300, 110 V","1186");
Data[38] = new Array("107261","M2500","NTSC","7 ft","q","","","Silhouette/Series V, 7 ft, NTSC, M2500, 110 V","1298");
Data[39] = new Array("107295","HiDef Grey","AV","70 inch x 70 inch","q","","","Silhouette/Series V, 70 inch x 70 inch, AV, HiDef Grey, 110 V","1234");
Data[40] = new Array("107243","M1300","AV","70 inch x 70 inch","q","","","Silhouette/Series V, 70 inch x 70 inch, AV, M1300, 110 V","1234");
Data[41] = new Array("107256","M2500","AV","70 inch x 70 inch","q","","","Silhouette/Series V, 70 inch x 70 inch, AV, M2500, 110 V","1366");
Data[42] = new Array("107297","HiDef Grey","AV","72 inch x 96 inch","q","","","Silhouette/Series V, 72 inch x 96 inch, AV, HiDef Grey, 110 V","1365");
Data[43] = new Array("107245","M1300","AV","72 inch x 96 inch","q","","","Silhouette/Series V, 72 inch x 96 inch, AV, M1300, 110 V","1365");
Data[44] = new Array("107258","M2500","AV","72 inch x 96 inch","q","","","Silhouette/Series V, 72 inch x 96 inch, AV, M2500, 110 V","1494");
Data[45] = new Array("107326","HiDef Grey","HDTV","73 inch","q","","","Silhouette/Series V, 73 inch, HDTV, HiDef Grey, 110 V","1184");
Data[46] = new Array("107320","M1300","HDTV","73 inch","q","","","Silhouette/Series V, 73 inch, HDTV, M1300, 110 V","1184");
Data[47] = new Array("107323","M2500","HDTV","73 inch","q","","","Silhouette/Series V, 73 inch, HDTV, M2500, 110 V","1295");
Data[48] = new Array("107358","HiDef Grey","15:9","75 inch","q","","","Silhouette/Series V, 75 inch, 15:9, HiDef Grey, 110 V","1184");
Data[49] = new Array("107353","M1300","15:9","75 inch","q","","","Silhouette/Series V, 75 inch, 15:9, M1300, 110 V","1184");
Data[50] = new Array("107363","M2500","15:9","75 inch","q","","","Silhouette/Series V, 75 inch, 15:9, M2500, 110 V","1295");
Data[51] = new Array("107343","HiDef Grey","16:10","76 inch","q","","","Silhouette/Series V, 76 inch, 16:10, HiDef Grey, 110 V","1184");
Data[52] = new Array("107338","M1300","16:10","76 inch","q","","","Silhouette/Series V, 76 inch, 16:10, M1300, 110 V","1184");
Data[53] = new Array("107348","M2500","16:10","76 inch","q","","","Silhouette/Series V, 76 inch, 16:10, M2500, 110 V","1295");
Data[54] = new Array("107327","HiDef Grey","HDTV","82 inch","q","","","Silhouette/Series V, 82 inch, HDTV, HiDef Grey, 110 V","1273");
Data[55] = new Array("107321","M1300","HDTV","82 inch","q","","","Silhouette/Series V, 82 inch, HDTV, M1300, 110 V","1273");
Data[56] = new Array("107324","M2500","HDTV","82 inch","q","","","Silhouette/Series V, 82 inch, HDTV, M2500, 110 V","1395");
Data[57] = new Array("107296","HiDef Grey","AV","84 inch x 84 inch","q","","","Silhouette/Series V, 84 inch x 84 inch, AV, HiDef Grey, 110 V","1356");
Data[58] = new Array("107244","M1300","AV","84 inch x 84 inch","q","","","Silhouette/Series V, 84 inch x 84 inch, AV, M1300, 110 V","1356");
Data[59] = new Array("107257","M2500","AV","84 inch x 84 inch","q","","","Silhouette/Series V, 84 inch x 84 inch, AV, M2500, 110 V","1468");
Data[60] = new Array("107359","HiDef Grey","15:9","84 inch","q","","","Silhouette/Series V, 84 inch, 15:9, HiDef Grey, 110 V","1273");
Data[61] = new Array("107354","M1300","15:9","84 inch","q","","","Silhouette/Series V, 84 inch, 15:9, M1300, 110 V","1273");
Data[62] = new Array("107364","M2500","15:9","84 inch","q","","","Silhouette/Series V, 84 inch, 15:9, M2500, 110 V","1395");
Data[63] = new Array("107344","HiDef Grey","16:10","85 inch","q","","","Silhouette/Series V, 85 inch, 16:10, HiDef Grey, 110 V","1273");
Data[64] = new Array("107339","M1300","16:10","85 inch","q","","","Silhouette/Series V, 85 inch, 16:10, M1300, 110 V","1273");
Data[65] = new Array("107349","M2500","16:10","85 inch","q","","","Silhouette/Series V, 85 inch, 16:10, M2500, 110 V","1395");
Data[66] = new Array("107302","HiDef Grey","HDTV","92 inch","q","","","Silhouette/Series V, 92 inch, HDTV, HiDef Grey, 110 V","1332");
Data[67] = new Array("107250","M1300","HDTV","92 inch","q","","","Silhouette/Series V, 92 inch, HDTV, M1300, 110 V","1332");
Data[68] = new Array("107263","M2500","HDTV","92 inch","q","","","Silhouette/Series V, 92 inch, HDTV, M2500, 110 V","1451");
Data[69] = new Array("107360","HiDef Grey","15:9","93 inch","q","","","Silhouette/Series V, 93 inch, 15:9, HiDef Grey, 110 V","1332");
Data[70] = new Array("107355","M1300","15:9","93 inch","q","","","Silhouette/Series V, 93 inch, 15:9, M1300, 110 V","1332");
Data[71] = new Array("107365","M2500","15:9","93 inch","q","","","Silhouette/Series V, 93 inch, 15:9, M2500, 110 V","1451");
Data[72] = new Array("107345","HiDef Grey","16:10","94 inch","q","","","Silhouette/Series V, 94 inch, 16:10, HiDef Grey, 110 V","1332");
Data[73] = new Array("107340","M1300","16:10","94 inch","q","","","Silhouette/Series V, 94 inch, 16:10, M1300, 110 V","1332");
Data[74] = new Array("107350","M2500","16:10","94 inch","q","","","Silhouette/Series V, 94 inch, 16:10, M2500, 110 V","1451");
Data[75] = new Array("107298","HiDef Grey","AV","96 inch x 96 inch","q","","","Silhouette/Series V, 96 inch x 96 inch, AV, HiDef Grey, 110 V","1415");
Data[76] = new Array("107246","M1300","AV","96 inch x 96 inch","q","","","Silhouette/Series V, 96 inch x 96 inch, AV, M1300, 110 V","1415");
Data[77] = new Array("107259","M2500","AV","96 inch x 96 inch","q","","","Silhouette/Series V, 96 inch x 96 inch, AV, M2500, 110 V","1527");
Data[78] = new Array("107304","HiDef Grey","WideScreen","99 inch","q","","","Silhouette/Series V, 99 inch, WideScreen, HiDef Grey, 110 V","1351");
Data[79] = new Array("107252","M1300","WideScreen","99 inch","q","","","Silhouette/Series V, 99 inch, WideScreen, M1300, 110 V","1351");
Data[80] = new Array("107265","M2500","WideScreen","99 inch","q","","","Silhouette/Series V, 99 inch, WideScreen, M2500, 110 V","1378");


   for (i = 0; i < Data.length; i++) {
        if (surfacePick == Data[i][1] && formatPick == Data[i][2] && sizePick == Data[i][3])
        partPick = Data[i][0];
   }

    for (i = 0; i < Data.length; i++) {
        if (partPick == Data[i][0]) {
            if (Data[i][5] == "ql")     screenAddon = quietMotor + "<br>" + lowVoltage;
        else if (Data[i][4] == "q" ) {
            screenAddon = quietMotor;
            if (Data[i][6] == "l")  screenAddon = quietMotor + "<br>" + lowVoltage;
        }
        else if (Data[i][6] == "l") screenAddon = lowVoltage;
        else screenAddon = "";

            description = Data[i][7];
            descriptionOrg = description;
            cost = parseFloat(Data[i][8]);
            costOrg = cost;
        }
   }

   saveValues();
    displayValues();
}



function CheckBox() {
partPick = partPick.substring(0,6);
cost = costOrg;
description = descriptionOrg;

if (document.Prod.quietMotor) {
    if (document.Prod.quietMotor.checked) {
        document.Prod.quietMotor.setAttribute("checked","checked");
        partPick = partPick + "Q";
        cost = cost + quietMotorPrice;
        description = description + ", With Quiet Motor";

    } else {
        document.Prod.quietMotor.removeAttribute("checked");
        partPick = partPick.replace("Q","");

    }

}

    if (document.Prod.lowVoltage) {
        if (document.Prod.lowVoltage.checked) {
        document.Prod.lowVoltage.setAttribute("checked","checked");
        partPick = partPick + "L";
        cost = cost + lowVoltagePrice;
        description = description + ", With Low Voltage Controller";

    } else {
        document.Prod.lowVoltage.removeAttribute("checked");
        partPick = partPick.replace("L","");

    }

}
   if (document.Prod.quietMotor && document.Prod.lowVoltage) {
        if (document.Prod.quietMotor.checked && document.Prod.lowVoltage.checked) {
            partPick = partPick.substring(0,6) + "QL";
            cost = costOrg + quietMotorPrice + lowVoltagePrice;
            description = descriptionOrg + ", With Quiet Motor & Low Voltage Controller";
    }
}

cost = cost.toFixed(2);
}

function addonSelected() {
     CheckBox();
     saveValues();
     displayValues();
}

function resetCost() {
     if (sizePick != 9999 && formatPick != 99)
         displayAddons()
     else {
          document.getElementById('access').innerHTML = "";
          document.getElementById('unitInfo').innerHTML = "";
          document.getElementById('cost').innerHTML = "Select a Material, Format and Screen Size below<br><br>";
          document.getElementById('button').innerHTML = '<input disabled type="submit"value="ADD TO CART" class="btn">';
     }
}

