function langPath(fm_lang, to_lang) {
    var chgpath = document.location.href;
    chgpath = chgpath.replace(fm_lang, to_lang);
    return chgpath;
}

/**

function langPath(org_part,  des_ind_part){ 
    var domain="";
    var realpath="";
    var locapath = document.location.href;
    var sc_path = 'http://scuat.mpfa.org.hk/utf8/';
    var org_path = 'http://'; 

    org_part = "/" + org_part + "/";
    des_ind_part = "/" + des_ind_part + "/";

    if (locapath.toString().search(sc_path)!= -1){
            if(des_ind_part == "/chinese/"){
                des_ind_part = "/tc_chi/";
            } 
            realpath = sitepath.replace(sc_path, org_path);  
    }else{
            if(des_ind_part == '/chinese/'){
                des_ind_part = "/sc_chi/";
            } 
            realpath  = locapath; 
    }


    realpath = realpath.replace(org_part, des_ind_part);

    if(des_ind_part == "/sc_chi/"){
        realpath = realpath.replace("/sc_chi/", "/tc_chi/");
        realpath = realpath.replace(org_path, sc_path); 
    }  
    
   // if (locapath.toString().search("comparison_simple")!= -1){
   // 	realpath = realpath.replace("comparison_simple", "index");
   // 	return realpath;
   // }
        
    return realpath;
}

**/