// JavaScript Document
<!--

//Double Combo Box with Description Code- by Randall Wald (http://www.rwald.com)
//Visit JavaScript Kit (http://javascriptkit.com) for script
//Credit must stay intact for use

var num_of_cats = 11; // This is the number of categories, including the first, blank, category.
var open_in_newwindow=0; //Set 1 to open links in new window, 0 for no.
var option_array = new Array(num_of_cats);

option_array[0] = new Array("Please select a Product"); // This is the first (blank) category. Don't mess with it.

option_array[1] = new Array("-- Select One --",
"Frequently Asked Questions [FAQ's]",
"Technical Profiling Tips",
"OnLine User Help System [with SMG SPC]",
"OnLine User Help System [with MAP]",
"Visual Tutorials",
"Support Request",
"Product Calibration",
"Return Material Authorization (RMA) Request");

option_array[2] = new Array("-- Select One --",
"Frequently Asked Questions [FAQ's]",
"Technical Profiling Tips",
"OnLine User Help System",
"Support Request",
"Product Calibration",
"Return Material Authorization (RMA) Request");

option_array[3] = new Array("-- Select One --",
"Frequently Asked Questions [FAQ's]",
"Technical Profiling Tips",
"OnLine User Help System",
"Support Request",
"Product Calibration",
"Return Material Authorization (RMA) Request");

option_array[4] = new Array("-- Select One --",
"Instruction Sheet",
"Support Request",
"Return Material Authorization (RMA) Request");

option_array[5] = new Array("-- Select One --",
"Frequently Asked Questions [FAQ's]",
"Users Guide",
"Visual Tutorials",
"Support Request",
"Return Material Authorization (RMA) Request");

option_array[6] = new Array("-- Select One --",
"Support Request",
"Return Material Authorization (RMA) Request");

option_array[7] = new Array("-- Select One --",
"Frequently Asked Questions [FAQ's]",
"Users Guide",
"Visual Tutorials",
"Support Request",
"Return Material Authorization (RMA) Request");

option_array[8] = new Array("-- Select One --",
"Frequently Asked Questions [FAQ's]",
"Quick Reference Guide",
"Support Request",
"Return Material Authorization (RMA) Request");

option_array[9] = new Array("-- Select One --",
"Users Guide",
"Visual Tutorials",
"Support Request",
"Return Material Authorization (RMA) Request");

option_array[10] = new Array("-- Select One --",
"Frequently Asked Questions [FAQ's]",
"OnLine User Help System",
"Visual Tutorials",
"Support Request",
"Return Material Authorization (RMA) Request");

option_array[11] = new Array("-- Select One --",
"Technical Profiling Tips",
"Users Guide",
"Support Request",
"Return Material Authorization (RMA) Request");

var text_array = new Array(num_of_cats);

text_array[0] = new Array("Select an ECD Product."); // These are general instructions. Change them if you want, or keep them if you don't.

text_array[1] = new Array("Product support associated with the SuperM.O.L.E.® Gold.", // Note that the first entry here is a general description of this category. After than, they're descriptions of each link. Make sure that you don't put the first link first; the general description must be first.
"Frequently Asked Questions for SuperM.O.L.E.® & SuperM.O.L.E.® Gold SPC Software.",
"Technical tips on how to achieve thermal profiling success.",
"Complete online product Hardware and SuperM.O.L.E.® Gold SPC Software users help system.",
"Complete online product Hardware and MEGAM.O.L.E.® MAP Software users help system.",
"Self paced online software Visual Tutorials.",
"Complete an online Support request form.",
"Information on ECD Calibration options.",
"If you need to return your product to ECD, complete an online Return Material Authorization (RMA) request form.");

text_array[2] = new Array("Product support associated with the MEGAM.O.L.E.® 20.",
"Frequently Asked Questions for MEGAM.O.L.E.® 20 & MEGAM.O.L.E.® MAP Software.",
"Technical tips on how to achieve thermal profiling success.",
"Complete online product Hardware and MEGAM.O.L.E.® MAP Software users help system.",
"Complete an online Support request form.",
"Information on ECD Calibration options.",
"If you need to return your product to ECD, complete an online Return Material Authorization (RMA) request form.");

text_array[3] = new Array("Product support associated with the V-M.O.L.E.®.",
"Frequently Asked Questions for MEGAM.O.L.E.® MAP Software.",
"Technical tips on how to achieve thermal profiling success.",
"Complete online product Hardware and MEGAM.O.L.E.® MAP Software users help system.",
"Complete an online Support request form.",
"Information on ECD Calibration options.",
"If you need to return your product to ECD, complete an online Return Material Authorization (RMA) request form.");

text_array[4] = new Array("Product support associated with the Temprobe™.",
"The instruction sheet on how to use the ECD Temprobe™.",
"Complete an online Support request form.",
"If you need to return your product to ECD, complete an online Return Material Authorization (RMA) request form.");

text_array[5] = new Array("Product support associated with the WaveRIDER®.",
"Frequently Asked Questions for WaveRIDER® & WaveRIDER® SPC Software.",
"Complete product Hardware and Software Users Guide.",
"Self paced online software Visual Tutorials.",
"Complete an online Support request form.",
"If you need to return your product to ECD, complete an online Return Material Authorization (RMA) request form.");

text_array[6] = new Array("Product support associated with the OvenCHECKER™.",
"Complete an online Support request form.",
"If you need to return your product to ECD, complete an online Return Material Authorization (RMA) request form.");

text_array[7] = new Array("Product support associated with the OvenRIDER®.",
"Frequently Asked Questions for OvenRIDER® & OvenRIDER® SPC Software.",
"Complete product Hardware and Software Users Guide.",
"Self paced online software Visual Tutorials.",
"Complete an online Support request form.",
"If you need to return your product to ECD, complete an online Return Material Authorization (RMA) request form.");

text_array[8] = new Array("Product support associated with the Fluxometer®.",
"Frequently Asked Questions for the Fluxometer®.",
"This guide explains how to use the Fluxometer® and gives an examle of proper and poor flux coverage.",
"Complete an online Support request form.",
"If you need to return your product to ECD, complete an online Return Material Authorization (RMA) request form.");

text_array[9] = new Array("Product support associated with the AutoM.O.L.E.® Xpert.",
"Complete product Hardware and Software Users Guide.",
"Self paced online software Visual Tutorials.",
"Complete an online Support request form.",
"If you need to return your product to ECD, complete an online Return Material Authorization (RMA) request form.");

text_array[10] = new Array("Product support associated with the OvenWATCH®.",
"Frequently Asked Questions for OvenWATCH® & OvenWATCH® SPC Software.",
"Complete online product Hardware and Software users help system.",
"Self paced online software Visual Tutorials.",
"Complete an online Support request form.",
"If you need to return your product to ECD, complete an online Return Material Authorization (RMA) request form.");

text_array[11] = new Array("Product support associated with the SuperM.O.L.E.® Thinline.",
"Technical tips on how to achieve thermal profiling success.",
"Complete product Hardware Users Guide.",
"Complete an online Support request form.",
"If you need to return your product to ECD, complete an online Return Material Authorization (RMA) request form.");

var url_array = new Array(num_of_cats);

url_array[0] = new Array("#"); // The first category. This should have no items other than "#".

url_array[1] = new Array("#", // The second category; the first "real" category. Note the initial #. That is the category which says "Please select a link." It doesn't need a URL. Start putting the other URL's in after that first line.
"/emfg/instruments/faq1.asp",
"/emfg/instruments/tech_tips.asp",
"/products/supermolegold/help/smgspc/index.html",
"/products/megamolemap/help/index.html",
"/products/smgspc/tutorials/index.html",
"/service/support_form.asp",
"/vao/calibrationcontract/",
"/service/rma_form.asp");

url_array[2] = new Array("#",
"/emfg/instruments/faq_megamole.asp",
"/emfg/instruments/tech_tips.asp",
"/products/megamolemap/help/index.html",
"/service/support_form.asp",
"/vao/calibrationcontract/",
"/service/rma_form.asp");

url_array[3] = new Array("#",
"/emfg/instruments/faq_megamole.asp",
"/emfg/instruments/tech_tips.asp",
"/products/megamolemap/help/index.html",
"/service/support_form.asp",
"/vao/calibrationcontract/",
"/service/rma_form.asp");

url_array[4] = new Array("#",
"/products/temprobe/downloads/temprobe_inst.pdf",
"/service/support_form.asp",
"/service/rma_form.asp");

url_array[5] = new Array("#",
"/emfg/instruments/faq_wr_or.asp",
"/products/waverider/downloads/waverider_users.pdf",
"/products/wrspc/tutorials/index.html",
"/service/support_form.asp",
"/service/rma_form.asp");

url_array[6] = new Array("#",
"/service/support_form.asp",
"/service/rma_form.asp");

url_array[7] = new Array("#",
"/emfg/instruments/faq_wr_or.asp",
"/products/ovenrider/downloads/ovenrider_users.pdf",
"/products/orspc/tutorials/index.html",
"/service/support_form.asp",
"/service/rma_form.asp");

url_array[8] = new Array("#",
"/emfg/instruments/faq_wr_or.asp",
"/products/fluxometer/downloads/fluxometer_qrg.pdf",
"/service/support_form.asp",
"/service/rma_form.asp");

url_array[9] = new Array("#",
"/products/automolexpert/downloads/automolexpert_users.pdf",
"/products/automolexpert/tutorials/index.html",
"/service/support_form.asp",
"/service/rma_form.asp");

url_array[10] = new Array("#",
"/emfg/instruments/faq_ow.asp",
"/products/ovenwatch/help/index.html",
"/products/owspc/tutorials/index.html",
"/service/support_form.asp",
"/service/rma_form.asp");

url_array[11] = new Array("#",
"/emfg/instruments/tech_tips.asp",
"/downloads/files/smthinline_manual.pdf",
"/service/support_form.asp",
"/service/rma_form.asp");

function switch_select()

{
  for (loop = window.document.form_1.select_2.options.length-1; loop > 0; loop--)
  {
    window.document.form_1.select_2.options[loop] = null;
  }
  
  for (loop = 0; loop < option_array[window.document.form_1.select_1.selectedIndex].length; loop++)
  {
    window.document.form_1.select_2.options[loop] = new Option(option_array[window.document.form_1.select_1.selectedIndex][loop]);
  }
  
  window.document.form_1.select_2.selectedIndex = 0;
}
  
function switch_text()

{
  window.document.form_1.textarea_1.value = text_array[window.document.form_1.select_1.selectedIndex][window.document.form_1.select_2.selectedIndex];
}

function box()

{
  if (window.document.form_1.select_2.selectedIndex == 0)
  {
    alert("You must select an ECD Product or download item.");
  } else {
    if (open_in_newwindow==1)
    window.open(url_array[window.document.form_1.select_1.selectedIndex][window.document.form_1.select_2.selectedIndex],"_blank");
    else
    window.location=url_array[window.document.form_1.select_1.selectedIndex][window.document.form_1.select_2.selectedIndex]
  }
}

function set_orig()

{
  window.document.form_1.select_1.selectedIndex = 0;
  window.document.form_1.select_2.selectedIndex = 0;
}

window.onload=set_orig

// -->
