function checkVal(lang)
{
	if(lang == 'ff_honeywell_fi' || lang == 'ff_honeywell_fi_en' )
	{
		if ( lang == 'ff_honeywell_fi_en')
   		{
			alert("Please Select Your Language");
		}
		else if(lang == 'ff_honeywell_fi')
		{
			alert("Valitse kieli");
		}
		document.choose_lang_right.selectlangright.focus();
		return (false);	  
	}	
	else
	{
	
		redirectURLFI(lang);
		return (true);	  
		
	}
}	

function redirectURLFI(lang)   
{         
      
      sectionumber = 0;
   if( currsection == '-1')
   {	
   	// If page is Terms & Condition.
   	if( currsection2 == "tc")
   	{	
   		sectionumber = 'tc';		
   	}
   	// If page is Privacy Statements.
   	else if( currsection2 == "ps")
   	{
   		sectionumber = 'ps';		
   	}
      	else
   	{
   		sectionumber = 'sitemap';
   	}
   	
   }
   else
   {
   	sectionumber = currsection;
   }
   
   if( currsection2 != '-1')
   {
   	sectionumber = sectionumber + "."+currsection2;
   }
   
   
   if( currsection3rd != '-1')
   {
   	sectionumber = sectionumber + "."+currsection3rd;
   }
   if( currsection4th != '-1')
   {
   	sectionumber = sectionumber + "."+currsection4th;
   	
   }
   
  
   if ( lang == 'honeywell_fi_en')
   {
	
   	for(i=0 ; i < EnglishLinks.length ; i++)
   	{  
    	   
   	   if( EnglishLinks[i][0]== sectionumber )
   	   {
   	   	window.location.href = EnglishLinks[i][1] ;
   	   }
   	}
   		
   }
   
   if ( lang == 'honeywell_fi')
   {
	
   	for(i=0 ; i < FILinks.length ; i++)
   	{
   	   if( FILinks[i][0]== sectionumber )
   	   {
   	   	window.location.href = FILinks[i][1] ;
   	   }
   	}
   		
   }
}
   
   
