﻿function OpenQuickview(href) {
    var oWnd = radopen(href, null);
    oWnd.set_width(400); oWnd.set_height(400);
    oWnd.Center();
}
function QuickViewLoaded(sender, eventArgs) {
    setTimeout(function() {
        try { sender.autoSize(); } catch (e) { }
        /*try { sender.Center(); } catch (e) { }*/
        ResizeIframe();
    }, 100);
}
function OpenClearance(href) {
    var oWnd = radopen(href, "clearance");    
    oWnd.set_modal(true);
    oWnd.set_title("Clearance Item Return Policy");
    oWnd.SetSize(400, 200);
    oWnd.Center();
    ResizeIframe();
}
function ResizeIframe() {
    if ($.browser.safari || $.browser.opera) {
        $('iframe').each(
            function(index, Element) {
                $(Element).height($(Element).parent().height());
            }
        );
    }
}
