function checkVal(lang)
{
	if(lang == 'ff_sm' || lang == 'ff_sm' )
	{
		if ( lang == 'ff_sm')
   		{
			alert("Please Select Your Language");
		}
		else if(lang == 'sm_china')
		{
			alert("Bitte wählen Sie Ihre Sprache");
		}
		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 == "copy")
   	{	
   		sectionumber = 'copy';		
   	}
   	// If page is Privacy Statements.
   	else if( currsection2 == "disclaimer")
   	{
   		sectionumber = 'disclaimer';		
   	}
	else if( currsection2 == "imprint")
   	{
   		sectionumber = 'imprint';		
   	}

      	else
   	{
   		sectionumber = 'sitemap';
   	}
   	
   }
   else
   {
   	sectionumber = currsection;
   }
   
   if( currsection2 != '-1')
   { 
	
   	sectionumber = sectionumber + "."+currsection2;
	
   }

	if( currsection3 == 'y')
   {
   	sectionumber = sectionumber + "."+"y";
	
   }  

    
   
   if( currsection3rd != '-1')
   {
   	sectionumber = sectionumber + "."+currsection3rd;
	
   }  

	   if( currsection4th != '-1')
   {
   	sectionumber = sectionumber + "."+currsection4th;
   }


   
  
   if ( lang == 'sm')
   {
	
   	for(i=0 ; i < EnglishLinks.length ; i++)
   	{  
    	   
   	   if( EnglishLinks[i][0]== sectionumber )
   	   {
   	   	window.location.href = EnglishLinks[i][1] ;
   	   }
   	}
   		
   }
   
   if ( lang == 'sm_china')
   {
	
   	for(i=0 ; i < DELinks.length ; i++)
   	{
   	   if( DELinks[i][0]== sectionumber )
   	   {
   	   	window.location.href = DELinks[i][1] ;
   	   }
   	}
   		
   }
}
   
   
