﻿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(){
            }
    });
}

$(document).ready(function() {
    $('#currencyconverter').dialog({ autoOpen: false, minHeight: 200, title: 'Currency Converter' });
});

function ShowConverter(thevalue) {
    $('#currencyconverter').html('<iframe src=\"http:\/\/www.foreignexchangeresource.com/currency-converter.php?curr1=GBP&amt='+thevalue+'&expressedas=EUR&size=250\"  width=\"100%\" height=\"200\" border=\"0\" marginwidth=\"0\" marginheight=\"0\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" scrolling=\"No\"><\/iframe>');
    $('#currencyconverter').dialog('open');
}

              

