function updatesize() { refa = document.forms['form1'].elements['garmentId']; refb = document.forms['form1'].elements['garmentSize']; refc = document.forms['form1'].elements['garmentColorId']; refb.options.length = 0; valt = new String(refa[refa.selectedIndex].value).split(","); valdfarg = refc[refc.selectedIndex].value; alternativ = valt[4] + '_' + valdfarg; switch(alternativ) { case '12_1': refb.options[0] = new Option('S','S') refb.options[1] = new Option('M','M') refb.options[2] = new Option('L','L') refb.options[3] = new Option('XL','XL') refb.options[4] = new Option('XXL','XXL') break; case '15_1': refb.options[0] = new Option('S','S') refb.options[1] = new Option('M','M') refb.options[2] = new Option('L','L') refb.options[3] = new Option('XL','XL') break; case '44_1': refb.options[0] = new Option('S','S') refb.options[1] = new Option('M','M') refb.options[2] = new Option('L','L') refb.options[3] = new Option('XL','XL') refb.options[4] = new Option('XXL','XXL') break; case '39_1': refb.options[0] = new Option('S','S') refb.options[1] = new Option('M','M') refb.options[2] = new Option('L','L') refb.options[3] = new Option('XL','XL') break; case '24_1': refb.options[0] = new Option('S','S') refb.options[1] = new Option('M','M') refb.options[2] = new Option('L','L') refb.options[3] = new Option('XL','XL') break; case '32_1': refb.options[0] = new Option('S','S') refb.options[1] = new Option('M','M') refb.options[2] = new Option('L','L') refb.options[3] = new Option('XL','XL') refb.options[4] = new Option('XXL','XXL') break; case '35_1': refb.options[0] = new Option('YXS','YXS') refb.options[1] = new Option('YS','YS') refb.options[2] = new Option('YM','YM') refb.options[3] = new Option('YL','YL') refb.options[4] = new Option('YXL','YXL') break; case '37_1': refb.options[0] = new Option('6 mån','6 mån') refb.options[1] = new Option('12 mån','12 mån') refb.options[2] = new Option('18 mån','18 mån') break; case '40_1': refb.options[0] = new Option('S','S') refb.options[1] = new Option('M','M') refb.options[2] = new Option('L','L') refb.options[3] = new Option('XL','XL') refb.options[4] = new Option('XXl','XXl') break; case '45_1': refb.options[0] = new Option('6 mån','6 mån') refb.options[1] = new Option('12 mån','12 mån') refb.options[2] = new Option('18 mån','18 mån') break; case '12_2': refb.options[0] = new Option('S','S') refb.options[1] = new Option('M','M') refb.options[2] = new Option('L','L') refb.options[3] = new Option('XL','XL') refb.options[4] = new Option('XXL','XXL') break; case '15_2': refb.options[0] = new Option('S','S') refb.options[1] = new Option('M','M') refb.options[2] = new Option('L','L') refb.options[3] = new Option('XL','XL') break; case '44_2': break; case '39_2': break; case '24_2': refb.options[0] = new Option('S','S') refb.options[1] = new Option('M','M') refb.options[2] = new Option('L','L') refb.options[3] = new Option('XL','XL') break; case '32_2': break; case '35_2': refb.options[0] = new Option('YXS','YXS') refb.options[1] = new Option('YS','YS') refb.options[2] = new Option('YM','YM') refb.options[3] = new Option('YL','YL') break; case '37_2': break; case '40_2': refb.options[0] = new Option('S','S') refb.options[1] = new Option('M','M') refb.options[2] = new Option('L','L') refb.options[3] = new Option('XL','XL') refb.options[4] = new Option('XXL','XXL') break; case '45_2': break; case '12_3': break; case '15_3': break; case '44_3': break; case '39_3': break; case '24_3': break; case '32_3': break; case '35_3': break; case '37_3': break; case '40_3': break; case '45_3': break; case '12_4': refb.options[0] = new Option('S','S') refb.options[1] = new Option('M','M') refb.options[2] = new Option('L','L') refb.options[3] = new Option('XL','XL') refb.options[4] = new Option('XXL','XXL') break; case '15_4': break; case '44_4': break; case '39_4': break; case '24_4': refb.options[0] = new Option('S','S') refb.options[1] = new Option('M','M') refb.options[2] = new Option('L','L') refb.options[3] = new Option('XL','XL') break; case '32_4': break; case '35_4': refb.options[0] = new Option('YXS','YXS') refb.options[1] = new Option('YS','YS') refb.options[2] = new Option('YM','YM') refb.options[3] = new Option('YL','YL') refb.options[4] = new Option('YXL','YXL') break; case '37_4': break; case '40_4': break; case '45_4': break; case '12_5': refb.options[0] = new Option('S','S') refb.options[1] = new Option('M','M') refb.options[2] = new Option('L','L') refb.options[3] = new Option('XL','XL') refb.options[4] = new Option('XXL','XXL') break; case '15_5': break; case '44_5': refb.options[0] = new Option('S','S') refb.options[1] = new Option('M','M') refb.options[2] = new Option('L','L') refb.options[3] = new Option('XL','XL') refb.options[4] = new Option('XXL','XXL') break; case '39_5': refb.options[0] = new Option('S','S') refb.options[1] = new Option('M','M') refb.options[2] = new Option('L','L') refb.options[3] = new Option('XL','XL') break; case '24_5': break; case '32_5': break; case '35_5': break; case '37_5': break; case '40_5': break; case '45_5': break; case '12_6': refb.options[0] = new Option('S','S') refb.options[1] = new Option('M','M') refb.options[2] = new Option('L','L') refb.options[3] = new Option('XL','XL') refb.options[4] = new Option('XXL','XXL') break; case '15_6': break; case '44_6': break; case '39_6': break; case '24_6': break; case '32_6': break; case '35_6': refb.options[0] = new Option('YXS','YXS') refb.options[1] = new Option('YS','YS') refb.options[2] = new Option('YM','YM') refb.options[3] = new Option('YL','YL') refb.options[4] = new Option('YXL','YXL') break; case '37_6': break; case '40_6': break; case '45_6': break; case '12_7': refb.options[0] = new Option('S','S') refb.options[1] = new Option('M','M') refb.options[2] = new Option('L','L') refb.options[3] = new Option('XL','XL') refb.options[4] = new Option('XXL','XXL') break; case '15_7': break; case '44_7': break; case '39_7': break; case '24_7': break; case '32_7': break; case '35_7': break; case '37_7': break; case '40_7': break; case '45_7': break; case '12_8': refb.options[0] = new Option('S','S') refb.options[1] = new Option('M','M') refb.options[2] = new Option('L','L') refb.options[3] = new Option('XL','XL') refb.options[4] = new Option('XXL','XXL') break; case '15_8': break; case '44_8': break; case '39_8': break; case '24_8': break; case '32_8': break; case '35_8': break; case '37_8': break; case '40_8': break; case '45_8': break; case '12_9': refb.options[0] = new Option('S','S') refb.options[1] = new Option('M','M') refb.options[2] = new Option('L','L') refb.options[3] = new Option('XL','XL') refb.options[4] = new Option('XXL','XXL') break; case '15_9': break; case '44_9': refb.options[0] = new Option('S','S') refb.options[1] = new Option('M','M') refb.options[2] = new Option('L','L') refb.options[3] = new Option('XL','XL') refb.options[4] = new Option('XXL','XXL') break; case '39_9': refb.options[0] = new Option('S','S') refb.options[1] = new Option('M','M') refb.options[2] = new Option('L','L') refb.options[3] = new Option('XL','XL') break; case '24_9': refb.options[0] = new Option('S','S') refb.options[1] = new Option('M','M') refb.options[2] = new Option('L','L') refb.options[3] = new Option('XL','XL') break; case '32_9': break; case '35_9': break; case '37_9': refb.options[0] = new Option('6 mån','6 mån') refb.options[1] = new Option('12 mån','12 mån') refb.options[2] = new Option('18 mån','18 mån') break; case '40_9': break; case '45_9': refb.options[0] = new Option('6 mån','6 mån') refb.options[1] = new Option('12 mån','12 mån') refb.options[2] = new Option('18 mån','18 mån') break; case '12_10': refb.options[0] = new Option('S','S') refb.options[1] = new Option('M','M') refb.options[2] = new Option('L','L') refb.options[3] = new Option('XL','XL') refb.options[4] = new Option('XXL','XXL') break; case '15_10': break; case '44_10': break; case '39_10': break; case '24_10': break; case '32_10': break; case '35_10': break; case '37_10': break; case '40_10': break; case '45_10': break; case '12_11': refb.options[0] = new Option('S','S') refb.options[1] = new Option('M','M') refb.options[2] = new Option('L','L') refb.options[3] = new Option('XL','XL') refb.options[4] = new Option('XXL','XXL') break; case '15_11': break; case '44_11': break; case '39_11': break; case '24_11': break; case '32_11': break; case '35_11': break; case '37_11': break; case '40_11': break; case '45_11': break; case '12_12': refb.options[0] = new Option('S','S') refb.options[1] = new Option('M','M') refb.options[2] = new Option('L','L') refb.options[3] = new Option('XL','XL') refb.options[4] = new Option('XXL','XXL') break; case '15_12': break; case '44_12': refb.options[0] = new Option('S','S') refb.options[1] = new Option('M','M') refb.options[2] = new Option('L','L') refb.options[3] = new Option('XL','XL') refb.options[4] = new Option('XXL','XXL') break; case '39_12': refb.options[0] = new Option('S','S') refb.options[1] = new Option('M','M') refb.options[2] = new Option('L','L') refb.options[3] = new Option('XL','XL') break; case '24_12': break; case '32_12': break; case '35_12': break; case '37_12': break; case '40_12': break; case '45_12': break; case '12_15': break; case '15_15': break; case '44_15': break; case '39_15': break; case '24_15': break; case '32_15': break; case '35_15': break; case '37_15': break; case '40_15': break; case '45_15': break; case '12_16': break; case '15_16': break; case '44_16': break; case '39_16': break; case '24_16': break; case '32_16': break; case '35_16': break; case '37_16': break; case '40_16': break; case '45_16': break; case '12_25': break; case '15_25': break; case '44_25': break; case '39_25': break; case '24_25': break; case '32_25': break; case '35_25': break; case '37_25': refb.options[0] = new Option('6 mån','6 mån') refb.options[1] = new Option('12 mån','12 mån') refb.options[2] = new Option('18 mån','18 mån') break; case '40_25': break; case '45_25': refb.options[0] = new Option('6 mån','6 mån') refb.options[1] = new Option('12 mån','12 mån') refb.options[2] = new Option('18 mån','18 mån') break; case '12_26': refb.options[0] = new Option('S','S') refb.options[1] = new Option('M','M') refb.options[2] = new Option('L','L') refb.options[3] = new Option('XL','XL') refb.options[4] = new Option('XXL','XXL') break; case '15_26': break; case '44_26': break; case '39_26': break; case '24_26': break; case '32_26': break; case '35_26': break; case '37_26': break; case '40_26': break; case '45_26': break; case '12_24': break; case '15_24': break; case '44_24': break; case '39_24': break; case '24_24': break; case '32_24': break; case '35_24': break; case '37_24': break; case '40_24': break; case '45_24': break; case '12_20': break; case '15_20': break; case '44_20': break; case '39_20': break; case '24_20': break; case '32_20': break; case '35_20': break; case '37_20': break; case '40_20': break; case '45_20': break; case '12_21': break; case '15_21': break; case '44_21': break; case '39_21': break; case '24_21': break; case '32_21': break; case '35_21': break; case '37_21': break; case '40_21': break; case '45_21': break; case '12_22': break; case '15_22': break; case '44_22': break; case '39_22': break; case '24_22': break; case '32_22': break; case '35_22': break; case '37_22': break; case '40_22': break; case '45_22': break; case '12_23': break; case '15_23': break; case '44_23': break; case '39_23': break; case '24_23': break; case '32_23': break; case '35_23': break; case '37_23': break; case '40_23': break; case '45_23': break; } } function updatecolor() { refa = document.forms['form1'].elements['garmentId']; refc = document.forms['form1'].elements['garmentColorId']; refc.options.length = 0; valt = new String(refa[refa.selectedIndex].value).split(","); switch(valt[4]) { case '12': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Mörkblå','5') refc.options[4] = new Option('Blå','6') refc.options[5] = new Option('Brun','7') refc.options[6] = new Option('Gul','8') refc.options[7] = new Option('Rosa','9') refc.options[8] = new Option('Grön','10') refc.options[9] = new Option('Orange','11') refc.options[10] = new Option('Gråmelerad','12') refc.options[11] = new Option('Armygreen','26') break; case '15': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '44': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '39': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '24': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Rosa','9') break; case '32': refc.options[0] = new Option('Svart','1') break; case '35': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Blå','6') break; case '37': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '40': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '45': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '12': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Mörkblå','5') refc.options[4] = new Option('Blå','6') refc.options[5] = new Option('Brun','7') refc.options[6] = new Option('Gul','8') refc.options[7] = new Option('Rosa','9') refc.options[8] = new Option('Grön','10') refc.options[9] = new Option('Orange','11') refc.options[10] = new Option('Gråmelerad','12') refc.options[11] = new Option('Armygreen','26') break; case '15': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '44': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '39': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '24': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Rosa','9') break; case '32': refc.options[0] = new Option('Svart','1') break; case '35': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Blå','6') break; case '37': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '40': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '45': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '12': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Mörkblå','5') refc.options[4] = new Option('Blå','6') refc.options[5] = new Option('Brun','7') refc.options[6] = new Option('Gul','8') refc.options[7] = new Option('Rosa','9') refc.options[8] = new Option('Grön','10') refc.options[9] = new Option('Orange','11') refc.options[10] = new Option('Gråmelerad','12') refc.options[11] = new Option('Armygreen','26') break; case '15': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '44': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '39': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '24': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Rosa','9') break; case '32': refc.options[0] = new Option('Svart','1') break; case '35': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Blå','6') break; case '37': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '40': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '45': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '12': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Mörkblå','5') refc.options[4] = new Option('Blå','6') refc.options[5] = new Option('Brun','7') refc.options[6] = new Option('Gul','8') refc.options[7] = new Option('Rosa','9') refc.options[8] = new Option('Grön','10') refc.options[9] = new Option('Orange','11') refc.options[10] = new Option('Gråmelerad','12') refc.options[11] = new Option('Armygreen','26') break; case '15': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '44': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '39': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '24': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Rosa','9') break; case '32': refc.options[0] = new Option('Svart','1') break; case '35': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Blå','6') break; case '37': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '40': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '45': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '12': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Mörkblå','5') refc.options[4] = new Option('Blå','6') refc.options[5] = new Option('Brun','7') refc.options[6] = new Option('Gul','8') refc.options[7] = new Option('Rosa','9') refc.options[8] = new Option('Grön','10') refc.options[9] = new Option('Orange','11') refc.options[10] = new Option('Gråmelerad','12') refc.options[11] = new Option('Armygreen','26') break; case '15': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '44': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '39': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '24': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Rosa','9') break; case '32': refc.options[0] = new Option('Svart','1') break; case '35': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Blå','6') break; case '37': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '40': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '45': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '12': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Mörkblå','5') refc.options[4] = new Option('Blå','6') refc.options[5] = new Option('Brun','7') refc.options[6] = new Option('Gul','8') refc.options[7] = new Option('Rosa','9') refc.options[8] = new Option('Grön','10') refc.options[9] = new Option('Orange','11') refc.options[10] = new Option('Gråmelerad','12') refc.options[11] = new Option('Armygreen','26') break; case '15': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '44': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '39': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '24': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Rosa','9') break; case '32': refc.options[0] = new Option('Svart','1') break; case '35': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Blå','6') break; case '37': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '40': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '45': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '12': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Mörkblå','5') refc.options[4] = new Option('Blå','6') refc.options[5] = new Option('Brun','7') refc.options[6] = new Option('Gul','8') refc.options[7] = new Option('Rosa','9') refc.options[8] = new Option('Grön','10') refc.options[9] = new Option('Orange','11') refc.options[10] = new Option('Gråmelerad','12') refc.options[11] = new Option('Armygreen','26') break; case '15': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '44': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '39': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '24': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Rosa','9') break; case '32': refc.options[0] = new Option('Svart','1') break; case '35': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Blå','6') break; case '37': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '40': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '45': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '12': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Mörkblå','5') refc.options[4] = new Option('Blå','6') refc.options[5] = new Option('Brun','7') refc.options[6] = new Option('Gul','8') refc.options[7] = new Option('Rosa','9') refc.options[8] = new Option('Grön','10') refc.options[9] = new Option('Orange','11') refc.options[10] = new Option('Gråmelerad','12') refc.options[11] = new Option('Armygreen','26') break; case '15': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '44': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '39': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '24': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Rosa','9') break; case '32': refc.options[0] = new Option('Svart','1') break; case '35': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Blå','6') break; case '37': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '40': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '45': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '12': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Mörkblå','5') refc.options[4] = new Option('Blå','6') refc.options[5] = new Option('Brun','7') refc.options[6] = new Option('Gul','8') refc.options[7] = new Option('Rosa','9') refc.options[8] = new Option('Grön','10') refc.options[9] = new Option('Orange','11') refc.options[10] = new Option('Gråmelerad','12') refc.options[11] = new Option('Armygreen','26') break; case '15': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '44': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '39': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '24': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Rosa','9') break; case '32': refc.options[0] = new Option('Svart','1') break; case '35': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Blå','6') break; case '37': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '40': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '45': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '12': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Mörkblå','5') refc.options[4] = new Option('Blå','6') refc.options[5] = new Option('Brun','7') refc.options[6] = new Option('Gul','8') refc.options[7] = new Option('Rosa','9') refc.options[8] = new Option('Grön','10') refc.options[9] = new Option('Orange','11') refc.options[10] = new Option('Gråmelerad','12') refc.options[11] = new Option('Armygreen','26') break; case '15': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '44': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '39': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '24': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Rosa','9') break; case '32': refc.options[0] = new Option('Svart','1') break; case '35': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Blå','6') break; case '37': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '40': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '45': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '12': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Mörkblå','5') refc.options[4] = new Option('Blå','6') refc.options[5] = new Option('Brun','7') refc.options[6] = new Option('Gul','8') refc.options[7] = new Option('Rosa','9') refc.options[8] = new Option('Grön','10') refc.options[9] = new Option('Orange','11') refc.options[10] = new Option('Gråmelerad','12') refc.options[11] = new Option('Armygreen','26') break; case '15': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '44': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '39': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '24': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Rosa','9') break; case '32': refc.options[0] = new Option('Svart','1') break; case '35': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Blå','6') break; case '37': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '40': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '45': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '12': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Mörkblå','5') refc.options[4] = new Option('Blå','6') refc.options[5] = new Option('Brun','7') refc.options[6] = new Option('Gul','8') refc.options[7] = new Option('Rosa','9') refc.options[8] = new Option('Grön','10') refc.options[9] = new Option('Orange','11') refc.options[10] = new Option('Gråmelerad','12') refc.options[11] = new Option('Armygreen','26') break; case '15': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '44': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '39': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '24': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Rosa','9') break; case '32': refc.options[0] = new Option('Svart','1') break; case '35': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Blå','6') break; case '37': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '40': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '45': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '12': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Mörkblå','5') refc.options[4] = new Option('Blå','6') refc.options[5] = new Option('Brun','7') refc.options[6] = new Option('Gul','8') refc.options[7] = new Option('Rosa','9') refc.options[8] = new Option('Grön','10') refc.options[9] = new Option('Orange','11') refc.options[10] = new Option('Gråmelerad','12') refc.options[11] = new Option('Armygreen','26') break; case '15': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '44': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '39': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '24': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Rosa','9') break; case '32': refc.options[0] = new Option('Svart','1') break; case '35': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Blå','6') break; case '37': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '40': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '45': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '12': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Mörkblå','5') refc.options[4] = new Option('Blå','6') refc.options[5] = new Option('Brun','7') refc.options[6] = new Option('Gul','8') refc.options[7] = new Option('Rosa','9') refc.options[8] = new Option('Grön','10') refc.options[9] = new Option('Orange','11') refc.options[10] = new Option('Gråmelerad','12') refc.options[11] = new Option('Armygreen','26') break; case '15': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '44': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '39': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '24': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Rosa','9') break; case '32': refc.options[0] = new Option('Svart','1') break; case '35': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Blå','6') break; case '37': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '40': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '45': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '12': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Mörkblå','5') refc.options[4] = new Option('Blå','6') refc.options[5] = new Option('Brun','7') refc.options[6] = new Option('Gul','8') refc.options[7] = new Option('Rosa','9') refc.options[8] = new Option('Grön','10') refc.options[9] = new Option('Orange','11') refc.options[10] = new Option('Gråmelerad','12') refc.options[11] = new Option('Armygreen','26') break; case '15': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '44': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '39': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '24': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Rosa','9') break; case '32': refc.options[0] = new Option('Svart','1') break; case '35': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Blå','6') break; case '37': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '40': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '45': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '12': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Mörkblå','5') refc.options[4] = new Option('Blå','6') refc.options[5] = new Option('Brun','7') refc.options[6] = new Option('Gul','8') refc.options[7] = new Option('Rosa','9') refc.options[8] = new Option('Grön','10') refc.options[9] = new Option('Orange','11') refc.options[10] = new Option('Gråmelerad','12') refc.options[11] = new Option('Armygreen','26') break; case '15': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '44': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '39': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '24': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Rosa','9') break; case '32': refc.options[0] = new Option('Svart','1') break; case '35': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Blå','6') break; case '37': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '40': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '45': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '12': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Mörkblå','5') refc.options[4] = new Option('Blå','6') refc.options[5] = new Option('Brun','7') refc.options[6] = new Option('Gul','8') refc.options[7] = new Option('Rosa','9') refc.options[8] = new Option('Grön','10') refc.options[9] = new Option('Orange','11') refc.options[10] = new Option('Gråmelerad','12') refc.options[11] = new Option('Armygreen','26') break; case '15': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '44': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '39': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '24': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Rosa','9') break; case '32': refc.options[0] = new Option('Svart','1') break; case '35': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Blå','6') break; case '37': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '40': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '45': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '12': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Mörkblå','5') refc.options[4] = new Option('Blå','6') refc.options[5] = new Option('Brun','7') refc.options[6] = new Option('Gul','8') refc.options[7] = new Option('Rosa','9') refc.options[8] = new Option('Grön','10') refc.options[9] = new Option('Orange','11') refc.options[10] = new Option('Gråmelerad','12') refc.options[11] = new Option('Armygreen','26') break; case '15': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '44': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '39': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '24': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Rosa','9') break; case '32': refc.options[0] = new Option('Svart','1') break; case '35': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Blå','6') break; case '37': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '40': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '45': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '12': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Mörkblå','5') refc.options[4] = new Option('Blå','6') refc.options[5] = new Option('Brun','7') refc.options[6] = new Option('Gul','8') refc.options[7] = new Option('Rosa','9') refc.options[8] = new Option('Grön','10') refc.options[9] = new Option('Orange','11') refc.options[10] = new Option('Gråmelerad','12') refc.options[11] = new Option('Armygreen','26') break; case '15': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '44': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '39': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '24': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Rosa','9') break; case '32': refc.options[0] = new Option('Svart','1') break; case '35': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Blå','6') break; case '37': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '40': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '45': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '12': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Mörkblå','5') refc.options[4] = new Option('Blå','6') refc.options[5] = new Option('Brun','7') refc.options[6] = new Option('Gul','8') refc.options[7] = new Option('Rosa','9') refc.options[8] = new Option('Grön','10') refc.options[9] = new Option('Orange','11') refc.options[10] = new Option('Gråmelerad','12') refc.options[11] = new Option('Armygreen','26') break; case '15': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '44': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '39': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '24': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Rosa','9') break; case '32': refc.options[0] = new Option('Svart','1') break; case '35': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Blå','6') break; case '37': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '40': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '45': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '12': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Mörkblå','5') refc.options[4] = new Option('Blå','6') refc.options[5] = new Option('Brun','7') refc.options[6] = new Option('Gul','8') refc.options[7] = new Option('Rosa','9') refc.options[8] = new Option('Grön','10') refc.options[9] = new Option('Orange','11') refc.options[10] = new Option('Gråmelerad','12') refc.options[11] = new Option('Armygreen','26') break; case '15': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '44': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '39': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Mörkblå','5') refc.options[2] = new Option('Rosa','9') refc.options[3] = new Option('Gråmelerad','12') break; case '24': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Rosa','9') break; case '32': refc.options[0] = new Option('Svart','1') break; case '35': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') refc.options[2] = new Option('Röd','4') refc.options[3] = new Option('Blå','6') break; case '37': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; case '40': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Vit','2') break; case '45': refc.options[0] = new Option('Svart','1') refc.options[1] = new Option('Rosa','9') refc.options[2] = new Option('Ljusblå','25') break; } } function updateb() { updatecolor(); updatesize(); } function updatePic() { document.images['front'].src='http://www.attitude.se/img/orginal/laddar.jpg'; // visa laddar bild.. document.images['back'].src='http://www.attitude.se/img/orginal/laddar.jpg'; // visa laddar bild.. ref = document.forms['form1']; t1 = ref.elements['text'].value; t2 = ref.elements['text2'].value; y1 = 65; // offset y2 = 7; // hur mkt längre ner skall nästa text vara? c1 = ref.elements['fontColor'][ref.elements['fontColor'].selectedIndex].value; f1 = ref.elements['font'][ref.elements['font'].selectedIndex].value; // förändring för att splitta filnamn börjar här f1 = f1.replace(/\s+/g,'_'); parts = ref.elements['garmentId'][ref.elements['garmentId'].selectedIndex].value.split(/,/); plagg_typ = parts[2].replace(/\s+/g,'_') + '_' + ref.elements['garmentColorId'][ref.elements['garmentColorId'].selectedIndex].value imgfront = plagg_typ + '_front.jpg'; imgback = plagg_typ + '_back.jpg'; // här var det klart //Konvertera till hex if(c1 == 'Vit') c1 = 'ffffff'; if(c1 == 'Svart') c1 = '000000'; if(c1 == 'Gul') c1 = 'ffcc00'; if(c1 == 'Orange') c1 = 'ff9900'; if(c1 == 'Röd') c1 = 'cc0000'; if(c1 == 'Ljusblå') c1 = 'B0D5F9'; if(c1 == 'Mörkblå') c1 = '003399'; if(c1 == 'Grön') c1 = '006600'; if(c1 == 'Neonrosa') c1 = 'FF99FF'; if(c1 == 'Silver') c1 = 'cccccc'; if(c1 == 'Guld') c1 = 'cc9900'; if(c1 == 'Neongrön') c1 = '00ff00'; if(c1 == 'Brun') c1 = 'ac562b'; //Klart order = ref.elements['placement'][ref.elements['placement'].selectedIndex].value; str1=str2=''; switch(order) { case 'Bröst': str1='img/front.php'+'?text1='+t1+'&text2='+t2+'&ypos1='+y1+'&ypos2='+y2+'&font1='+f1+'&startimg='+imgfront+'&col1='+c1; document.images['front'].src=str1; break; case 'Litet Brösttryck': str1='img/front.php'+'?text1='+t1+'&text2='+t2+'&ypos1='+y1+'&ypos2='+y2+'&font1='+f1+'&startimg='+imgfront+'&col1='+c1+'&placement=lb'; document.images['front'].src=str1; break; case 'Rad 1: Litet Brösttryck, Rad 2: Rygg': str1 = 'img/front.php'+'?text1='+t1+'&ypos1='+y1+'&font1='+f1+'&startimg='+imgfront+'&col1='+c1+'&placement=lb'; str2 = 'img/front.php'+'?text1='+t2+'&ypos1='+y1+'&font1='+f1+'&startimg='+imgback+'&col1='+c1; document.images['front'].src=str1; document.images['back'].src=str2; break; case 'Rygg': str2='img/front.php'+'?text1='+t1+'&text2='+t2+'&ypos1='+y1+'&ypos2='+y2+'&font1='+f1+'&startimg='+imgback+'&col1='+c1; document.images['back'].src=str2; break; case 'Rad 1: Bröst, Rad 2: Rygg': str1 = 'img/front.php'+'?text1='+t1+'&ypos1='+y1+'&font1='+f1+'&startimg='+imgfront+'&col1='+c1; str2 = 'img/front.php'+'?text1='+t2+'&ypos1='+y1+'&font1='+f1+'&startimg='+imgback+'&col1='+c1; document.images['front'].src=str1; document.images['back'].src=str2; break; } //document.getElementById("textlayer").innerHTML=str1 + '
\n ' + str2; }