var dlg = null;
function CaricaFoto(img){
  foto1= new Image();
  foto1.src=(img);
  viewFotos(img);
}
function viewFotos(img){
 wid=foto1.width+120;
 hei=foto1.height+150;
 features = "width="+wid+",height="+hei;
 features2 = "width=650,height=800,scrollbars=1";
 if (dlg && dlg.open) {
    dlg.close();
 }
  if((foto1.width<10)&&(foto1.height<10)){
    dlg = window.open ("","Details",features2);
    dlg.moveTo(0,0);
  }
  else{
  dlg = window.open ("","Details",features);
  dlg.moveTo(0,0);
  }
 dlg.document.write("<html><head><title>Sensual Mystique Size Chart</title></head>");
 dlg.document.write("<body bgcolor=#FFFFFF><center>");
 dlg.document.write("<a href=# onClick=window.close();>");
 dlg.document.write("<img src=\"http://site.sultrywear.com/images/popup-header.gif\" border=0>");
 dlg.document.write("<p>");
 dlg.document.write("<table id=\"sultry\" cellspacing=\"0\" align=\"center\">");
 dlg.document.write(" <tr class=\"tabletitle\">");
 dlg.document.write("   <td colspan=\"6\"><font size=4>Sensual Mystique<br>Lingerie Sizes</td>");
 dlg.document.write(" </tr>");
 dlg.document.write(" <tr class=\"subtitle\">");
 dlg.document.write("   <td>Size</td>");
 dlg.document.write("   <td>Cup Size</td>");
 dlg.document.write("   <td>Bust</td>");
 dlg.document.write("   <td>Waist</td>");
 dlg.document.write("    <td>Hips</td>");
 dlg.document.write("   <td>Equivalent Dress Size</td>");
 dlg.document.write(" </tr>");
 dlg.document.write(" <tr class=\"data\">");
 dlg.document.write("   <td>Small</td>");
 dlg.document.write("   <td>A - B</td>");
 dlg.document.write("   <td>32 - 34</td>");
 dlg.document.write("   <td>23 - 25</td>");
 dlg.document.write("   <td>34 - 36</td>");
 dlg.document.write("   <td>6 - 8</td>");
 dlg.document.write("   </tr>");
 dlg.document.write("  <tr class=\"data\">");
 dlg.document.write("   <td>Medium</td>");
 dlg.document.write("   <td>B - C</td>");
 dlg.document.write("   <td>34 - 36</td>");
 dlg.document.write("   <td>25.5 - 28</td>");
 dlg.document.write("   <td>36 - 38</td>");
 dlg.document.write("   <td>10 - 12</td>");
 dlg.document.write(" </tr>");
 dlg.document.write(" <tr class=\"data\">");
 dlg.document.write("   <td>Large</td>");
 dlg.document.write("   <td>C</td>");
 dlg.document.write("   <td>36 - 38</td>");
 dlg.document.write("   <td>28 - 31</td>");
 dlg.document.write("   <td>38 - 40</td>");
 dlg.document.write("   <td>14</td>");
 dlg.document.write(" </tr>");
 dlg.document.write(" <tr class=\"data\">");
 dlg.document.write("   <td>X-Large</td>");
 dlg.document.write("   <td>C</td>");
 dlg.document.write("   <td>38 - 40</td>");
 dlg.document.write("   <td>31 - 34</td>");
 dlg.document.write("   <td>40 - 42</td>");
 dlg.document.write("   <td>16 - 18</td>");
 dlg.document.write("   </tr>");
 dlg.document.write(" <tr class=\"data\">");
 dlg.document.write("   <td>One Size</td>");
 dlg.document.write("   <td>A - C</td>");
 dlg.document.write("   <td>32 - 38</td>");
 dlg.document.write("   <td>23 - 31</td>");
 dlg.document.write("   <td>34 - 40</td>");
 dlg.document.write("   <td>6 - 14</td>");
 dlg.document.write("   </tr>");
 dlg.document.write(" <tr class=\"data\">");
 dlg.document.write("   <td>S/M</td>");
 dlg.document.write("   <td>A - B</td>");
 dlg.document.write("   <td>32 - 36</td>");
 dlg.document.write("   <td>23 - 28</td>");
 dlg.document.write("   <td>34 - 38</td>");
 dlg.document.write("   <td>6 - 12</td>");
 dlg.document.write("   </tr>");
 dlg.document.write(" <tr class=\"data\">");
 dlg.document.write("   <td>M/L</td>");
 dlg.document.write("   <td>B - C</td>");
 dlg.document.write("   <td>34 - 38</td>");
 dlg.document.write("   <td>25.5 - 31</td>");
 dlg.document.write("   <td>36 - 40</td>");
 dlg.document.write("   <td>10 - 14</td>");
 dlg.document.write("   </tr>");
 dlg.document.write("</table>");
 dlg.document.write("<br>");
 dlg.document.write("</body></html>");
}
