
selectArrLine = new Array();
//TRANSLATION START FOR 'LINE'...DO NOT CHANGE THE ORDER OF THE LIST
//DO NOT ADD NEW PRODUCT...SEND IN A SEPARATE EMAIL TO APPEND THE LIST
selectArrLine[0] = "1000#$100#$โปรเซสเซอร์เดสก์ทอป"
selectArrLine[1] = "1000#$101#$บอร์ดเดสก์ทอป"
selectArrLine[2] = "1000#$102#$อะแดปเตอร์เดสก์ทอป"
selectArrLine[3] = "2000#$200#$โปรเซสเซอร์โมไบล์"
selectArrLine[4] = "2000#$201#$สถาปัตยกรรมโมไบล์"
selectArrLine[5] = "2000#$202#$ชิปเซ็ตโมไบล์"
selectArrLine[6] = "2000#$203#$อะแดปเตอร์โมไบล์"
selectArrLine[7] = "3000#$300#$โปรเซสเซอร์เซิร์ฟเวอร์"
selectArrLine[8] = "3000#$301#$บอร์ดเซิร์ฟเวอร์"
selectArrLine[9] = "3000#$302#$ผลิตภัณฑ์เซิร์ฟเวอร์"
selectArrLine[10] = "3000#$303#$แชสซีเซิร์ฟเวอร์"
selectArrLine[11] = "3000#$304#$RAID"
selectArrLine[12] = "3000#$305#$เซิร์ฟเวอร์ Blade"
selectArrLine[13] = "3000#$306#$ผลิตภัณฑ์บันทึกข้อมูล"
//TRANSLATION END FOR 'LINE'

selectArrProduct = new Array();
//TRANSLATION START FOR 'PRODUCT'...DO NOT CHANGE THE ORDER OF THE LIST
//DO NOT ADD NEW PRODUCT...SEND IN A SEPARATE EMAIL TO APPEND THE LIST
selectArrProduct[0] = "100#$2112#$โปรเซสเซอร์ Intel® Pentium® D"
selectArrProduct[1] = "100#$483#$โปรเซสเซอร์ Intel® Pentium® 4"
selectArrProduct[2] = "100#$2103#$โปรเซสเซอร์ Intel® Pentium® Extreme Edition"
selectArrProduct[3] = "100#$1077#$โปรเซสเซอร์ Intel® Pentium® 4 Extreme Edition"
selectArrProduct[4] = "100#$1756#$โปรเซสเซอร์ Intel® Celeron® D"
selectArrProduct[5] = "101#$2070#$Intel® Desktop Board D955XBK"
selectArrProduct[6] = "101#$2071#$Intel® Desktop Board D955XCS"
selectArrProduct[7] = "101#$2205#$Intel® Desktop Board D975XBX"
selectArrProduct[8] = "101#$1672#$Intel® Desktop Board D915GAG"
selectArrProduct[9] = "101#$1673#$Intel® Desktop Board D915GAV"
selectArrProduct[10] = "101#$1674#$Intel® Desktop Board D915GEV"
selectArrProduct[11] = "101#$1675#$Intel® Desktop Board D915GMH"
selectArrProduct[12] = "101#$1676#$Intel® Desktop Board D915GUX"
selectArrProduct[13] = "101#$1678#$Intel® Desktop Board D915PCM"
selectArrProduct[14] = "101#$1679#$Intel® Desktop Board D915PCY"
selectArrProduct[15] = "101#$1680#$Intel® Desktop Board D915PGN"
selectArrProduct[16] = "101#$1681#$Intel® Desktop Board D915PSY"
selectArrProduct[17] = "101#$2062#$Intel® Desktop Board D915GLVG"
selectArrProduct[18] = "101#$2111#$Intel® Desktop Board D915PLWD"
selectArrProduct[19] = "101#$1879#$Intel® Desktop Board D925XECV2"
selectArrProduct[20] = "101#$1880#$Intel® Desktop Board D925XEBC2"
selectArrProduct[21] = "101#$2351#$Intel® Desktop Board D925XHY"
selectArrProduct[22] = "101#$2063#$Intel® Desktop Board D945GCZ"
selectArrProduct[23] = "101#$2064#$Intel® Desktop Board D945GTP"
selectArrProduct[24] = "101#$2065#$Intel® Desktop Board D945PAW"
selectArrProduct[25] = "101#$2066#$Intel® Desktop Board D945PSN"
selectArrProduct[26] = "101#$2068#$Intel® Desktop Board D945GNT"
selectArrProduct[27] = "101#$2069#$Intel® Desktop Board D945PVS"
selectArrProduct[28] = "101#$2158#$Intel® Desktop Board D945PLM"
selectArrProduct[29] = "101#$2200#$Intel® Desktop Board D945GBO"
selectArrProduct[30] = "101#$2201#$Intel® Desktop Board D945GPM"
selectArrProduct[31] = "101#$2202#$Intel® Desktop Board D945GRW"
selectArrProduct[32] = "101#$2204#$Intel® Desktop Board D945PLRN"
selectArrProduct[33] = "101#$2352#$Intel® Desktop Board D945PWM"
selectArrProduct[34] = "101#$2229#$Intel® Desktop Board D101GGC"
selectArrProduct[35] = "102#$820#$อะแดปเตอร์เดสก์ทอป Intel® PRO/100 M"
selectArrProduct[36] = "102#$871#$อะแดปเตอร์เดสก์ทอป Intel® PRO/1000 MT"
selectArrProduct[37] = "102#$1058#$Intel® PRO/100 S Management Adapter"
selectArrProduct[38] = "102#$1878#$อะแดปเตอร์เดสก์ทอป Intel® PRO/1000 GT"
selectArrProduct[39] = "200#$2278#$โปรเซสเซอร์ Intel® Core(TM) Duo"
selectArrProduct[40] = "200#$2304#$Intel® Core(TM) Solo processor"
selectArrProduct[41] = "200#$942#$Intel® Pentium® M Processor ชนิดบรรจุกล่อง"
selectArrProduct[42] = "200#$826#$Mobile โปรเซสเซอร์ Intel® Pentium® 4 - M"
selectArrProduct[43] = "200#$483#$Mobile โปรเซสเซอร์ Intel® Pentium® 4"
selectArrProduct[44] = "200#$1191#$โปรเซสเซอร์ Mobile Intel® Pentium® III - M"
selectArrProduct[45] = "200#$1639#$โปรเซสเซอร์ Intel® Celeron® M"
selectArrProduct[46] = "201#$2277#$เทคโนโลยี Intel® Centrino® Duo Mobile"
selectArrProduct[47] = "201#$955#$เทคโนโลยี Intel® Centrino® Mobile"
selectArrProduct[48] = "202#$2301#$ชิปเซ็ตตระกูล Mobile Intel® 945GM Express"
selectArrProduct[49] = "202#$1862#$Mobile Intel® 915GM/GMS"
selectArrProduct[50] = "203#$1637#$Intel® PRO/Wireless 2200BG Network Connection"
selectArrProduct[51] = "203#$1847#$Intel® PRO/Wireless 2915ABG Network Connection"
selectArrProduct[52] = "203#$2259#$Intel® PRO/Wireless 3945ABG Network Connection"
selectArrProduct[53] = "300#$528#$โปรเซสเซอร์ Intel® Xeon®"
selectArrProduct[54] = "301#$2094#$Intel® Server Board SE7320EP2"
selectArrProduct[55] = "301#$1660#$Intel® Server Board SE7320SP2"
selectArrProduct[56] = "301#$1856#$Intel® Server Board SE7320VP2"
selectArrProduct[57] = "301#$858#$Intel® Server Board SE7500CW2"
selectArrProduct[58] = "301#$874#$Intel® Server Board SE7500WV2"
selectArrProduct[59] = "301#$883#$Intel® Server Board SE7501BR2"
selectArrProduct[60] = "301#$925#$Intel® Server Board SE7501CW2"
selectArrProduct[61] = "301#$926#$Intel® Server Board SE7501HG2"
selectArrProduct[62] = "301#$904#$Intel® Server Board SE7501WV2"
selectArrProduct[63] = "301#$918#$Intel® Server Board SE7505VB2"
selectArrProduct[64] = "301#$1643#$Intel® Server Board SE7520AF2"
selectArrProduct[65] = "301#$1658#$Intel® Server Board SE7520BD2"
selectArrProduct[66] = "301#$1650#$Intel® Server Board SE7520JR2"
selectArrProduct[67] = "301#$1659#$Intel® Server Board SE7525GP2"
selectArrProduct[68] = "301#$2095#$Intel® Server Board SE7525RP2"
selectArrProduct[69] = "301#$1640#$Intel® Entry Server Board SE7210TP1-E"
selectArrProduct[70] = "301#$1959#$Intel® Entry Server Board SE7221BA1-E"
selectArrProduct[71] = "301#$2162#$Intel® Entry Server Board SE7230NH1-E"
selectArrProduct[72] = "301#$859#$Intel® Server Board S845WD1-E"
selectArrProduct[73] = "301#$593#$Intel® Server Board S815EBM1"
selectArrProduct[74] = "301#$960#$Intel® Server Board S875WP1-E"
selectArrProduct[75] = "302#$2055#$Intel® Server Platform SC5300AF2"
selectArrProduct[76] = "302#$2056#$Intel® Server Platform SC5300BD2"
selectArrProduct[77] = "302#$806#$Intel® Server Platform SPSH4"
selectArrProduct[78] = "302#$1859#$Intel® Server Platform SR1435VP2"
selectArrProduct[79] = "302#$2036#$Intel® Server Platform SR4850HW4"
selectArrProduct[80] = "302#$2037#$Intel® Server Platform SR6850HW4"
selectArrProduct[81] = "302#$1644#$Intel® Entry Server Platform SR1325TP1-E"
selectArrProduct[82] = "302#$2163#$Intel® Entry Server Platform SR1475NH1-E"
selectArrProduct[83] = "303#$864#$Intel® แชสซีเซิร์ฟเวอร์ SC5200"
selectArrProduct[84] = "303#$919#$Intel® Entry แชสซีเซิร์ฟเวอร์ SC5250-E"
selectArrProduct[85] = "303#$958#$Intel® Entry แชสซีเซิร์ฟเวอร์ SR1350-E"
selectArrProduct[86] = "303#$1667#$Intel® แชสซีเซิร์ฟเวอร์ SC5300"
selectArrProduct[87] = "303#$1754#$Intel® แชสซีเซิร์ฟเวอร์ SR1400"
selectArrProduct[88] = "303#$1755#$Intel® แชสซีเซิร์ฟเวอร์ SR2400"
selectArrProduct[89] = "303#$1777#$Intel® Entry แชสซีเซิร์ฟเวอร์ SC5275-E"
selectArrProduct[90] = "303#$1967#$Intel® แชสซีเซิร์ฟเวอร์ SR1450"
selectArrProduct[91] = "303#$2135#$Intel® Entry แชสซีเซิร์ฟเวอร์ SC5295-E"
selectArrProduct[92] = "303#$1059#$Intel® แชสซีเซิร์ฟเวอร์ SBCE"
selectArrProduct[93] = "304#$608#$Intel® RAID Controller SRCMR"
selectArrProduct[94] = "304#$911#$Intel® RAID Controller SRCS14L"
selectArrProduct[95] = "304#$1657#$Intel® RAID Controller SRCS16"
selectArrProduct[96] = "304#$1768#$Intel® RAID Controller SRCS28X"
selectArrProduct[97] = "304#$516#$Intel® RAID Controller SRCU32"
selectArrProduct[98] = "304#$1767#$Intel® RAID Controller SRCU42E"
selectArrProduct[99] = "304#$884#$Intel® RAID Controller SRCU42L"
selectArrProduct[100] = "304#$1062#$Intel® RAID Controller SRCU42X"
selectArrProduct[101] = "304#$897#$Intel® RAID Controller SRCZCR"
selectArrProduct[102] = "304#$1766#$Intel® RAID Controller SRCZCRX"
selectArrProduct[103] = "304#$301#$Intel® Server RAID Controller SRCU21"
selectArrProduct[104] = "304#$369#$Intel® Server RAID Controller SRCU31"
selectArrProduct[105] = "304#$800#$Intel® Server RAID Controller SRCU31A"
selectArrProduct[106] = "304#$487#$Intel® Server RAID Controller SRCU31L"
selectArrProduct[107] = "304#$801#$Intel® Server RAID Controller SRCU31LA"
selectArrProduct[108] = "305#$2087#$Brocade* Entry SAN Switch Module"
selectArrProduct[109] = "305#$1656#$Intel® Blade Server Management Module SBCECMM"
selectArrProduct[110] = "305#$2060#$Intel® Optical Pass-thru Module SBCEOPM"
selectArrProduct[111] = "305#$1059#$Intel® แชสซีเซิร์ฟเวอร์ SBCE"
selectArrProduct[112] = "305#$1652#$Intel® Server Compute Blade SBX44 "
selectArrProduct[113] = "305#$1973#$Intel® Server Compute Blade SBX82 "
selectArrProduct[114] = "306#$2366#$Intel® Entry Storage System SS4000-E"
selectArrProduct[115] = "306#$2199#$Intel® Storage System SSR212MA"
//TRANSLATION END FOR 'PRODUCT'

//PLEASE DO NOT CHANGE ANYTHING BELOW THIS LINE////////////////////////////////////////
//PLEASE DO NOT CHANGE ANYTHING BELOW THIS LINE////////////////////////////////////////
//PLEASE DO NOT CHANGE ANYTHING BELOW THIS LINE////////////////////////////////////////
//PLEASE DO NOT CHANGE ANYTHING BELOW THIS LINE////////////////////////////////////////
function UpdateLine() {	// Update Line Dropdown
	var iFirstDash, iSecondDash;
	var iPrdObjIdFamily;
	var famList = document.getElementById("selFamily");
	var lineList = document.getElementById("selLine");
	var prodList = document.getElementById("selProduct");
	//Reset Line dropdown
	lineList.length =  0;
	lineList.options[0] = new Option("เลือกไลน์","none");
	if (famList.selectedIndex!=0) {	//A valid family has been selected, so set line
		iPrdObjIdFamily = famList.options[famList.selectedIndex].value;
		for(var i=0;i<selectArrLine.length;i++) {
			strLine = selectArrLine[i];
			iFirstDash = strLine.indexOf("#$");
			if (strLine.substring(0,iFirstDash) == iPrdObjIdFamily) {
				iSecondDash = strLine.indexOf("#$", iFirstDash+2);			
				lineList.options[lineList.options.length] = new Option(strLine.substring(iSecondDash+2),strLine.substring(iFirstDash+2,iSecondDash));				
			}
		}
	}
	if(prodList){
		prodList.length = 0;									
		prodList.options[0] = new Option("เลือกผลิตภัณฑ์","none");
	}
}

function UpdateProduct() {	// Update Product Dropdown
	var iFirstDash, iSecondDash;
	var iPrdObjId;
	var famList = document.getElementById("selFamily");
	var lineList = document.getElementById("selLine");
	var prodList = document.getElementById("selProduct");
	var str = "";
	//Reset Product dropdown
	prodList.length = 0;		
	prodList.options[0] = new Option("เลือกผลิตภัณฑ์","none");
	if (lineList.selectedIndex!=0){	//A valid Line has been selected, so set Prod
		iPrdObjId = lineList.options[lineList.selectedIndex].value;
		for(var i=0;i<selectArrProduct.length;i++) {
			strProduct = selectArrProduct[i];
			iFirstDash = strProduct.indexOf("#$");			
			if (strProduct.substring(0, iFirstDash) == iPrdObjId){
				iSecondDash = strProduct.indexOf("#$", iFirstDash+2);	
				prodList.options[prodList.options.length] = new Option(strProduct.substring(iSecondDash+2),strProduct.substring(iFirstDash+2,iSecondDash));
			}
		}
	}
}
