function loadLang(id) {
    //id is passes when the user clicks on the tabs
    if (id){
      writeCookie('lang',id,0);
     
      }
      //if id is not passed a null is passed. usually first time when user visits the page called from onload so read cookie to set value
      else{
      var ulang= readCookie('lang');
      //alert ('Lang received ' + ulang);
      if (null == ulang){
          id = 'en';
      }
      else {
      id = ulang;
      }
      // alert ('Ulang set to ' + id);
	  var init_dest ='http://'+fnGetDomain(dest)+'/multilingual/'+id;
	  // window.location.replace(init_dest);
	  // alert (init_dest);
       }
    }
