﻿function SetLanguage(languageID) {
    $.ajax( {
            type: "POST", url: "/Default.aspx/SetLanguage", 
            data: "{'languageID' : '" + languageID + "'}",
            contentType: "application/json; charset=utf-8", 
            dataType: "json",
            success: function(msg){
                window.location.href=msg;
            },
            error: function(xhr, status, errorThrown) {
            },
            failure:  function(){
            }
    });
}
