var qCombo_pdColorBG01 = "#527FF1";
var qCombo_pdColor01 = "#FFFFFF";
var qCombo_pdColor02 = "#23508E";
var qCombo_pdColor03 = "#FF8A00";

 var brandName = new Array(
	"ETL",
	"GTM",
	"UTC",
	"Nuvoton",
	"Solomon Systech",
	"Johanson" );
	 
 var subETL = new Array(
	"Please select ...", "#",
	"Dynamic Receiver", "products.html",
	" ----------------------------- ", "#",
	" - SD1001", "pd_etl_rc_sd1001.html",
	" - SD1301", "pd_etl_rc_sd1301.html",
	" - SD1501", "pd_etl_rc_sd1501.html",
	" - SD1502", "pd_etl_rc_sd1502.html",
	" - SD1503H", "pd_etl_rc_sd1503h.html",
	" - SD1506", "pd_etl_rc_sd1506.html",
	" ----------------------------- ", "#",
	" - SD2001", "pd_etl_rc_sd2001.html",
	" - SD2001H", "pd_etl_rc_sd2001h.html",
	" - SD2002", "pd_etl_rc_sd2002.html",
	" - SD2003", "pd_etl_rc_sd2003.html",
	" - SD2004", "pd_etl_rc_sd2004.html",
	" - SD2004H", "pd_etl_rc_sd2004h.html",
	" - SD2005H", "pd_etl_rc_sd2005h.html",
	" - SD2008", "pd_etl_rc_sd2008.html",
	" - SD2008H", "pd_etl_rc_sd2008h.html",
	" - SD2101", "pd_etl_rc_sd2101.html",
	" - SD2101H", "pd_etl_rc_sd2101h.html",
	" - SD2501H", "pd_etl_rc_sd2501h.html",
	" - SD2801", "pd_etl_rc_sd2801.html",
	" - SD2801H", "pd_etl_rc_sd2801h.html",
	" - SD2802", "pd_etl_rc_sd2802.html",
	" - SD2802H", "pd_etl_rc_sd2802h.html",
	" - SD2803", "pd_etl_rc_sd2803.html",
	" - SD2803H", "pd_etl_rc_sd2803h.html",
	" - SD2804", "pd_etl_rc_sd2804.html",
	" - SD2804H", "pd_etl_rc_sd2804h.html",
	" ----------------------------- ", "#",
	" - SD3101", "pd_etl_rc_sd3101.html",
	" - SD3102", "pd_etl_rc_sd3102.html",
	" - SD3103", "pd_etl_rc_sd3103.html",
	" - SD3104", "pd_etl_rc_sd3104.html",
	" - SD3501H", "pd_etl_rc_sd3501h.html",
	" - SD3801", "pd_etl_rc_sd3801.html",
	" - SD3801H", "pd_etl_rc_sd3801h.html",
	" - SD3803", "pd_etl_rc_sd3803.html",
	" - SD3804H", "pd_etl_rc_sd3804h.html",
	"Micro-Speaker", "products.html",
	" ----------------------------- ", "#",
	" - YD1501", "pd_etl_msp_yd1501.html",
	" - YD1502", "pd_etl_msp_yd1502.html",
	" - YD1701", "pd_etl_msp_yd1701.html",
	" - YD1801", "pd_etl_msp_yd1801.html",
	" - YD2005", "pd_etl_msp_yd2005.html",
	" ----------------------------- ", "#",
	" - YD2301", "pd_etl_msp_yd2301.html",
	" - YD2701", "pd_etl_msp_yd2701.html",
	" - YD2801", "pd_etl_msp_yd2801.html",
	" - YD2901", "pd_etl_msp_yd2901.html",
	" ----------------------------- ", "#",
	" - YD3601", "pd_etl_msp_ydb3601.html",
	" - YD4001", "pd_etl_msp_yd4001.html",
	"Multi-Function Speaker/Reciever", "products.html",
	" - SYD1601", "pd_etl_mfsr_syd1601.html",
	" - SYD151201", "pd_etl_mfsr_syd151201.html",
	" - SYD151202", "pd_etl_mfsr_syd151202.html",
	" - SYDT201301", "pd_etl_mfsr_sydt201301.html",
	"Quartz Crystal", "products.html",
	" - ESR / Freq. / Model", "pd_etl_qc_esr.html",
	" - HC-49U, HC-49U/S ...", "pd_etl_qc_hc49u.html",
	" - HC-49U/SS SMD ...", "pd_etl_qc_hc49uss.html",
	" - UM-1 & UM-5 ...", "pd_etl_qc_um1.html",
	" - Tuning Fork Type ...", "pd_etl_qc_etf38.html",
	" - EM4 Type-UM-5 ...", "pd_etl_qc_em4um5.html",
	" - EMR - 206 A / B ...", "pd_etl_qc_emr206ab.html",
	" - ETK-26, 38 ...", "pd_etl_qc_etk26.html",	
	" - Oscillator ( EX3, 5 ) ...", "pd_etl_qc_ex3.html",
	" - SMD VCXO (EV3, 5) ...", "pd_etl_qc_ev3.html",
	"Quartz Crystal Filter", "products.html",
	" - HC-49T 2 POLE", "pd_etl_qcf_hc49t2.html",
	"Ceramic Resonator", "products.html",
	" - SMT13T Crystal Units", "pd_etl_cr_smt13t.html",
	" - ETA Series", "pd_etl_cr_eta.html",
	" - ETT Series", "pd_etl_cr_ett.html",
	" - ETB Series", "pd_etl_cr_etb.html",
	" - SMT13T", "pd_etl_cr_smt13t.html",
	"Ceramic Filter", "products.html",
	" - LT for Comm.", "pd_etl_cf_lt.html",
	" - 10.7M for FM", "pd_etl_cf_107.html",
	" - LTM for Comm.", "pd_etl_cf_ltm.html",
	" - LT for Radio Cass ...", "pd_etl_cf_ltr.html",
	" - LTP for AM", "pd_etl_cf_ltp.html",
	" - LT for TV/VCR", "pd_etl_cf_ltt.html",
	"Saw Resonator", "pd_etl_saw_r.html",
	"Saw Filter", "pd_etl_saw_f.html",
	"Semi-conductor" , "pd_etl_semi.html");
	 
 var subGTM = new Array(
	"Please select ...", "#",
	"Transistors", "products.html#GTM",
	" - SOT-323 Bipolar", "pd_gtm_t_sot323.html",
	" - SOT-23 Bipolar", "pd_gtm_t_sot23.html",
	" - TO-92 Bipolar", "pd_gtm_t_to92.html",
	" - SOT-89 Bipolar", "pd_gtm_t_sot89.html",
	" - TO-251 Bipolar", "pd_gtm_vr_to251.html",
	" - TO-252 Bipolar", "pd_gtm_vr_to252.html",
	" - SOT-223 Bipolar", "pd_gtm_t_sot223.html",
	" - TO-220 Bipolar", "pd_gtm_t_to220.html",
	"Diodes", "products.html#GTM",
	" - SOD-323 Schottky", "pd_gtm_d_sod323sd.html",
	" - SOT-323 Schottky", "pd_gtm_d_sot323sd.html",
	" - SOT-23 Schottky", "pd_gtm_d_sot23sd.html",
	" - TO-252 Schottky", "pd_gtm_d_to252sd.html",
	" - TO-220 Schottky", "pd_gtm_d_to220sd.html",
	" - SOD-323 Band Switch ...", "pd_gtm_d_sod323bsd.html",
	" - SOT-323 Switching", "pd_gtm_d_sot323swd.html",
	" - SOT-23 Schottky", "pd_gtm_d_sot23sd.html",
	" - TO-252 Fast Recovery", "pd_gtm_d_to252frswd.html",
	" - TO-220 Fast Recovery", "pd_gtm_d_to220frswd.html",
	" - SOD-323 Zener", "pd_gtm_d_sod323zd.html",
	" - SOT-323 Zener", "pd_gtm_d_sot323zd.html",
	" - SOT-23 Zener", "pd_gtm_d_sot23zd.html",
	"Power MOSFETs", "products.html#GTM",
	" - SOT-323", "pd_gtm_pm_sot323.html",
	" - SOT-23", "pd_gtm_pm_sot23.html",
	" - SOT-26", "pd_gtm_pm_sot26.html",
	" - TO-92", "pd_gtm_pm_to92.html",
	" - SOT-89", "pd_gtm_pm_sot89.html",
	" - SOT-223", "pd_gtm_pm_sot223.html",
	" - TO-251", "pd_gtm_pm_to251.html",
	" - TO-252", "pd_gtm_pm_to252.html",
	" - TO-220, TO-220FP", "pd_gtm_pm_to220.html",
	" - TO-262, TO-263", "pd_gtm_pm_to262.html",
	" - TSSOP-8L", "pd_gtm_pm_tssop8l.html",
	" - SOP-8L", "pd_gtm_pm_sop8l.html",
	" - PDIP-8L", "pd_gtm_pm_pdip8l.html",
	"Integrate Circuits", "products.html#GTM",
	" -- DIP / SOP (8Pin) ---", "#",
	" - Tone Ringer", "pd_gtm_ic_8pin_tr.html",
	" - Low Voltage ...", "pd_gtm_ic_8pin_lvapa.html",
	" - Low Power ...", "pd_gtm_ic_8pin_lpdoa.html",
	" - Compartor", "pd_gtm_ic_8pin_c.html",
	" - DC to DC ...", "pd_gtm_ic_8pin_dc.html",
	" - Current Mode PWM ...", "pd_gtm_ic_8pin_cmpcic.html",
	" ----------------------------- ", "#",
	" - DIP-14Pin Quad ..", "pd_gtm_ic_14pin_qoa.html",
	" - DIP-16Pin PWM", "pd_gtm_ic_16pin_pcic.html",
	"Voltage Regulators", "products.html#GTM",
	" - TO-92 Volt. R.", "pd_gtm_vr_to92.html",
	" - SOP-8 Pin Volt. R.", "pd_gtm_vr_sop8pin.html",
	" - SOT-89 Volt. R.", "pd_gtm_vr_sot89.html",
	" - TO-220 Volt. R.", "pd_gtm_vr_to220.html",
	" - TO-251 Volt. R.", "pd_gtm_vr_to251.html",
	" - TO-252 Volt. R.", "pd_gtm_vr_to252.html",
	" - TO-263 Volt. R.", "pd_gtm_vr_to263.html",
	"Low Dropout Regulators", "products.html#GTM",
	" - SOT-23 CMOS", "pd_gtm_ldo_sot23cmos.html",
	" - SOT-23 Bi. Ln. Ultra", "pd_gtm_ldo_sot23blu.html",
	" - SOT-25 CMOS", "pd_gtm_ldo_sot25cmos.html",
	" - SOT-25 Bi. Ln. Ultra", "pd_gtm_ldo_sot25blu.html",
	" - SOT-26 CMOS", "pd_gtm_ldo_sot26cmos.html",
	" - SOT-92 CMOS LDO", "pd_gtm_ldo_sot92cmos.html",
	" - TO-92 Bi. Ln. Ultra", "pd_gtm_ldo_to92blu.html",
	" - SOT-92 Bi. Ln.", "pd_gtm_ldo_sot92bl.html",
	" - SOT-89 CMOS", "pd_gtm_ldo_sot89cmos.html",
	" - SOT-89(5L) Bi. Ln. Ultra", "pd_gtm_ldo_sot895lblu.html",
	" - SOT-89(5L) Bi. Ln.", "pd_gtm_ldo_sot895lbl.html",
	" - SOT-223 CMOS", "pd_gtm_ldo_sot223cmos.html",
	" - SOT-223 Bi. Ln.", "pd_gtm_ldo_sot223bl.html",
	" - SOT-223 Adj. Volt.R.", "pd_gtm_ldo_sot223avr.html",
	" - TO-252 CMOS", "pd_gtm_ldo_to252cmos.html",
	" - TO-252(5L) Bi. Ln.", "pd_gtm_ldo_to252_5Lbl.html",
	" - TO-252 Adj. Volt.R.", "pd_gtm_ldo_to252_avr.html",
	" - TO-220 CMOS", "pd_gtm_ldo_to220cmos.html",
	" - TO-220-5L Bi. Ln. Ultra", "pd_gtm_ldo_to220_5lblu.html",
	" - TO-220-5L Bi. Ln.", "pd_gtm_ldo_to220_5lbl.html",
	" - TO-220 Adj. Volt.R.", "pd_gtm_ldo_to220_avr.html",
	" - TO-263-5L CMOS", "pd_gtm_ldo_to263_5lcmos.html",
	" - TO-263-5L Bi. Ln. Ultra", "pd_gtm_ldo_to263_5lblu.html",
	" - TO-263(5L) Bi. Ln.", "pd_gtm_ldo_to263_5lbl.html",
	" - SOP-7L Bi. Ln. Ultra", "pd_gtm_ldo_sop7l_blu.html",
	" - SOP-8L CMOS", "pd_gtm_ldo_sop8l_cmos.html",
	" - SOP-8L Bi. Ln.", "pd_gtm_ldo_sop8l_bl.html",
	"Shunt Regulators", "products.html#GTM",
	" - SOT-23", "pd_gtm_sr_sot23.html",
	" - SOT-89", "pd_gtm_sr_sot89.html",
	" - TO-92", "pd_gtm_sr_to92.html",
	"Hall ICs", "products.html#GTM",
	" - SIP-3L Hall Sensor IC", "pd_gtm_hic_sip3l.html",
	" - SIP-4L Hall Sensor IC", "pd_gtm_hic_sip4l.html");
	 
 var subJOHANSON = new Array(
	"Please select ...", "#",
	"Johanson Dielectrics, Inc.", "http://www.johansondielectrics.com/",
	"Johanson Technology, Inc.", "http://www.johansontechnology.com/");
	 
 var subKB = new Array(
	"Please select ...", "#",
	"n/a", "#",
	"n/a", "#" );
	 
 var subUTC = new Array(
	"Please select ...", "#",
	"Power Management", "products.html#UTC",
	"Bipolar Transistors", "products.html#UTC",
	" - Combo IC", "pd_utc_pm_ci.html",
	" - DDR Termination Regulators", "pd_utc_pm_dtr.html",
	" - FET Bias Controllers", "pd_utc_pm_fbc.html",
	" - Inverting DC-DC Converter", "pd_utc_pm_idc.html",
	" - Li-Battery Protection or Charger IC", "pd_utc_pm_lpoci.html",
	" - Linear Regulators", "pd_utc_pm_lr.html",
	" - Low Dropout Linear Regulators", "pd_utc_pm_ldlr.html",
	" - Power Factor Control", "pd_utc_pm_pfc.html",
	" - PWM Controller", "pd_utc_pm_pc.html",
	" - Shunt Reference Regulators", "pd_utc_pm_srr.html",
	" - Step Down Switching Regulators", "pd_utc_pm_sdsr.html",
	" - Step-Up DC-DC Converter and Controller", "pd_utc_pm_sdcac.html",
	" - Supervisory Circuit", "pd_utc_pm_sc.html",
	" - USB Power Switch", "pd_utc_pm_ups.html",
	" - Voltage Detection and System Reset IC", "pd_utc_pm_vdasri.html",
	" - White LED Driver", "pd_utc_pm_wld.html",
	"Amplifier / Comparator", "products.html#UTC",
	" - Audio Amplifiers", "pd_utc_ac_aa.html",
	" - Operational Amplifier", "pd_utc_aa_oa.html",
	" - Voltage Comparator", "pd_utc_ac_vc.html",
	"Analog Switches", "products.html#UTC",
	" - Analog Multiplexers, Demultiplexer ICs", "pd_utc_as_amdi.html",
	" - Video Signal Switch", "pd_utc_as_vss.html",
	"Analog Switches", "products.html#UTC",
	" - Analog Multiplexers, Demultiplexer ICs", "pd_utc_as_amdi.html",
	" - Video Signal Switch", "pd_utc_as_vss.html",
	"Hall ICs", "pd_utc_hi.html",
	"Special Application ICs", "products.html#UTC",
	" - A-D or D-A Converters", "pd_utc_sai_aodc.html",
	" - Alarm /Sound Generator IC", "pd_utc_sai_asgi.html",
	" - Automotive IC", "pd_utc_sai_ai.html",
	" - Christmas Lamp Controller", "pd_utc_sai_clc.html",
	" - Interface and Driver Circuit", "pd_utc_sai_iadc.html",
	" - Leakage Current Detector", "pd_utc_sai_lcd.html",
	" - Melody IC", "pd_utc_sai_mi.html",
	" - Miscellaneous", "pd_utc_sai_m.html",
	" - Motor Controller IC", "pd_utc_sai_mci.html",
	" - Mouse & Keyboard Controller", "pd_utc_sai_mkc.html",
	" - Radio and Cassette Recorder Circuit", "pd_utc_sai_racrc.html",
	" - Remote Controller IC", "pd_utc_sai_rci.html",
	" - Telecommunication Circuit", "pd_utc_sai_tc.html",
	" - Television Circuit", "pd_utc_sai_tc2.html",
	" - Timer", "pd_utc_sai_t.html",
	"Logic", "pd_utc_l.html",
	"Discrete", "products.html#UTC",
	"Bipolar Transistors", "products.html#UTC",
	" - SOT-23", "pd_utc_bt_SOT23.html",
	" - SOT-89", "pd_utc_bt_SOT89.html",
	" - SOT-223", "pd_utc_bt_SOT223.html",
	" - SOT-323", "pd_utc_bt_SOT323.html",
	" - SOT-523", "pd_utc_bt_SOT523.html",
	" - TO-92", "pd_utc_bt_TO92.html",
	" - TO-92NL", "pd_utc_bt_TO92NL.html",
	" - TO-92SP", "pd_utc_bt_TO92SP.html",
	" - TO-126", "pd_utc_bt_TO126.html",
	" - TO-126C", "pd_utc_bt_TO126C.html",
	" - TO-220", "pd_utc_bt_TO220.html",
	" - TO-220F", "pd_utc_bt_TO220F.html",
	" - TO-251/TO-252", "pd_utc_bt_TO251.html",
	" - TO-3", "pd_utc_bt_TO3.html",
	" - TO-3PML", "pd_utc_bt_TO3PML.html",
	" - TO-263", "pd_utc_bt_TO263.html",
	"Dual Chip Transistors", "products.html#UTC",
	" - Complex Bipolar Transistors", "pd_utc_dct_CBT.html",
	" - Complex Digital Transistors", "pd_utc_dct_CDT.html",
	"Built-In Bias Resistor Transistors", "pd_utc_bibrt.html",
	"MOSFETs", "products.html#UTC",
	" - JFET", "pd_utc_m_j.html",
	" - Power Mosfet", "pd_utc_m_pm.html",
	"DIODEs", "products.html#UTC",
	" - Zener Diodes", "pd_utc_di_zd.html",
	" - Schottky Diodes", "pd_utc_di_sd.html",
	" - Switching Diodes", "pd_utc_di_sd2.html",
	"Darlington Transistors", "pd_utc_dt.html",
	"Logic", "pd_utc_l.html",
	"TRIACs", "pd_utc_t.html",
	"SCRs", "pd_utc_s.html");


	 
 var subWINBOND = new Array(
	"Please select ...", "#",
	"Voice & Speech IC", "products.html#Nuvoton",
	" - PowerSpeech IC", "pd_Nuvo_vs_ps.html",
	" - BandDirector", "pd_Nuvo_vs_bd.html",
	" - 2.4G RF", "pd_Nuvo_vs_24grf.html",
	" - I/O Expander", "pd_Nuvo_vs_ie.html",
	" - ViewTalk® Family", "pd_Nuvo_vs_vt.html",
	" - Analog to Digital Converter", "pd_Nuvo_vs_atdc.html",
	" - USB Device", "pd_Nuvo_vs_USB.html",
	" - MFID & RF Family", "pd_Nuvo_vs_MRF.html",
	" - Serial ROM Family", "pd_Nuvo_vs_SRF.html",
        "Advanced Toy", "products.html#nuvoton",
	" - Kids Electronics", "pd_nuvo_at_ke.html",
	" - Ultra Low-Cost ARM7TDMI-Based 32-bit MCU Family", "pd_nuvo_at_ULM.html",
	" - Game", "pd_nuvo_at_game.html",
	"ISD Voice IC", "products.html#nuvoton",
	" - ISD ChipCorder", "pd_nuvo_ivi_ic.html",
	"emPowerAudio", "products.html#nuvoton",
	" - Portable Audio", "pd_nuvo_epa_pa.html",
	" - USB Audio Controller", "pd_nuvo_epa_uac.html",
	"ARM Microcontroller", "products.html#nuvoton",
	" - ARM Microcontroller", "pd_nuvo_am_am.html",
	"Microcontroller", "products.html#nuvoton",
	" - 80C51 Microcontroller - 12T", "pd_nuvo_mic_80c51.html",
	" - 80C51 Microcontroller - 4T", "pd_nuvo_mic_80c51_4T.html",
	" - 80C51 LPC Microcontroller", "pd_nuvo_mic_80c51_LPC.html",
	" - 880C51 SMS Phone Microcontroller", "pd_nuvo_mic_80c51_SMS.html",
	"Small Home Electronics", "products.html#nuvoton",
	" - Telephone", "pd_nuvo_she_tele.html",
	" - Home Appliance", "pd_nuvo_she_ha.html",
	"Telecom", "products.html#nuvoton",
	" - VoIP Audio", "pd_nuvo_tele_voip.html",
	" - Voice CODEC", "pd_nuvo_tele_vc.html",
	" - Pro-X CODEC/SLCC", "pd_nuvo_tele_PX.html");
	 
 var subWELTREND = new Array(
	"Please select ...", "#",
	"Display Panel IC", "products.html#SolomonSystech",
	" - TFT LCD Driver Controller", "http://www.solomon-systech.com/pdf/selgd_mdlt.pdf",
	" - STN/CSTN LCD Driver Controller - CSTN Display", "http://www.solomon-systech.com/pdf/selgd_mdlc.pdf",
	" - STN/CSTN LCD Driver Controller - Gray Scale", "http://www.solomon-systech.com/pdf/selgd_mdlg.pdf",
	" - STN/CSTN LCD Driver Controller - Monochrome Display", "http://www.solomon-systech.com/pdf/selgd_mdlm.pdf",
	" - PDA Chipset", "http://www.solomon-systech.com/pdf/selgd_mdpda.pdf",
	" - Passive Matrix OLED Driver Controller", "http://www.solomon-systech.com/pdf/selgd_mdpmo.pdf",
	" - Active Matrix OLED Driver Controller", "http://www.solomon-systech.com/pdf/selgd_mdamo.pdf",
	" - Bistable Display Driver Controller", "http://www.solomon-systech.com/pdf/selgd_ndep.pdf",
	"Display System IC", "products.html#SolomonSystech",
	" - Graphic Controller", "http://www.solomon-systech.com/pdf/selgd_idgc.pdf",
	" - Image Processor", "http://www.solomon-systech.com/pdf/selgd_idip.pdf",
	" - VGA Module Module", "http://www.solomon-systech.com/pdf/selgd_mmvga.pdf",
	" - QVGA Module Module", "http://www.solomon-systech.com/pdf/selgd_mmqvga.pdf",
	"Green Power", "products.html#SolomonSystech",
	" - LED Driver IC", "http://www.solomon-systech.com/pdf/selgd_gpledic.pdf",	
	" - LED Emitter", "http://www.solomon-systech.com/pdf/selgd_gpledemitter.pdf",
	" - LED Power Module", "http://www.solomon-systech.com/pdf/selgd_gpledmodule.pdf",
	" - LED Lighting Solution", "http://www.solomon-systech.com/pdf/selgd_gpledlighting.pdf");

function loadBrands() {
	var i = 0;
	var objMain = document.getElementById('sMainPD');
	var objSub = document.getElementById('sSubPD');
	for (i=0; i<brandName.length;i++) {
		var oOption = document.createElement("OPTION");
		objMain.options.add(oOption);
		oOption.innerText = brandName[i];
		oOption.value = brandName[i];
	}
	//Load sub product
	for (i=0; i<subETL.length;i+=2) {
		var oOption = document.createElement("OPTION");
		objSub.options.add(oOption);
		oOption.innerText = subETL[i];
		oOption.value = subETL[i+1];
		
		if (oOption.innerText.substr(0,3) == " - ") {
			oOption.style.color = qCombo_pdColor02;
		}
		if (oOption.innerText.substr(0,3) == " --") {
			oOption.style.color = qCombo_pdColor03;
		}
		if (oOption.innerText.substr(0,2) != " -" && i != 0) {
			oOption.style.color = qCombo_pdColor01;
			oOption.style.backgroundColor = qCombo_pdColorBG01;
		}
	}
}

function loadSubPd(objBName) {
	var arrTmpBrand;
	var sBrandName = objBName.options[objBName.selectedIndex].value;
	
	if (sBrandName == 'ETL')
		arrTmpBrand = subETL;
	if (sBrandName == 'GTM')
		arrTmpBrand = subGTM;
	if (sBrandName == 'Johanson')
		arrTmpBrand = subJOHANSON;
	if (sBrandName == 'KB')
		arrTmpBrand = subKB;
	if (sBrandName == 'UTC')
		arrTmpBrand = subUTC;
	if (sBrandName == 'Nuvoton')
		arrTmpBrand = subWINBOND;
	if (sBrandName == 'Solomon Systech')
		arrTmpBrand = subWELTREND;
	
	// Clear all exist list data
	var i = 0;
	var objSub = document.getElementById('sSubPD');
	if (objSub.length > 0 ) {
		var objCount = objSub.length;
		for (i=objCount-1; i>=0; i--) {
			objSub.remove(i);
		}
	}

	// Colorize list data	
	for (i=0; i<arrTmpBrand.length;i+=2) {
		var oOption = document.createElement("OPTION");
		objSub.options.add(oOption);
		oOption.innerText = arrTmpBrand[i];
		oOption.value = arrTmpBrand[i+1];
		
		if (oOption.innerText.substr(0,3) == " - ") {
			oOption.style.color = qCombo_pdColor02;
		}
		if (oOption.innerText.substr(0,3) == " --") {
			oOption.style.color = qCombo_pdColor03;
		}
		if (oOption.innerText.substr(0,2) != " -" && i != 0) {
			oOption.style.color = qCombo_pdColor01;
			oOption.style.backgroundColor = qCombo_pdColorBG01;
		}
	}
}

function clearSearchBox() {
	var objBox = document.getElementById('txtSearch');
	if (Trim(objBox.value) == "Keyword / Part No.")
		objBox.value = "";
}

function jumpSelect() {
	var sValue = sSubPD.options[sSubPD.selectedIndex].value;
	if (sValue != "#") {
		if (sValue.substring(0,4) == "http")
			window.open(sValue);
		else
			window.location = sValue;
	}
}

function Trim(s) {
 	// Remove leading spaces and carriage returns 
	while ((s.substring(0,1) == ' ') || (s.substring(0,1) == '\n') || (s.substring(0,1) == '\r'))  { 
		s = s.substring(1,s.length); 
	}
 	// Remove trailing spaces and carriage returns 
	 while ((s.substring(s.length-1,s.length) == ' ') || (s.substring(s.length-1,s.length) == '\n') || (s.substring(s.length-1,s.length) == '\r'))  { 
		s = s.substring(0,s.length-1); 
	 }
 	return s; 
}