﻿function ChangeManufacturer(location, type) {
    if (type.toLowerCase() == "cca") {
        if (location != 0) {
            switch (location) {
                case "all":
                    window.location = "Devices.aspx?showall=true";
                    break;
                case "recent":
                    window.location = "Devices.aspx?showrecent=true";
                    break;
                case "datacards":
                    window.location = "Devices.aspx?showdatacards=true";
                    break;
                case "comingsoon":
                    window.location = "ComingSoon.aspx?showcomingsoon=true";
                    break;
                default:
                    window.location = "Devices.aspx?ManufacturerId=" + location;
                    break;
            };
        };
    }
    else {
        if (location != 0) {
            switch (location) {
                case "all":
                    top.location.href = wsaUrl;
                    break;
                case "datacards":
                    top.location.href = datacardsUrl;
                    break;
                default:
                    top.location.href = location;
                    break;
                
            }
        }
    };
};