var rcsProd = "Services / Methodology";
var faProd = ["Machine Automation","Building Automation","Integrated Panels"];
var ddProd = ["OMRON - Industrial / Safety Components","OMRON - Industrial Automation Products","OMRON - Sensing Solution","Pro-Face - LT 3000 Series","Pro-Face - ST Series (Simple Touch)","Pro-Face - ST 3000 Series","Pro-Face - GP 2000 Series","Pro-Face - GP 3000 Series","Pro-Face - PS Series Type A","Cognex - Checker","Cognex - Insight Vision Sensors","Cognex - ID Reader","Kevin - Counters","Kevin - Digital Indicators","Kevin - Remote I/O Unit (Scanner)","Kevin - Peak Detectors","Kevin - Powder Flow Sensor","Kevin - Printer Moulde","Kevin - Temperature Transmitters"];
	var sdProd = ["Software Division - Calibration Organizer"];
	
	
	function prodEnqCombo(cat,prod)
	{
		if(cat=="1")
		{
			cat="rcs";
		}else if(cat=="2")
		{
			cat="fa";
		}else if(cat=="3")
		{
			cat="dd";
		}else if(cat=="4")
		{
			cat="sd";
		}


		
		if(cat=="na")
		{
			str="<select name='product' class='jmp_menu_enquiry' id='product' disabled>";
			str += "<option value='---- Select Product ----' selected>---- Select Product ----</option>";			
			str +="</select>";	
			
			document.getElementById('prodCombo').innerHTML = str;
		}else if(cat=="rcs")
		{
			//alert(rcsProd.length);
			document.getElementById('product').disabled = false;
			
			str="<select name='product' class='jmp_menu_enquiry' id='product'>";
			str += "<option value='"+ rcsProd +"'>"+ rcsProd + "</option>";			
			str +="</select>";	
			
			document.getElementById('prodCombo').innerHTML = str;
		}else if(cat=="fa")
		{
			//alert(faProd.length);
			document.getElementById('product').disabled = false;
			
			str="<select name='product' class='jmp_menu_enquiry' id='product'>";
			for(i=0;i<faProd.length;i++)
			{
				if(i==0 && prod==211)
				{
					str += "<option value='"+ faProd[i] +"' selected>"+ faProd[i] + "</option>";
				}else if(i==1 && prod==222)
				{
					str += "<option value='"+ faProd[i] +"' selected>"+ faProd[i] + "</option>";
				}else if(i==2 && prod==223)
				{
					str += "<option value='"+ faProd[i] +"' selected>"+ faProd[i] + "</option>";
				}else
				{
					str += "<option value='"+ faProd[i] +"'>"+ faProd[i] + "</option>";
				}
			}
			str +="</select>";	
			
			document.getElementById('prodCombo').innerHTML = str;
		}else if(cat=="dd")
		{
			//alert(ddProd.length);
			
			document.getElementById('product').disabled = false;
			
			str="<select name='product' class='jmp_menu_enquiry' id='product'>";
			for(i=0;i<ddProd.length;i++)
			{
				if(i==0 && prod==311)
				{
					//alert(i+" - "+cat+" - "+prod);
					str += "<option value='"+ ddProd[i] +"' selected>OMRON Products</option>";
				}else if(i==1 && prod==311)
				{
					//str += "<option value='"+ ddProd[i] +"' selected>OMRON Products</option>";
				}else if(i==2 && prod==311)
				{
					//str += "<option value='"+ ddProd[i] +"' selected>OMRON Products</option>";
				}else if(i==3 && prod==3211)
				{
					str += "<option value='"+ ddProd[i] +"' selected>"+ ddProd[i] + "</option>";
				}else if(i==4 && prod==3212)
				{
					str += "<option value='"+ ddProd[i] +"' selected>"+ ddProd[i] + "</option>";
				}else if(i==5 && prod==3213)
				{
					str += "<option value='"+ ddProd[i] +"' selected>"+ ddProd[i] + "</option>";
				}else if(i==6 && prod==3214)
				{
					str += "<option value='"+ ddProd[i] +"' selected>"+ ddProd[i] + "</option>";
				}else if(i==7 && prod==3215)
				{
					str += "<option value='"+ ddProd[i] +"' selected>"+ ddProd[i] + "</option>";
				}else if(i==8 && prod==3221)
				{
					str += "<option value='"+ ddProd[i] +"' selected>"+ ddProd[i] + "</option>";
				}else if(i==9 && prod==331)
				{
					str += "<option value='"+ ddProd[i] +"' selected>"+ ddProd[i] + "</option>";
				}else if(i==10 && prod==332)
				{
					str += "<option value='"+ ddProd[i] +"' selected>"+ ddProd[i] + "</option>";
				}else if(i==11 && prod==333)
				{
					str += "<option value='"+ ddProd[i] +"' selected>"+ ddProd[i] + "</option>";
				}else if(i==12 && prod==341)
				{
					str += "<option value='"+ ddProd[i] +"' selected>"+ ddProd[i] + "</option>";
				}else if(i==13 && prod==342)
				{
					str += "<option value='"+ ddProd[i] +"' selected>"+ ddProd[i] + "</option>";
				}else if(i==14 && prod==343)
				{
					str += "<option value='"+ ddProd[i] +"' selected>"+ ddProd[i] + "</option>";
				}else if(i==15 && prod==344)
				{
					str += "<option value='"+ ddProd[i] +"' selected>"+ ddProd[i] + "</option>";
				}else if(i==16 && prod==345)
				{
					str += "<option value='"+ ddProd[i] +"' selected>"+ ddProd[i] + "</option>";
				}else if(i==17 && prod==346)
				{
					str += "<option value='"+ ddProd[i] +"' selected>"+ ddProd[i] + "</option>";
				}else if(i==18 && prod==347)
				{
					str += "<option value='"+ ddProd[i] +"' selected>"+ ddProd[i] + "</option>";
				}else
				{
					str += "<option value='"+ ddProd[i] +"'>"+ ddProd[i] + "</option>";
				}
			}
			str +="</select>";	
			
			document.getElementById('prodCombo').innerHTML = str;
		}else if(cat=="sd")
		{
			//alert(sdProd.length);
			document.getElementById('product').disabled = false;
			
			str="<select name='product' class='jmp_menu_enquiry' id='product'>";
			for(i=0;i<sdProd.length;i++)
			{
				str += "<option value='"+ sdProd[i] +"'>"+ sdProd[i] + "</option>";
			}
			str +="</select>";	
			
			document.getElementById('prodCombo').innerHTML = str;		
		}
	}
	
	function changeCombo(cat)
	{
		//alert(document.getElementById('prodCombo').innerHTML);
		//alert(cat.toString());
		
		if(cat=="na")
		{
			str="<select name='product' class='jmp_menu_enquiry' id='product' disabled>";
			str += "<option value='---- Select Product ----' selected>---- Select Product ----</option>";			
			str +="</select>";	
			
			document.getElementById('prodCombo').innerHTML = str;
		}else if(cat=="rcs")
		{
			//alert(rcsProd.length);
			document.getElementById('product').disabled = false;
			
			str="<select name='product' class='jmp_menu_enquiry' id='product'>";
			str += "<option value='"+ rcsProd +"'>"+ rcsProd + "</option>";			
			str +="</select>";	
			
			document.getElementById('prodCombo').innerHTML = str;
		}else if(cat=="fa")
		{
			//alert(faProd.length);
			document.getElementById('product').disabled = false;
			
			str="<select name='product' class='jmp_menu_enquiry' id='product'>";
			for(i=0;i<faProd.length;i++)
			{
				str += "<option value='"+ faProd[i] +"'>"+ faProd[i] + "</option>";
			}
			str +="</select>";	
			
			document.getElementById('prodCombo').innerHTML = str;
		}else if(cat=="dd")
		{
			//alert(ddProd.length);
			document.getElementById('product').disabled = false;
			
			str="<select name='product' class='jmp_menu_enquiry' id='product'>";
			for(i=0;i<ddProd.length;i++)
			{
				str += "<option value='"+ ddProd[i] +"'>"+ ddProd[i] + "</option>";
			}
			str +="</select>";	
			
			document.getElementById('prodCombo').innerHTML = str;
		}else if(cat=="sd")
		{
			//alert(sdProd.length);
			document.getElementById('product').disabled = false;
			
			str="<select name='product' class='jmp_menu_enquiry' id='product'>";
			for(i=0;i<sdProd.length;i++)
			{
				str += "<option value='"+ sdProd[i] +"'>"+ sdProd[i] + "</option>";
			}
			str +="</select>";	
			
			document.getElementById('prodCombo').innerHTML = str;		
		}
	}
