

//ProductDesc
function showPopup( popupPage, content )
{
    var query = '';
    if( content )
    {
        query = '&type=' + content;
        if( content == "coupon25" )
        {
            query += '&cm_sp=WeddingSpecialOffer-_-FreeSuitTux-_-Coupon';
        }
    }
    if( popupPage == "popupSamples" )
    {
        content = _arrSaved.reverse();
    }
    else if( popupPage == "popupItems" )
    {
        var itemsViewed = retrieveCookie("itemsViewed");
        var itemsViewedList = new Array();
        for( i = 0; i < itemsViewed; i++ )
        {
            itemsViewedList.push(retrieveCookie("itemsViewed-" + (i + 1)));
        }
        content = itemsViewedList;
        popupPage = "popupSamples"
    }


    var strUrl = 'popup.jsp?popupPage=' + popupPage + '&content=' + content + query;

    // note IE requires MooresPopup to have no spaces.
    var win = window.open(strUrl, "MooresPopup", "scrollbars=1,menubar=0,resizable=0,status=0,toolbar=0,width=690,height=600");
    if( win && win.focus )
    {
        win.focus();
    }
}

function popup(alink, windowname)
{
    if( !window.focus )
    {
        return true;
    }

    var href;
    if( typeof(alink) == 'string' )
    {
        href=alink;
    }
    else
    {
        href=alink.href;
    }

    if( !windowname )
    {
        windowname = 'MooresPopup';
    }
    window.open(href, windowname, 'height=600,width=690,location=no,top=40,left=40,scrollbars=yes,menubar=no,toolbar=no,resizable=no,directories=no,status=no').focus();

    return false;
}

