
function urunGrubu(){ 
 // this function is used to fill the urunGrubu list on load
addOption(document.urunForm.urunGrubu, "11", "Su Bazlı Boyalar", "");
addOption(document.urunForm.urunGrubu, "22", "Sentetik Boyalar", "");
addOption(document.urunForm.urunGrubu, "33", "Sanayi Boyaları", "");
addOption(document.urunForm.urunGrubu, "44", "Vernik Grubu", "");
addOption(document.urunForm.urunGrubu, "55", "Su Bazlı Dekoratif İç Cephe Boyaları", "");
addOption(document.urunForm.urunGrubu, "66", "Dış Cephe Macunları", "");
addOption(document.urunForm.urunGrubu, "77", "İnceltici Ürünler", "");
addOption(document.urunForm.urunGrubu, "88", "Yapıştırıcı ve Tutkallar", "");
addOption(document.urunForm.urunGrubu, "90", "3K Epoksi Sistemleri", "");
addOption(document.urunForm.urunGrubu, "91", "Özel Ürünler", "");
}

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 Silikonlu İç Cephe İpeksi Mat Boya");
addOption(document.urunForm.altUrunler,"turksan_silikonlu_dis_cephe.php", "Türksan Silikonlu Dış Cephe Boyası");
addOption(document.urunForm.altUrunler,"turksan_akrilik_dis_cephe.php", "Türksan Akrilik Dış Cephe Boyası");
addOption(document.urunForm.altUrunler,"turksan_mega_yari_mat_su_bazli.php", "Türksan Mega Yarımat Su Bazlı Boya");
addOption(document.urunForm.altUrunler,"turksan_mega_plastik.php", "Türksan Mega Plastik Boya");
addOption(document.urunForm.altUrunler,"turksan_3k_plastik.php", "3K Plastik Boya");
addOption(document.urunForm.altUrunler,"gorkem_plastik.php", "Görkem Plastik Boya");
addOption(document.urunForm.altUrunler,"turksan_tavan_boyasi.php", "Türksan Tavan Boyası");
addOption(document.urunForm.altUrunler,"turksan_3k_ic_cephe_mat.php", "3K Mat İç Cephe Antibakteriyel");
addOption(document.urunForm.altUrunler,"3k_silikonlu_ic_cephe_mat.php", "3K Silikonlu İç Cephe Mat Boya");
addOption(document.urunForm.altUrunler,"turksan_3k_silikonlu_ic_dis.php", "3K Silikonlu İç & Dış Cephe Mat Boya");
addOption(document.urunForm.altUrunler,"turksan_3k_tavan.php", "3K Özel Tavan Boyası");
addOption(document.urunForm.altUrunler,"3k_grenli_akrilik.php", "Türksan 3K Grenli Akrilik Dış Cephe Kaplama");
addOption(document.urunForm.altUrunler,"3k_grenli_silikonlu.php", "Türksan 3K Grenli Silikonlu Dış Cephe Kaplama");
addOption(document.urunForm.altUrunler,"turksan_silikonlu_dis_cephe_astar.php", "Türksan Silikonlu Dış Cephe Astar");
addOption(document.urunForm.altUrunler,"turksan_akrilik_dis_cephe_astar.php", "Türksan Akrilik Dış Cephe Astar");
addOption(document.urunForm.altUrunler,"turksan_izolate.php", "Türksan İzolate");
addOption(document.urunForm.altUrunler,"3k_transfer_astari.php", "Türksan 3K Transfer Astarı");
addOption(document.urunForm.altUrunler,"turksan_ic_cephe_macunu.php", "Türksan İç Cephe Macunu");
addOption(document.urunForm.altUrunler,"gorkem_tavan_boyasi.php", "Görkem Tavan Boyası");
}
if(document.urunForm.urunGrubu.value == '22'){
addOption(document.urunForm.altUrunler,"turksan_yari_mat_sentetik_boya.php", "Türksan Yarımat Sentetik Boya");
addOption(document.urunForm.altUrunler,"turksan_luxe_sentetik.php", "Türksan Luxe Sentetik Sonkat Boya");
addOption(document.urunForm.altUrunler,"gorkem_sentetik.php", "Görkem Sentetik Sonkat Boya");
addOption(document.urunForm.altUrunler,"gorkem_sentetik_antipas.php", "Görkem Sentetik Antipas");
addOption(document.urunForm.altUrunler,"turksan_antipas.php", "Türksan Sentetik Antipas");
addOption(document.urunForm.altUrunler,"turksan_sentetik_astar.php", "Türksan Sentetik Astar");
addOption(document.urunForm.altUrunler,"turksan_boya_macunu.php", "Türksan Boya Macunu");
addOption(document.urunForm.altUrunler,"turksan_aluminyum_yaldiz.php", "Türksan 3K Alüminyum Yaldız Boya");
addOption(document.urunForm.altUrunler,"turksan_lux_yagli.php", "3K Lux Yağlı Boya");
}
if(document.urunForm.urunGrubu.value == '33'){
addOption(document.urunForm.altUrunler,"turksan_selulozik_boya.php", "Türksan Selülozik Sonkat Boya");
addOption(document.urunForm.altUrunler,"turksan_rapid_endustriyel_boya.php", "Türksan Rapid Sonkat Boya");
addOption(document.urunForm.altUrunler,"turksan_hammerton_boya.php", "Türksan Hammerton Boya");
addOption(document.urunForm.altUrunler,"turksan_iseson.php", "Türksan İseson");
addOption(document.urunForm.altUrunler,"turksan_selulozik_astar.php", "Türksan Selülozik Astar Boya");
addOption(document.urunForm.altUrunler,"turksan_rapid_astar.php", "Türksan Rapid Endüstriyel Astar Boya");
}
if(document.urunForm.urunGrubu.value == '44'){
addOption(document.urunForm.altUrunler,"turksan_yat_vernik.php", "Türksan Yat Vernik");
addOption(document.urunForm.altUrunler,"turksan_parke_cam_cila.php", "Türksan Cam Cila");
addOption(document.urunForm.altUrunler,"turksan_ahsap_koruyucu.php", "Türksan Ahşap Koruyucu");
addOption(document.urunForm.altUrunler,"turksan_selulozik_dolgu_vernik.php", "Türksan Selülozik Dolgu Vernik");
addOption(document.urunForm.altUrunler,"turksan_selulozik_parlak_vernik.php", "Türksan Selülozik Parlak Vernik");
addOption(document.urunForm.altUrunler,"turksan_mobilya_vernigi.php", "Türksan Mobilya Verniği");
}
if(document.urunForm.urunGrubu.value == '55'){
addOption(document.urunForm.altUrunler,"turksan_serpme_ic_cephe_kaplama.php", "Türksan Serpme İç Cephe Kaplama");
}
if(document.urunForm.urunGrubu.value == '66'){
addOption(document.urunForm.altUrunler,"turksan_akrilik_dis_cephe_macunu.php", "Türksan Akrilik Dış Cephe Macunu");
}
if(document.urunForm.urunGrubu.value == '77'){
addOption(document.urunForm.altUrunler,"turksan_sentetik_tiner.php", "Türksan Sentetik Tiner");
addOption(document.urunForm.altUrunler,"turksan_selulozik_tiner.php", "Türksan Selülozik Tiner");
addOption(document.urunForm.altUrunler,"3k_rapid_endustriyel_tiner.php", "3K Rapid Endüstriyel Tiner");
addOption(document.urunForm.altUrunler,"3k_yol_cizgi_tineri.php", "3K Yol Çizgi Tineri");
addOption(document.urunForm.altUrunler,"3k_epoksi_tiner.php", "3K Epoksi Tiner");
}
if(document.urunForm.urunGrubu.value == '88'){
addOption(document.urunForm.altUrunler,"turksan_marley_yapistirici.php", "Türksan Marley & Parke Yapıştırıcısı");
addOption(document.urunForm.altUrunler,"gorkem_marley_parke_yapistirici.php", "Görkem Marley & Parke Yapıştırıcısı");
addOption(document.urunForm.altUrunler,"gorkem_tutkal.php", "Görkem Tutkal");
}
if(document.urunForm.urunGrubu.value == '90'){
addOption(document.urunForm.altUrunler,"3k_epoksi_son_kat.php", "3K Epoksi Son Kat Boya");
addOption(document.urunForm.altUrunler,"3k_epoksi_astar.php", "3K Epoksi Astar Boya");
addOption(document.urunForm.altUrunler,"3k_epoksi_zemin_kaplama.php", "3K Epoksi Zemin Kaplama SELF LEVELLING");
addOption(document.urunForm.altUrunler,"3k_epoksi_zemin_emprenye_astari.php", "3K Epoksi Zemin Emprenye Astarı");
}
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 Özel Astar");
addOption(document.urunForm.altUrunler,"3k_lite_solvent_bazli.php", "3K Lite Solvent Bazlı Dış Cephe");
addOption(document.urunForm.altUrunler,"3k_trafik_yol_cizgi_boyasi.php", "3K Trafik Yol Çizgi Boyası");
}
}
////////////////// 

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);
}
