   sizeCup = new Array("AA", "A", "B","C","D","E", "F", "G");
   listSizes=new Array(12);
   listSizes[0]=new Array("75-77","77-79","79-81", "81-83", "83-85", "85-87",  "87-89",  "89-90");
   listSizes[1]=new Array("80-82","82-84","84-86", "86-88", "88-90", "90-92",  "92-94",  "94-96");
   listSizes[2]=new Array("85-87","87-89","89-91", "91-93", "93-95", "95-97",  "97-99",  "99-101");
   listSizes[3]=new Array("90-92","92-94","94-96", "96-98", "98-100", "100-102",  "102-104",  "104-106");
   listSizes[4]=new Array("95-97","97-99","99-101", "101-103", "103-105", "105-107",  "107-109",  "109-111");
   listSizes[5]=new Array("100-102","102-104","104-106", "106-108", "108-110", "110-112",  "112-114",  "114-116");
   listSizes[6]=new Array("105-107","107-109","109-111", "111-113", "113-115", "115-117",  "117-119",  "119-121");
   listSizes[7]=new Array("","112-114","114-116", "116-118", "118-120", "120-122",  "122-124",  "124-126");
   listSizes[8]=new Array("","117-119","119-121", "121-123", "123-125", "125-127",  "127-129",  "129-130");
   listSizes[9]=new Array("","122-124","124-126", "126-128", "128-130", "130-132",  "132-134",  "134-136");
   listSizes[10]=new Array("","","129-131", "131-133", "133-135", "135-137",  "137-139",  "139-141" );                       
   listSizes[11]=new Array("","","134-136", "136-138", "138-140", "140-142",  "142-144",  "144-146" );
   countrySize= new Array(6);
   countrySize[0]=new Array("65","70","75","80","85","90","95","100","105","110","115","120");
   countrySize[1]=new Array("80","85","90","95","100","105","110","115","120","125","135","140");
   countrySize[2]=new Array("32", "34", "36" , "38", "40", "42", "44", "46", "48", "50", "52" , "54");

   countrySize[4]=new Array("S","M", "L", "XL", "S/M", "M/L", "1X/2X", "3X/4X", "O/S", "O/SQUEEN" );
   countrySize[5]=new Array("34-36", "38-40", "42-44", "46-48", "34-38", "40-44", "46-48", "50-52","34-44","46-52"  );
   countrySize[6]=new Array("30", "34", "38", "42", "32", "38", "44", "48", "34","46");


   sizesPants=new Array(7);
   
   sizesPants[0]=new Array(2)
   sizesPants[0][0]=new Array("80-86", "87-96", "97-100");
   sizesPants[0][1]=new Array("0", "4", "8");

   sizesPants[1]=new Array(2)
   sizesPants[1][0]=new Array("85-90", "91-96", "97-100");
   sizesPants[1][1]=new Array("4", "1", "8");

   sizesPants[2]=new Array(2)
   sizesPants[2][0]=new Array("85-90", "91-97", "98-102");
   sizesPants[2][1]=new Array("8", "4", "2");

   sizesPants[3]=new Array(2)
   sizesPants[3][0]=new Array("85-91", "91-96", "97-102");
   sizesPants[3][1]=new Array("8", "5", "2");

   sizesPants[4]=new Array(2)
   sizesPants[4][0]=new Array("95-102", "103-108", "109-113");
   sizesPants[4][1]=new Array("6", "4", "4");

   sizesPants[5]=new Array(2)
   sizesPants[5][0]=new Array("95-106", "107-113", "112-123");
   sizesPants[5][1]=new Array("6", "4", "9");

   sizesPants[6]=new Array(2)
   sizesPants[6][0]=new Array("107-113", "114-122", "123-126");
   sizesPants[6][1]=new Array("9", "9", "7");

   q="";
function changeBreast()
{
  document.bra.breast2.options[0].text="";

  for (var i=1;i<9; i++)
  {
    document.bra.breast2.options[i].text=listSizes[document.bra.breast.selectedIndex-1][i-1];
  }
  

} 

function calcCup()
{
 if (listSizes[document.cup.underBreast.selectedIndex][document.cup.Breast.selectedIndex-1]!="")
 {
   document.cup.Breast.selectedIndex>0 ? document.cup.result_cup.value= sizeCup[document.cup.Breast.selectedIndex-1] : document.cup.result_cup.value="";
 }
 else
 {
  document.cup.result_cup.value="";
 }
}

function calcBra()
{
  
q=countrySize[document.bra.country.selectedIndex][document.bra.breast.selectedIndex-1];
 if (listSizes[document.bra.breast.selectedIndex][document.bra.breast2.selectedIndex-1]!="")
 {
   document.bra.breast2.selectedIndex>0 ? document.bra.sizeBra.value= q + " - " +sizeCup[document.bra.breast2.selectedIndex-1] : document.bra.sizeBra.value="";
 }
 else
 {
  document.bra.sizeBra.value="";
 }
 if (document.bra.breast.selectedIndex==0)
  {
     document.bra.sizeBra.value="";
  } 


}

function calcPants()
{
  
  //document.pants.sizePants.value=document.pants.sizeHip.value;
  document.pants.sizePants.value=countrySize[document.pants.country.selectedIndex + 4][1*sizesPants[document.pants.sizeHip.selectedIndex][1][document.pants.sizeWaist.selectedIndex]];
  if (document.pants.sizeHip.selectedIndex==0)
  {
     document.pants.sizePants.value=" ";
  }
}

function changeWaist()
{
  for (var i=0;i<3; i++)
  {
    document.pants.sizeWaist.options[i].text=sizesPants[document.pants.sizeHip.selectedIndex-1][0][i];
  }
if (document.pants.sizeHip.selectedIndex==0)
  {
     document.pants.sizePants.value=" ";
  }
}
