var enlargedView;

function showEnlargedView(productID, productName) {
    if (enlargedView != null && !enlargedView.closed) {
        enlargedView.focus();
    } else {
        enlargedView = window.open('', "enlargedView", "toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=520,height=550");
        enlargedView.document.open();
        enlargedView.document.writeln("<html>");
        enlargedView.document.writeln("<head>");
				enlargedView.document.writeln("<link rel=\"stylesheet\" type=\"text\/css\" href=\"\/css\/dna.css\">");
        enlargedView.document.writeln("<title>" + productName + "<\/title>");
        enlargedView.document.writeln("<\/head>");
        enlargedView.document.writeln("<body topmargin=\"0\">");
        enlargedView.document.writeln("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
        enlargedView.document.writeln("<tr><td><img src=\"\/images\/clear.gif\" width=\"4\" height=\"4\"><\/td><\/tr>");
        enlargedView.document.writeln("<tr>");
        enlargedView.document.writeln("<td>");
        enlargedView.document.writeln("<font face=\"verdana, arial, helvetica, geneva\" color=\"#666666\" size=\"1\">");
        enlargedView.document.writeln("<strong>" + productName + "<\/strong>");
        enlargedView.document.writeln("<\/font>");
        enlargedView.document.writeln("<\/td>");
        enlargedView.document.writeln("<\/tr>");
        enlargedView.document.writeln("<tr><td><img src=\"\/images\/clear.gif\" width=\"4\" height=\"4\"><\/td><\/tr>");
        enlargedView.document.writeln("<tr>");
        enlargedView.document.writeln("<td><a href=\"javascript:self.close()\"><img src=\"\/images\/products\/" + productID + "_enlarged_view.jpg\" width=\"500\" height=\"500\" border=\"0\" alt=\"" + productName + "\"></a><\/td>");
        enlargedView.document.writeln("<\/tr>");
        enlargedView.document.writeln("<tr><td><img src=\"\/images\/clear.gif\" width=\"4\" height=\"4\"><\/td><\/tr>");
        enlargedView.document.writeln("<tr>");
        enlargedView.document.writeln("<td>");
        enlargedView.document.writeln("<font face=\"verdana, arial, helvetica, geneva\" color=\"#666666\" size=\"1\">");
        enlargedView.document.writeln("<a href=\"javascript:self.close()\">close window</a>");
        enlargedView.document.writeln("<\/font>");
        enlargedView.document.writeln("<\/td>");
        enlargedView.document.writeln("<\/tr>");
        enlargedView.document.writeln("<\/table>");
        enlargedView.document.writeln("<\/body>");
        enlargedView.document.writeln("<\/html>");
        enlargedView.document.close();
    }
}

var sizeChart;

function showSizeChartMale() {
    if (sizeChart != null && !sizeChart.closed) {
        sizeChart.focus();
    } else {
        sizeChart = window.open("", "sizeChart", "toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=300,height=200");
        sizeChart.document.open();
        sizeChart.document.writeln("<html>");
        sizeChart.document.writeln("<head>");
        sizeChart.document.writeln("<link rel=\"stylesheet\" type=\"text\/css\" href=\"\/css\/dna.css\">");
        sizeChart.document.writeln("<title>Size Chart<\/title>");
        sizeChart.document.writeln("<\/head>");
        sizeChart.document.writeln("<body>");
        sizeChart.document.writeln("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" height=\"100%\">");
        sizeChart.document.writeln("<tr>");
        sizeChart.document.writeln("<td align=\"center\" valign=\"top\">");
        sizeChart.document.writeln("<table border=\"0\" cellpadding=\"4\" cellspacing=\"1\" width=\"280\" bgcolor=\"#cdcdcd\">");
        sizeChart.document.writeln("<tr>");
        sizeChart.document.writeln("<td bgcolor=\"#6c4868\" colspan=\"2\">");
        sizeChart.document.writeln("<font face=\"verdana, arial, helvetica, geneva\" color=\"#ffffff\" size=\"1\">");
        sizeChart.document.writeln("<strong>size chart<\/strong>");
        sizeChart.document.writeln("<\/font>");
        sizeChart.document.writeln("<\/td>");
        sizeChart.document.writeln("<\/tr>");
        sizeChart.document.writeln("<tr>");
        sizeChart.document.writeln("<td bgcolor=\"#e9e9e9\" width=\"60\" align=\"right\">");
        sizeChart.document.writeln("<font face=\"verdana, arial, helvetica, geneva\" color=\"#666666\" size=\"1\">");
        sizeChart.document.writeln("Small:");
        sizeChart.document.writeln("<\/font>");
        sizeChart.document.writeln("<\/td>");
        sizeChart.document.writeln("<td bgcolor=\"#e9e9e9\" width=\"220\">");
        sizeChart.document.writeln("<font face=\"verdana, arial, helvetica, geneva\" color=\"#666666\" size=\"1\">");
        sizeChart.document.writeln("fits waist 30&quot; to 32&quot;");
        sizeChart.document.writeln("<\/font>");
        sizeChart.document.writeln("<\/td>");
        sizeChart.document.writeln("<\/tr>");
        sizeChart.document.writeln("<tr>");
        sizeChart.document.writeln("<td bgcolor=\"#ffffff\" width=\"60\" align=\"right\">");
        sizeChart.document.writeln("<font face=\"verdana, arial, helvetica, geneva\" color=\"#666666\" size=\"1\">");
        sizeChart.document.writeln("Medium:");
        sizeChart.document.writeln("<\/font>");
        sizeChart.document.writeln("<\/td>");
        sizeChart.document.writeln("<td bgcolor=\"#ffffff\" width=\"220\">");
        sizeChart.document.writeln("<font face=\"verdana, arial, helvetica, geneva\" color=\"#666666\" size=\"1\">");
        sizeChart.document.writeln("fits waist 34&quot; to 36&quot;");
        sizeChart.document.writeln("<\/font>");
        sizeChart.document.writeln("<\/td>");
        sizeChart.document.writeln("<\/tr>");
        sizeChart.document.writeln("<tr>");
        sizeChart.document.writeln("<td bgcolor=\"#e9e9e9\" width=\"60\" align=\"right\">");
        sizeChart.document.writeln("<font face=\"verdana, arial, helvetica, geneva\" color=\"#666666\" size=\"1\">");
        sizeChart.document.writeln("Large:");
        sizeChart.document.writeln("<\/font>");
        sizeChart.document.writeln("<\/td>");
        sizeChart.document.writeln("<td bgcolor=\"#e9e9e9\" width=\"220\">");
        sizeChart.document.writeln("<font face=\"verdana, arial, helvetica, geneva\" color=\"#666666\" size=\"1\">");
        sizeChart.document.writeln("fits waist 38&quot; to 40&quot;");
        sizeChart.document.writeln("<\/font>");
        sizeChart.document.writeln("<\/td>");
        sizeChart.document.writeln("<\/tr>");
        sizeChart.document.writeln("<tr>");
        sizeChart.document.writeln("<td bgcolor=\"#ffffff\" width=\"60\" align=\"right\">");
        sizeChart.document.writeln("<font face=\"verdana, arial, helvetica, geneva\" color=\"#666666\" size=\"1\">");
        sizeChart.document.writeln("XLarge:");
        sizeChart.document.writeln("<\/font>");
        sizeChart.document.writeln("<\/td>");
        sizeChart.document.writeln("<td bgcolor=\"#ffffff\" width=\"220\">");
        sizeChart.document.writeln("<font face=\"verdana, arial, helvetica, geneva\" color=\"#666666\" size=\"1\">");
        sizeChart.document.writeln("fits waist 42&quot; to 44&quot;");
        sizeChart.document.writeln("<\/font>");
        sizeChart.document.writeln("<\/td>");
        sizeChart.document.writeln("<\/tr>");
        sizeChart.document.writeln("<tr>");
        sizeChart.document.writeln("<td bgcolor=\"#e9e9e9\" width=\"60\" align=\"right\">");
        sizeChart.document.writeln("<font face=\"verdana, arial, helvetica, geneva\" color=\"#666666\" size=\"1\">");
        sizeChart.document.writeln("XXLarge:");
        sizeChart.document.writeln("<\/font>");
        sizeChart.document.writeln("<\/td>");
        sizeChart.document.writeln("<td bgcolor=\"#e9e9e9\" width=\"220\">");
        sizeChart.document.writeln("<font face=\"verdana, arial, helvetica, geneva\" color=\"#666666\" size=\"1\">");
        sizeChart.document.writeln("fits waist 46&quot; to 48&quot;");
        sizeChart.document.writeln("<\/font>");
        sizeChart.document.writeln("<\/td>");
        sizeChart.document.writeln("<\/tr>");
        sizeChart.document.writeln("<\/table>");
        sizeChart.document.writeln("<\/td>");
        sizeChart.document.writeln("<\/tr>");
        sizeChart.document.writeln("<tr>");
        sizeChart.document.writeln("<td>");
        sizeChart.document.writeln("<font face=\"verdana, arial, helvetica, geneva\" size=\"1\">");
        sizeChart.document.writeln("<a href=\"javascript:self.close();\">close window</a>");
        sizeChart.document.writeln("<\/font>");
        sizeChart.document.writeln("<\/td>");
        sizeChart.document.writeln("<\/tr>");
        sizeChart.document.writeln("<\/table>");
        sizeChart.document.writeln("<\/body>");
        sizeChart.document.writeln("<\/html>");
        sizeChart.document.close();
    }
}

function showSizeChartFemale() {
    if (sizeChart != null && !sizeChart.closed) {
        sizeChart.focus();
    } else {
        sizeChart = window.open("", "sizeChart", "toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=300,height=200");
        sizeChart.document.open();
        sizeChart.document.writeln("<html>");
        sizeChart.document.writeln("<head>");
				sizeChart.document.writeln("<link rel=\"stylesheet\" type=\"text\/css\" href=\"\/css\/dna.css\">");
        sizeChart.document.writeln("<title>Size Chart<\/title>");
        sizeChart.document.writeln("<\/head>");
        sizeChart.document.writeln("<body>");
        sizeChart.document.writeln("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" height=\"100%\">");
        sizeChart.document.writeln("<tr>");
        sizeChart.document.writeln("<td align=\"center\" valign=\"top\">");
        sizeChart.document.writeln("<table border=\"0\" cellpadding=\"4\" cellspacing=\"1\" width=\"280\" bgcolor=\"#cdcdcd\">");
        sizeChart.document.writeln("<tr>");
        sizeChart.document.writeln("<td bgcolor=\"#6c4868\" colspan=\"2\">");
        sizeChart.document.writeln("<font face=\"verdana, arial, helvetica, geneva\" color=\"#ffffff\" size=\"1\">");
        sizeChart.document.writeln("<strong>size chart<\/strong>");
        sizeChart.document.writeln("<\/font>");
        sizeChart.document.writeln("<\/td>");
        sizeChart.document.writeln("<\/tr>");
        sizeChart.document.writeln("<tr>");
        sizeChart.document.writeln("<td bgcolor=\"#e9e9e9\" width=\"60\" align=\"right\">");
        sizeChart.document.writeln("<font face=\"verdana, arial, helvetica, geneva\" color=\"#666666\" size=\"1\">");
        sizeChart.document.writeln("Small:");
        sizeChart.document.writeln("<\/font>");
        sizeChart.document.writeln("<\/td>");
        sizeChart.document.writeln("<td bgcolor=\"#e9e9e9\" width=\"220\">");
        sizeChart.document.writeln("<font face=\"verdana, arial, helvetica, geneva\" color=\"#666666\" size=\"1\">");
        sizeChart.document.writeln("fits up to 38&quot; hip");
        sizeChart.document.writeln("<\/font>");
        sizeChart.document.writeln("<\/td>");
        sizeChart.document.writeln("<\/tr>");
        sizeChart.document.writeln("<tr>");
        sizeChart.document.writeln("<td bgcolor=\"#ffffff\" width=\"60\" align=\"right\">");
        sizeChart.document.writeln("<font face=\"verdana, arial, helvetica, geneva\" color=\"#666666\" size=\"1\">");
        sizeChart.document.writeln("Medium:");
        sizeChart.document.writeln("<\/font>");
        sizeChart.document.writeln("<\/td>");
        sizeChart.document.writeln("<td bgcolor=\"#ffffff\" width=\"220\">");
        sizeChart.document.writeln("<font face=\"verdana, arial, helvetica, geneva\" color=\"#666666\" size=\"1\">");
        sizeChart.document.writeln("fits up to 42&quot; hip");
        sizeChart.document.writeln("<\/font>");
        sizeChart.document.writeln("<\/td>");
        sizeChart.document.writeln("<\/tr>");
        sizeChart.document.writeln("<tr>");
        sizeChart.document.writeln("<td bgcolor=\"#e9e9e9\" width=\"60\" align=\"right\">");
        sizeChart.document.writeln("<font face=\"verdana, arial, helvetica, geneva\" color=\"#666666\" size=\"1\">");
        sizeChart.document.writeln("Large:");
        sizeChart.document.writeln("<\/font>");
        sizeChart.document.writeln("<\/td>");
        sizeChart.document.writeln("<td bgcolor=\"#e9e9e9\" width=\"220\">");
        sizeChart.document.writeln("<font face=\"verdana, arial, helvetica, geneva\" color=\"#666666\" size=\"1\">");
        sizeChart.document.writeln("fits up to 46&quot; hip");
        sizeChart.document.writeln("<\/font>");
        sizeChart.document.writeln("<\/td>");
        sizeChart.document.writeln("<\/tr>");
        sizeChart.document.writeln("<tr>");
        sizeChart.document.writeln("<td bgcolor=\"#ffffff\" width=\"60\" align=\"right\">");
        sizeChart.document.writeln("<font face=\"verdana, arial, helvetica, geneva\" color=\"#666666\" size=\"1\">");
        sizeChart.document.writeln("XLarge:");
        sizeChart.document.writeln("<\/font>");
        sizeChart.document.writeln("<\/td>");
        sizeChart.document.writeln("<td bgcolor=\"#ffffff\" width=\"220\">");
        sizeChart.document.writeln("<font face=\"verdana, arial, helvetica, geneva\" color=\"#666666\" size=\"1\">");
        sizeChart.document.writeln("fits up to 50&quot; hip");
        sizeChart.document.writeln("<\/font>");
        sizeChart.document.writeln("<\/td>");
        sizeChart.document.writeln("<\/tr>");
        sizeChart.document.writeln("<tr>");
        sizeChart.document.writeln("<td bgcolor=\"#e9e9e9\" width=\"60\" align=\"right\">");
        sizeChart.document.writeln("<font face=\"verdana, arial, helvetica, geneva\" color=\"#666666\" size=\"1\">");
        sizeChart.document.writeln("XXLarge:");
        sizeChart.document.writeln("<\/font>");
        sizeChart.document.writeln("<\/td>");
        sizeChart.document.writeln("<td bgcolor=\"#e9e9e9\" width=\"220\">");
        sizeChart.document.writeln("<font face=\"verdana, arial, helvetica, geneva\" color=\"#666666\" size=\"1\">");
        sizeChart.document.writeln("fits up to 54&quot; hip");
        sizeChart.document.writeln("<\/font>");
        sizeChart.document.writeln("<\/td>");
        sizeChart.document.writeln("<\/tr>");
        sizeChart.document.writeln("<\/table>");
        sizeChart.document.writeln("<\/td>");
        sizeChart.document.writeln("<\/tr>");
        sizeChart.document.writeln("<tr>");
        sizeChart.document.writeln("<td>");
        sizeChart.document.writeln("<font face=\"verdana, arial, helvetica, geneva\" size=\"1\">");
        sizeChart.document.writeln("<a href=\"javascript:self.close();\">close window</a>");
        sizeChart.document.writeln("<\/font>");
        sizeChart.document.writeln("<\/td>");
        sizeChart.document.writeln("<\/tr>");
        sizeChart.document.writeln("<\/table>");
        sizeChart.document.writeln("<\/body>");
        sizeChart.document.writeln("<\/html>");
        sizeChart.document.close();
    }
}
