﻿// JScript File

function switchLanguage(langid)
        {
            var href=location.href;
            var ilink=document.getElementById("SwitchLanguageLink");
            href=href.toLowerCase();
            var found=href.search(/langtype/);

            if (found != -1)
            {
                if (langid=='1033')
                   href=href.replace(/1033/,"1036");
                else
                   href=href.replace(/1036/,'1033');
            }
            else
            {
                if (langid=='1033')
                    href=href + '&langtype=1036';
                else
                    href=href + '&langtype=1033';
            }
        location.href=href;
        }