
function urunGrubu(){ 
 // this function is used to fill the urunGrubu list on load
addOption(document.urunForm.urunGrubu, "11", "Water-Based Paints", "");
addOption(document.urunForm.urunGrubu, "22", "Synthetic Paints", "");
addOption(document.urunForm.urunGrubu, "33", "Industrial Paints", "");
addOption(document.urunForm.urunGrubu, "44", "Varnishes", "");
addOption(document.urunForm.urunGrubu, "55", "Water-Based Decorative Interior Paints", "");
addOption(document.urunForm.urunGrubu, "66", "Exterior Fillers", "");
addOption(document.urunForm.urunGrubu, "77", "Thinners", "");
addOption(document.urunForm.urunGrubu, "88", "Adhesive", "");
addOption(document.urunForm.urunGrubu, "90", "3K Epoxy Systems", "");
addOption(document.urunForm.urunGrubu, "91", "Special Products", "");
}

function urunSec(){
// ON selection of urunGrubu this function will work

removeAllOptions(document.urunForm.altUrunler);
addOption(document.urunForm.altUrunler, "", "Seçiniz", "");

if(document.urunForm.urunGrubu.value == '11'){
addOption(document.urunForm.altUrunler,"turksan_silikonlu_ic_cephe.php", "Türksan Silicone Interior Silky Matt");
addOption(document.urunForm.altUrunler,"turksan_silikonlu_dis_cephe.php", "Türksan Silicone Exterior");
addOption(document.urunForm.altUrunler,"turksan_akrilik_dis_cephe.php", "Türksan Acrylic Exterior");
addOption(document.urunForm.altUrunler,"turksan_mega_yari_mat_su_bazli.php", "Türksan Mega Semi-Gloss Water-Based");
addOption(document.urunForm.altUrunler,"turksan_mega_plastik.php", "Türksan Mega Plastic");
addOption(document.urunForm.altUrunler,"turksan_3k_plastik.php", "3K Plastic");
addOption(document.urunForm.altUrunler,"gorkem_plastik.php", "Görkem Plastic");
addOption(document.urunForm.altUrunler,"turksan_tavan_boyasi.php", "Türksan Ceiling Paint");
addOption(document.urunForm.altUrunler,"turksan_3k_ic_cephe_mat.php", "3K Interior Matt Antibacterial");
addOption(document.urunForm.altUrunler,"3k_silikonlu_ic_cephe_mat.php", "3K Silicone Interior Matt");
addOption(document.urunForm.altUrunler,"turksan_3k_silikonlu_ic_dis.php", "3K Silicone Interior & Exterior Matt");
addOption(document.urunForm.altUrunler,"turksan_3k_tavan.php", "3K Special Ceiling Paint");
addOption(document.urunForm.altUrunler,"3k_grenli_akrilik.php", "Türksan 3K Grained Acrylic Exterior Covering");
addOption(document.urunForm.altUrunler,"3k_grenli_silikonlu.php", "Türksan 3K Grained Silicone Exterior Covering");
addOption(document.urunForm.altUrunler,"turksan_silikonlu_dis_cephe_astar.php", "Türksan Silicone Exterior Primer");
addOption(document.urunForm.altUrunler,"turksan_akrilik_dis_cephe_astar.php", "Türksan Acrylic Exterior Primer");
addOption(document.urunForm.altUrunler,"turksan_izolate.php", "Türksan Isolate");
addOption(document.urunForm.altUrunler,"3k_transfer_astari.php", "Türksan 3K Transfer Primer");
addOption(document.urunForm.altUrunler,"turksan_ic_cephe_macunu.php", "Türksan Interior Filler");
addOption(document.urunForm.altUrunler,"gorkem_tavan_boyasi.php", "Görkem Ceiling Paint");
}
if(document.urunForm.urunGrubu.value == '22'){
addOption(document.urunForm.altUrunler,"turksan_yari_mat_sentetik_boya.php", "Türksan Semi-Gloss Synthetic Topcoat");
addOption(document.urunForm.altUrunler,"turksan_luxe_sentetik.php", "Türksan Luxe Synthetic Topcoat");
addOption(document.urunForm.altUrunler,"gorkem_sentetik.php", "Görkem Synthetic Topcoat");
addOption(document.urunForm.altUrunler,"gorkem_sentetik_antipas.php", "Görkem Synthetic Anti Corrosive");
addOption(document.urunForm.altUrunler,"turksan_antipas.php", "Türksan Synthetic Anti Corrosive");
addOption(document.urunForm.altUrunler,"turksan_sentetik_astar.php", "Türksan Synthetic Primer");
addOption(document.urunForm.altUrunler,"turksan_boya_macunu.php", "Türksan Paint Filler");
addOption(document.urunForm.altUrunler,"turksan_aluminyum_yaldiz.php", "Türksan 3K Aluminium Gilding");
addOption(document.urunForm.altUrunler,"turksan_lux_yagli.php", "3K Lux Synthetic");
}
if(document.urunForm.urunGrubu.value == '33'){
addOption(document.urunForm.altUrunler,"turksan_selulozik_boya.php", "Türksan Cellulosic Topcoat");
addOption(document.urunForm.altUrunler,"turksan_rapid_endustriyel_boya.php", "Türksan Rapid Industrial Topcoat");
addOption(document.urunForm.altUrunler,"turksan_hammerton_boya.php", "Türksan Hammerton");
addOption(document.urunForm.altUrunler,"turksan_iseson.php", "Türksan Iseson");
addOption(document.urunForm.altUrunler,"turksan_selulozik_astar.php", "Türksan Cellulosic Primer");
addOption(document.urunForm.altUrunler,"turksan_rapid_astar.php", "Türksan Rapid Industrial Primer");
}
if(document.urunForm.urunGrubu.value == '44'){
addOption(document.urunForm.altUrunler,"turksan_yat_vernik.php", "Türksan Yacht Varnish");
addOption(document.urunForm.altUrunler,"turksan_parke_cam_cila.php", "Türksan Parquet Lack");
addOption(document.urunForm.altUrunler,"turksan_ahsap_koruyucu.php", "Türksan Wood Protector");
addOption(document.urunForm.altUrunler,"turksan_selulozik_dolgu_vernik.php", "Türksan Sanding Sealer");
addOption(document.urunForm.altUrunler,"turksan_selulozik_parlak_vernik.php", "Türksan Cellulosic Brilliant Varnish");
addOption(document.urunForm.altUrunler,"turksan_mobilya_vernigi.php", "Türksan Furniture Varnish");
}
if(document.urunForm.urunGrubu.value == '55'){
addOption(document.urunForm.altUrunler,"turksan_serpme_ic_cephe_kaplama.php", "Türksan Serpme Interior Covering");
}
if(document.urunForm.urunGrubu.value == '66'){
addOption(document.urunForm.altUrunler,"turksan_akrilik_dis_cephe_macunu.php", "Türksan Acrylic Exterior Filler");
}
if(document.urunForm.urunGrubu.value == '77'){
addOption(document.urunForm.altUrunler,"turksan_sentetik_tiner.php", "Türksan Synthetic Thinner");
addOption(document.urunForm.altUrunler,"turksan_selulozik_tiner.php", "Türksan Cellulosic Thinner");
addOption(document.urunForm.altUrunler,"3k_rapid_endustriyel_tiner.php", "3K Rapid Industrial Thinner");
addOption(document.urunForm.altUrunler,"3k_yol_cizgi_tineri.php", "3K Road Marking Thinner");
addOption(document.urunForm.altUrunler,"3k_epoksi_tiner.php", "3K Epoxy Thinner");
}
if(document.urunForm.urunGrubu.value == '88'){
addOption(document.urunForm.altUrunler,"turksan_marley_yapistirici.php", "Türksan PVC Ground Flooring Glue");
addOption(document.urunForm.altUrunler,"gorkem_marley_parke_yapistirici.php", "Görkem PVC Ground Flooring Glue");
addOption(document.urunForm.altUrunler,"gorkem_tutkal.php", "Görkem Glue");
}
if(document.urunForm.urunGrubu.value == '90'){
addOption(document.urunForm.altUrunler,"3k_epoksi_son_kat.php", "3K Epoxy Topcoat");
addOption(document.urunForm.altUrunler,"3k_epoksi_astar.php", "3K Epoxy Primer");
addOption(document.urunForm.altUrunler,"3k_epoksi_zemin_kaplama.php", "3K Epoxy Flooring SELF LEVELLING");
addOption(document.urunForm.altUrunler,"3k_epoksi_zemin_emprenye_astari.php", "3K Epoxy Floor Impregnation Primer");
}
if(document.urunForm.urunGrubu.value == '91'){
addOption(document.urunForm.altUrunler,"3k_moonlight.php", "3K Moonlight");
addOption(document.urunForm.altUrunler,"3k_moonlight_primer.php", "3K Moonlight Special Primer");
addOption(document.urunForm.altUrunler,"3k_lite_solvent_bazli.php", "3K Lite Solvent Based Exterior Paint");
addOption(document.urunForm.altUrunler,"3k_trafik_yol_cizgi_boyasi.php", "3K Road Marking Paint");
}
}
////////////////// 

function removeAllOptions(selectbox)
{
	var i;
	for(i=selectbox.options.length-1;i>=0;i--)
	{
		//selectbox.options.remove(i);
		selectbox.remove(i);
	}
}


function addOption(selectbox, value, text )
{
	var optn = document.createElement("OPTION");
	optn.text = text;
	optn.value = value;

	selectbox.options.add(optn);
}

