
/**************************************
   Navigation Select Boxes Java Scripts
**************************************/
function change_item () {
	items0 = new Array ("-Select-");
	value0 = new Array ("0");

	items1 = new Array ("-Select-","Classification","What is PMMA","Process of PMMA");
	value1 = new Array ("0","/english/products/frame_product_1.html","/english/products/frame_product_1_1.html","/english/products/frame_product_1_2.html");
	
	items2 = new Array ("-Select-","Introduction","Processing");
	value2 = new Array ("0","/english/products/frame_product_2.html","/english/products/frame_product_2_1.html");

	items3 = new Array ("-Select-","Introducing","Processing");
	value3 = new Array ("0","/english/products/frame_product_3.html","/english/products/frame_product_3_1.html");

	items4 = new Array ("-Select-","Bead Grade");
	value4 = new Array ("0","/english/products/frame_product_4.html");
       
	items5 = new Array ("-Select-","Contamination","Moisture Proofing","Trouble Shooting","Letcture Note");
	value5 = new Array ("0","/english/tech_info/frame_techinfo_1.html","/english/tech_info/frame_techinfo_2.html","/english/tech_info/frame_techinfo_3.html","/english/tech_info/frame_techinfo_4.html");
	
	items6 = new Array ("-Select-","UL","JHPC","Heavy Metal","MSDS");
	value6 = new Array ("0","/english/cer_msds/frame_msds_1.html","/english/cer_msds/frame_msds_2.html","/english/cer_msds/frame_msds_3.html","/english/cer_msds/frame_msds_4.html");
	
	items7 = new Array ("-Select-","Standard Colors","What is Color","Date of Color");
	value7 = new Array ("0","/english/colors/frame_colors_1.html","/english/colors/frame_colors_2.html","/english/colors/frame_colors_3.html");                    

	items8 = new Array ("-Select-","Automotive","Electronics","LCD","Artificial Marble","Housewares","Lens");
	value8 = new Array ("0","/english/application/frame_apply_1.html","/english/application/frame_apply_2.html","/english/application/frame_apply_3.html","/english/application/frame_apply_4.html","/english/application/frame_apply_5.html","/english/application/frame_apply_6.html");                    

	var i;
	var first_select = document.form1.select1.selectedIndex;
	var items = eval ("items" + first_select);
	var value = eval ("value" + first_select);
	for (i = document.form1.select2.length - 1; i >= 0; i --)
		document.form1.select2.options[i] = null;
	for (i = 0; i < items.length; i ++)
		document.form1.select2.options[i] = new Option (items[i], value[i]);

	document.form1.select2.selectedIndex = 0;
}

function goto_url () {
	var select0 = document.form1.select1.value;
	var select = document.form1.select2.selectedIndex;
	var select0link="";

	if(select0 < 6){
		select0link="/english/products/left_product.html";
	}else if(select0 == 6){
		select0link="/english/tech_info/left_techinfo.html";
	}else if(select0 == 7){
		select0link="/english/cer_msds/left_msds.html";
	}else if(select0 == 8){
		select0link="/english/colors/left_colors.html";
	}else if(select0 == 9){
		select0link="/english/application/left_apply.html";
	}
	
	if (select != 0){
		parent.m.location = document.form1.select2.options[select].value;
	}
}

function open_win(val){
	if (val==0){
		return;
	}else {
		NewWin=window.open("","LGWin","titlebar=yes,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,left=0,top=0,width=800,height=600");
		NewWin.location.href=val;
  	}
}

