﻿function RedirectBuyNow(id) {
    $.post("/Catalog/RedirectBuy", { id: id },
    function(response) {
    if (response != null) {
            window.open(response, 'tostore', 'height=600, width=800, resizable=1, toolbar=1, status=1, location=1, scrollbars=1');
        }
    },
    "json");
}

function RedirectToStore(link) {
    $.post("/Home/GoToStore", { link: link },
    function(response) {
        if (response != null) {
            window.open(response, 'tostore', 'height=600, width=800, resizable=1, toolbar=1, status=1, location=1, scrollbars=1');
        }
    },
    "json");
}

function RedirectCoupon(id) {
    parent.location = "/Catalog/Coupon/" + id;    
}