	
//************* Function to bind(fill data) dropdownlist of technology on selection of an industry  *****************//
function bindddlTechnology()
{//alert('Hello');
	document.getElementById("spnMsg").innerHTML="";
	if(document.getElementById("ddlIndustry").value=='0')        //Condition if no industry selected
	{    
		document.getElementById("ddlTechnology").options[0].selected=true;
		document.getElementById("ddlTechnology").disabled=true;
	}
	else			//conditions if one industry is selected
	{		
		var ddlIndustryValue=document.getElementById("ddlIndustry").value;
		document.getElementById("ddlTechnology").disabled=false;
		var ddlTechnology=document.getElementById("ddlTechnology");
		switch(ddlIndustryValue)
		{
			case '1':  
				ddlTechnology.options[1] = new Option("Computing","1");  
				ddlTechnology.options[2] = new Option("Visualization","2");				
				break;
				
			case '2':
				ddlTechnology.options[1] = new Option("Computing","1");  
				ddlTechnology.options[2] = new Option("Visualization","2");				
				break;
			
			case '3':
				ddlTechnology.options[1] = new Option("Computing","1");  
				ddlTechnology.options[2] = new Option("Visualization","2");				
				break;
			case '4':
				ddlTechnology.options[1] = new Option("Computing","1");  
				ddlTechnology.options[2] = new Option("Visualization","2");				
				break;
			case '5':
				ddlTechnology.options[1] = new Option("Computing","1");  
				ddlTechnology.options[2] = new Option("Visualization","2");				
				break;	
			default:
				document.getElementById("ddlTechnology").disabled=true;
				break;
		}
	}        
}
//*************End of function to bind(fil data) dropdownlist of technology on selection of an industry  *****************//
		
		
//******************    Funciton to navigate the  solutions block pages    *******//
function navigateSolutionsPages()
{	
	//variable to store selected value of ddlTechnology dropdown list 
	var ddlTechnologyValue=ddlTechnology.options[ddlTechnology.selectedIndex].value;

	//condition to check whether both options selected or not
	if((document.getElementById("ddlIndustry").value==0) && (ddlTechnologyValue==0))
	{
		document.getElementById("spnMsg").innerHTML="Please select an industry.";		//Warning message on not selection of both conditions
	}
	else if(document.getElementById("ddlIndustry").value==0)
	{document.getElementById("spnMsg").innerHTML="Please select an industry.";}		//Warning message on not selection of industry
	else if(ddlTechnologyValue==0)
	{document.getElementById("spnMsg").innerHTML="Please choose a technology.";}    //Warning message on not selection of technology
	else
	{
		document.getElementById("spnMsg").innerHTML="";			//Clear the warning message from span
		var ddlIndustryValue=document.getElementById("ddlIndustry").value;	//variable to store selected value of ddlIndustry dropdown list 
		var navigateCode=ddlIndustryValue + ddlTechnologyValue;		//Variable to store the navigation code to navigate on appropriate page
		
		switch (navigateCode)
		{
			case '11':
				location.href="Solutions/GovernmentAndDefence/Computing.html";	break;

			case '12':
				location.href="Solutions/GovernmentAndDefence/Visualization.html";	break;

			case '21':
				location.href="Message.html?x=Solutions/2";	break;	
				//location.href="Solutions/OilAndGas/Computing.html";	break;

			case '22':
				//location.href="Message.html?x=Solutions/2";	break;
				location.href="Solutions/OilAndGas/Visualization.html";	break;

			case '31':
				location.href="Message.html?x=Solutions/3";	break;	
				//location.href="Solutions/FinancialServices/Computing.html";	break;

			case '32':
				location.href="Message.html?x=Solutions/3";	break;
				//location.href="Solutions/FinancialServices/Visualization.html"; break;

			case '41':
				location.href="Message.html?x=Solutions/4";	break;
				//location.href="Solutions/ManufacturingAndAutomotive/Computing.html";	break;

			case '42':
				location.href="Solutions/ManufacturingAndAutomotive/Visualization.html";	break;

			case '51':
				location.href="Message.html?x=Solutions/5";	break;
				//location.href="Solutions/Medical/Computing.html";	break;

			case '52':
				//location.href="Message.html?x=Solutions/5";	break;
				location.href="Solutions/Medical/Visualization.html";	break;

			default: break;
		}
	}	
}
//******************End of funciton to navigate solutions block pages   *******//
