function loadTyreWidths(defaultWidth)
{
    w = document.getElementById('tyreWidthId');
    p = document.getElementById('tyreProfileId');
    h = document.getElementById('tyreWheelId');
    s = document.getElementById('tyreSpeedId');
    o = w.options;
    w.length=27;
    //o[0]=n('--','0');o[1]=n('2','39');o[2]=n('30','16');o[3]=n('31','35');o[4]=n('32','17');o[5]=n('50','37');o[6]=n('125','18');o[7]=n('135','15');o[8]=n('145','14');o[9]=n('155','1');o[10]=n('165','2');o[11]=n('175','3');o[12]=n('185','4');o[13]=n('195','5');o[14]=n('205','6');o[15]=n('215','7');o[16]=n('225','8');o[17]=n('230','28');o[18]=n('235','9');o[19]=n('245','10');o[20]=n('255','11');o[21]=n('265','12');o[22]=n('275','13');o[23]=n('285','22');o[24]=n('295','23');o[25]=n('305','24');o[26]=n('315','25');o[27]=n('335','29');
	//o[0]=n('--','0');o[1]=n('30','16');o[2]=n('31','35');o[3]=n('32','17');o[4]=n('50','37');o[5]=n('125','18');o[6]=n('135','15');o[7]=n('145','14');o[8]=n('155','1');o[9]=n('165','2');o[10]=n('175','3');o[11]=n('185','4');o[12]=n('195','5');o[13]=n('205','6');o[14]=n('215','7');o[15]=n('225','8');o[16]=n('230','28');o[17]=n('235','9');o[18]=n('245','10');o[19]=n('255','11');o[20]=n('265','12');o[21]=n('275','13');o[22]=n('285','22');o[23]=n('295','23');o[24]=n('305','24');o[25]=n('315','25');o[26]=n('335','29');
	o[1]=n('50','37');o[2]=n('125','18');o[3]=n('135','15');o[4]=n('145','14');o[5]=n('155','1');o[6]=n('165','2');o[7]=n('175','3');o[8]=n('185','4');o[9]=n('195','5');o[10]=n('205','6');o[11]=n('215','7');o[12]=n('225','8');o[13]=n('230','28');o[14]=n('235','9');o[15]=n('245','10');o[16]=n('255','11');o[17]=n('265','12');o[18]=n('275','13');o[19]=n('285','22');o[20]=n('295','23');o[21]=n('305','24');o[22]=n('315','25');o[23]=n('335','29');

    for (i=0; i<w.length; i++) if (w[i].text == defaultWidth) w[i].selected = true; 
    p.length = 1; 
    p.options[0] = n('--','0'); 
    h.length = 1; 
    h.options[0] = n('--','0'); 
    s.length = 1; 
    s.options[0] = n('--','0'); 
} 
 
function loadTyreProfiles(defaultProfile) 
{ 
    w = document.getElementById('tyreWidthId'); 
    p = document.getElementById('tyreProfileId'); 
    h = document.getElementById('tyreWheelId'); 
    s = document.getElementById('tyreSpeedId'); 
    wv = w.value; 
    o  = p.options; 
 
    if (wv==0){p.length=0;o[0]=n('--','0')} 
    else if (wv==39){p.length=2;o[0]=n('--','0');o[1]=n('60','5');} 
    else if (wv==16){p.length=2;o[0]=n('--','0');o[1]=n('95','11');} 
    else if (wv==35){p.length=2;o[0]=n('--','0');o[1]=n('10','19');} 
    else if (wv==17){p.length=2;o[0]=n('--','0');o[1]=n('11','12');} 
    else if (wv==37){p.length=2;o[0]=n('--','0');o[1]=n('11','12');} 
    else if (wv==18){p.length=2;o[0]=n('--','0');o[1]=n('80','1');} 
    else if (wv==15){p.length=3;o[0]=n('--','0');o[1]=n('70','2');o[2]=n('80','1');} 
    else if (wv==14){p.length=4;o[0]=n('--','0');o[1]=n('65','3');o[2]=n('70','2');o[3]=n('80','1');} 
    else if (wv==1){p.length=6;o[0]=n('--','0');o[1]=n('50','7');o[2]=n('60','5');o[3]=n('65','3');o[4]=n('70','2');o[5]=n('80','1');} 
    else if (wv==2){p.length=8;o[0]=n('--','0');o[1]=n('50','7');o[2]=n('55','6');o[3]=n('60','5');o[4]=n('65','3');o[5]=n('70','2');o[6]=n('75','4');o[7]=n('80','1');} 
    else if (wv==3){p.length=8;o[0]=n('--','0');o[1]=n('50','7');o[2]=n('55','6');o[3]=n('60','5');o[4]=n('65','3');o[5]=n('70','2');o[6]=n('75','4');o[7]=n('80','1');} 
    else if (wv==4){p.length=8;o[0]=n('--','0');o[1]=n('50','7');o[2]=n('55','6');o[3]=n('60','5');o[4]=n('65','3');o[5]=n('70','2');o[6]=n('75','4');o[7]=n('80','1');} 
    else if (wv==5){p.length=10;o[0]=n('--','0');o[1]=n('40','9');o[2]=n('45','8');o[3]=n('50','7');o[4]=n('55','6');o[5]=n('60','5');o[6]=n('65','3');o[7]=n('70','2');o[8]=n('75','4');o[9]=n('80','1');} 
    else if (wv==6){p.length=11;o[0]=n('--','0');o[1]=n('35','13');o[2]=n('40','9');o[3]=n('45','8');o[4]=n('50','7');o[5]=n('55','6');o[6]=n('60','5');o[7]=n('65','3');o[8]=n('70','2');o[9]=n('75','4');o[10]=n('80','1');} 
    else if (wv==7){p.length=11;o[0]=n('--','0');o[1]=n('35','13');o[2]=n('40','9');o[3]=n('45','8');o[4]=n('50','7');o[5]=n('55','6');o[6]=n('60','5');o[7]=n('65','3');o[8]=n('70','2');o[9]=n('75','4');o[10]=n('80','1');} 
    else if (wv==8){p.length=10;o[0]=n('--','0');o[1]=n('35','13');o[2]=n('40','9');o[3]=n('45','8');o[4]=n('50','7');o[5]=n('55','6');o[6]=n('60','5');o[7]=n('65','3');o[8]=n('70','2');o[9]=n('75','4');} 
    else if (wv==28){p.length=2;o[0]=n('--','0');o[1]=n('55','6');} 
    else if (wv==9){p.length=12;o[0]=n('--','0');o[1]=n('30','14');o[2]=n('35','13');o[3]=n('40','9');o[4]=n('45','8');o[5]=n('50','7');o[6]=n('55','6');o[7]=n('60','5');o[8]=n('65','3');o[9]=n('70','2');o[10]=n('75','4');o[11]=n('85','10');} 
    else if (wv==10){p.length=9;o[0]=n('--','0');o[1]=n('35','13');o[2]=n('40','9');o[3]=n('45','8');o[4]=n('50','7');o[5]=n('55','6');o[6]=n('65','3');o[7]=n('70','2');o[8]=n('75','4');} 
    else if (wv==11){p.length=11;o[0]=n('--','0');o[1]=n('30','14');o[2]=n('35','13');o[3]=n('40','9');o[4]=n('45','8');o[5]=n('50','7');o[6]=n('55','6');o[7]=n('60','5');o[8]=n('65','3');o[9]=n('70','2');o[10]=n('75','4');} 
    else if (wv==12){p.length=9;o[0]=n('--','0');o[1]=n('30','14');o[2]=n('35','13');o[3]=n('40','9');o[4]=n('45','8');o[5]=n('60','5');o[6]=n('65','3');o[7]=n('70','2');o[8]=n('75','4');} 
    else if (wv==13){p.length=8;o[0]=n('--','0');o[1]=n('30','14');o[2]=n('35','13');o[3]=n('40','9');o[4]=n('45','8');o[5]=n('55','6');o[6]=n('60','5');o[7]=n('70','2');} 
    else if (wv==22){p.length=9;o[0]=n('--','0');o[1]=n('25','15');o[2]=n('30','14');o[3]=n('35','13');o[4]=n('40','9');o[5]=n('45','8');o[6]=n('50','7');o[7]=n('55','6');o[8]=n('60','5');} 
    else if (wv==23){p.length=6;o[0]=n('--','0');o[1]=n('25','15');o[2]=n('30','14');o[3]=n('35','13');o[4]=n('40','9');o[5]=n('45','8');} 
    else if (wv==24){p.length=4;o[0]=n('--','0');o[1]=n('30','14');o[2]=n('45','8');o[3]=n('50','7');} 
    else if (wv==25){p.length=4;o[0]=n('--','0');o[1]=n('25','15');o[2]=n('30','14');o[3]=n('35','13');} 
    else if (wv==29){p.length=2;o[0]=n('--','0');o[1]=n('30','14');} 
 
    for (i=0; i<p.length; i++) if (p[i].text == defaultProfile) p[i].selected = true; 
    h.length = 1; 
    h.options[0] = n('--','0'); 
    s.length = 1; 
    s.options[0] = n('--','0'); 
} 
 
function loadTyreWheels(defaultWheel) 
{ 
    w = document.getElementById('tyreWidthId'); 
    p = document.getElementById('tyreProfileId'); 
    h = document.getElementById('tyreWheelId'); 
    s = document.getElementById('tyreSpeedId'); 
    wv = w.value; 
    pv = p.value; 
    o  = h.options; 
 
    if (pv==0){h.length=0;o[0]=n('--','0')} 
    else if (wv==39&pv==5){h.length=2;o[0]=n('--','0');o[1]=n('18','8');} 
    else if (wv==16&pv==11){h.length=2;o[0]=n('--','0');o[1]=n('15','5');} 
    else if (wv==35&pv==19){h.length=2;o[0]=n('--','0');o[1]=n('15','5');} 
    else if (wv==17&pv==12){h.length=2;o[0]=n('--','0');o[1]=n('15','5');} 
    else if (wv==37&pv==12){h.length=2;o[0]=n('--','0');o[1]=n('4','17');} 
    else if (wv==18&pv==1){h.length=2;o[0]=n('--','0');o[1]=n('12','1');} 
    else if (wv==15&pv==2){h.length=3;o[0]=n('--','0');o[1]=n('13','2');o[2]=n('15','5');} 
    else if (wv==15&pv==1){h.length=3;o[0]=n('--','0');o[1]=n('12','1');o[2]=n('13','2');} 
    else if (wv==14&pv==3){h.length=3;o[0]=n('--','0');o[1]=n('13','2');o[2]=n('15','5');} 
    else if (wv==14&pv==2){h.length=3;o[0]=n('--','0');o[1]=n('12','1');o[2]=n('13','2');} 
    else if (wv==14&pv==1){h.length=5;o[0]=n('--','0');o[1]=n('10','6');o[2]=n('12','1');o[3]=n('13','2');o[4]=n('14','3');} 
    else if (wv==1&pv==7){h.length=2;o[0]=n('--','0');o[1]=n('15','5');} 
    else if (wv==1&pv==5){h.length=2;o[0]=n('--','0');o[1]=n('15','5');} 
    else if (wv==1&pv==3){h.length=3;o[0]=n('--','0');o[1]=n('13','2');o[2]=n('14','3');} 
    else if (wv==1&pv==2){h.length=2;o[0]=n('--','0');o[1]=n('13','2');} 
    else if (wv==1&pv==1){h.length=5;o[0]=n('--','0');o[1]=n('12','1');o[2]=n('13','2');o[3]=n('14','3');o[4]=n('15','5');} 
    else if (wv==2&pv==7){h.length=2;o[0]=n('--','0');o[1]=n('15','5');} 
    else if (wv==2&pv==6){h.length=2;o[0]=n('--','0');o[1]=n('13','2');} 
    else if (wv==2&pv==5){h.length=3;o[0]=n('--','0');o[1]=n('12','1');o[2]=n('14','3');} 
    else if (wv==2&pv==3){h.length=4;o[0]=n('--','0');o[1]=n('13','2');o[2]=n('14','3');o[3]=n('15','5');} 
    else if (wv==2&pv==2){h.length=5;o[0]=n('--','0');o[1]=n('10','6');o[2]=n('12','1');o[3]=n('13','2');o[4]=n('14','3');} 
    else if (wv==2&pv==4){h.length=2;o[0]=n('--','0');o[1]=n('14','3');} 
    else if (wv==2&pv==1){h.length=4;o[0]=n('--','0');o[1]=n('13','2');o[2]=n('14','3');o[3]=n('15','5');} 
    else if (wv==3&pv==7){h.length=3;o[0]=n('--','0');o[1]=n('13','2');o[2]=n('14','3');} 
    else if (wv==3&pv==6){h.length=4;o[0]=n('--','0');o[1]=n('15','5');o[2]=n('16','4');o[3]=n('17','7');} 
    else if (wv==3&pv==5){h.length=4;o[0]=n('--','0');o[1]=n('13','2');o[2]=n('14','3');o[3]=n('15','5');} 
    else if (wv==3&pv==3){h.length=4;o[0]=n('--','0');o[1]=n('13','2');o[2]=n('14','3');o[3]=n('15','5');} 
    else if (wv==3&pv==2){h.length=3;o[0]=n('--','0');o[1]=n('13','2');o[2]=n('14','3');} 
    else if (wv==3&pv==4){h.length=2;o[0]=n('--','0');o[1]=n('16','4');} 
    else if (wv==3&pv==1){h.length=4;o[0]=n('--','0');o[1]=n('13','2');o[2]=n('14','3');o[3]=n('16','4');} 
    else if (wv==4&pv==7){h.length=2;o[0]=n('--','0');o[1]=n('16','4');} 
    else if (wv==4&pv==6){h.length=5;o[0]=n('--','0');o[1]=n('13','2');o[2]=n('14','3');o[3]=n('15','5');o[4]=n('16','4');} 
    else if (wv==4&pv==5){h.length=4;o[0]=n('--','0');o[1]=n('13','2');o[2]=n('14','3');o[3]=n('15','5');} 
    else if (wv==4&pv==3){h.length=3;o[0]=n('--','0');o[1]=n('14','3');o[2]=n('15','5');} 
    else if (wv==4&pv==2){h.length=3;o[0]=n('--','0');o[1]=n('13','2');o[2]=n('14','3');} 
    else if (wv==4&pv==4){h.length=3;o[0]=n('--','0');o[1]=n('14','3');o[2]=n('16','4');} 
    else if (wv==4&pv==1){h.length=3;o[0]=n('--','0');o[1]=n('14','3');o[2]=n('15','5');} 
    else if (wv==5&pv==9){h.length=2;o[0]=n('--','0');o[1]=n('16','4');} 
    else if (wv==5&pv==8){h.length=4;o[0]=n('--','0');o[1]=n('14','3');o[2]=n('15','5');o[3]=n('16','4');} 
    else if (wv==5&pv==7){h.length=4;o[0]=n('--','0');o[1]=n('13','2');o[2]=n('15','5');o[3]=n('16','4');} 
    else if (wv==5&pv==6){h.length=4;o[0]=n('--','0');o[1]=n('14','3');o[2]=n('15','5');o[3]=n('16','4');} 
    else if (wv==5&pv==5){h.length=4;o[0]=n('--','0');o[1]=n('14','3');o[2]=n('15','5');o[3]=n('16','4');} 
    else if (wv==5&pv==3){h.length=4;o[0]=n('--','0');o[1]=n('14','3');o[2]=n('15','5');o[3]=n('16','4');} 
    else if (wv==5&pv==2){h.length=3;o[0]=n('--','0');o[1]=n('14','3');o[2]=n('15','5');} 
    else if (wv==5&pv==4){h.length=4;o[0]=n('--','0');o[1]=n('14','3');o[2]=n('15','5');o[3]=n('16','4');} 
    else if (wv==5&pv==1){h.length=3;o[0]=n('--','0');o[1]=n('14','3');o[2]=n('15','5');} 
    else if (wv==6&pv==13){h.length=2;o[0]=n('--','0');o[1]=n('18','8');} 
    else if (wv==6&pv==9){h.length=4;o[0]=n('--','0');o[1]=n('16','4');o[2]=n('17','7');o[3]=n('18','8');} 
    else if (wv==6&pv==8){h.length=5;o[0]=n('--','0');o[1]=n('15','5');o[2]=n('16','4');o[3]=n('17','7');o[4]=n('18','8');} 
    else if (wv==6&pv==7){h.length=4;o[0]=n('--','0');o[1]=n('15','5');o[2]=n('16','4');o[3]=n('17','7');} 
    else if (wv==6&pv==6){h.length=4;o[0]=n('--','0');o[1]=n('15','5');o[2]=n('16','4');o[3]=n('17','7');} 
    else if (wv==6&pv==5){h.length=5;o[0]=n('--','0');o[1]=n('13','2');o[2]=n('14','3');o[3]=n('15','5');o[4]=n('16','4');} 
    else if (wv==6&pv==3){h.length=3;o[0]=n('--','0');o[1]=n('15','5');o[2]=n('16','4');} 
    else if (wv==6&pv==2){h.length=3;o[0]=n('--','0');o[1]=n('14','3');o[2]=n('15','5');} 
    else if (wv==6&pv==4){h.length=3;o[0]=n('--','0');o[1]=n('15','5');o[2]=n('16','4');} 
    else if (wv==6&pv==1){h.length=3;o[0]=n('--','0');o[1]=n('14','3');o[2]=n('16','4');} 
    else if (wv==7&pv==13){h.length=3;o[0]=n('--','0');o[1]=n('18','8');o[2]=n('19','11');} 
    else if (wv==7&pv==9){h.length=4;o[0]=n('--','0');o[1]=n('16','4');o[2]=n('17','7');o[3]=n('18','8');} 
    else if (wv==7&pv==8){h.length=5;o[0]=n('--','0');o[1]=n('15','5');o[2]=n('16','4');o[3]=n('17','7');o[4]=n('18','8');} 
    else if (wv==7&pv==7){h.length=4;o[0]=n('--','0');o[1]=n('15','5');o[2]=n('16','4');o[3]=n('17','7');} 
    else if (wv==7&pv==6){h.length=3;o[0]=n('--','0');o[1]=n('16','4');o[2]=n('17','7');} 
    else if (wv==7&pv==5){h.length=4;o[0]=n('--','0');o[1]=n('15','5');o[2]=n('16','4');o[3]=n('17','7');} 
    else if (wv==7&pv==3){h.length=3;o[0]=n('--','0');o[1]=n('15','5');o[2]=n('16','4');} 
    else if (wv==7&pv==2){h.length=3;o[0]=n('--','0');o[1]=n('15','5');o[2]=n('16','4');} 
    else if (wv==7&pv==4){h.length=3;o[0]=n('--','0');o[1]=n('15','5');o[2]=n('16','4');} 
    else if (wv==7&pv==1){h.length=3;o[0]=n('--','0');o[1]=n('14','3');o[2]=n('15','5');} 
    else if (wv==8&pv==13){h.length=5;o[0]=n('--','0');o[1]=n('17','7');o[2]=n('18','8');o[3]=n('19','11');o[4]=n('20','12');} 
    else if (wv==8&pv==9){h.length=5;o[0]=n('--','0');o[1]=n('14','3');o[2]=n('16','4');o[3]=n('18','8');o[4]=n('19','11');} 
    else if (wv==8&pv==8){h.length=4;o[0]=n('--','0');o[1]=n('16','4');o[2]=n('17','7');o[3]=n('18','8');} 
    else if (wv==8&pv==7){h.length=4;o[0]=n('--','0');o[1]=n('15','5');o[2]=n('16','4');o[3]=n('17','7');} 
    else if (wv==8&pv==6){h.length=4;o[0]=n('--','0');o[1]=n('15','5');o[2]=n('16','4');o[3]=n('17','7');} 
    else if (wv==8&pv==5){h.length=5;o[0]=n('--','0');o[1]=n('15','5');o[2]=n('16','4');o[3]=n('17','7');o[4]=n('18','8');} 
    else if (wv==8&pv==3){h.length=5;o[0]=n('--','0');o[1]=n('15','5');o[2]=n('16','4');o[3]=n('17','7');o[4]=n('18','8');} 
    else if (wv==8&pv==2){h.length=4;o[0]=n('--','0');o[1]=n('15','5');o[2]=n('16','4');o[3]=n('17','7');} 
    else if (wv==8&pv==4){h.length=3;o[0]=n('--','0');o[1]=n('15','5');o[2]=n('16','4');} 
    else if (wv==28&pv==6){h.length=2;o[0]=n('--','0');o[1]=n('390','10');} 
    else if (wv==9&pv==14){h.length=3;o[0]=n('--','0');o[1]=n('18','8');o[2]=n('20','12');} 
    else if (wv==9&pv==13){h.length=2;o[0]=n('--','0');o[1]=n('19','11');} 
    else if (wv==9&pv==9){h.length=4;o[0]=n('--','0');o[1]=n('17','7');o[2]=n('18','8');o[3]=n('19','11');} 
    else if (wv==9&pv==8){h.length=4;o[0]=n('--','0');o[1]=n('17','7');o[2]=n('18','8');o[3]=n('19','11');} 
    else if (wv==9&pv==7){h.length=5;o[0]=n('--','0');o[1]=n('15','5');o[2]=n('16','4');o[3]=n('17','7');o[4]=n('18','8');} 
    else if (wv==9&pv==6){h.length=3;o[0]=n('--','0');o[1]=n('17','7');o[2]=n('18','8');} 
    else if (wv==9&pv==5){h.length=3;o[0]=n('--','0');o[1]=n('16','4');o[2]=n('18','8');} 
    else if (wv==9&pv==3){h.length=3;o[0]=n('--','0');o[1]=n('16','4');o[2]=n('17','7');} 
    else if (wv==9&pv==2){h.length=4;o[0]=n('--','0');o[1]=n('15','5');o[2]=n('16','4');o[3]=n('17','7');} 
    else if (wv==9&pv==4){h.length=2;o[0]=n('--','0');o[1]=n('15','5');} 
    else if (wv==9&pv==10){h.length=2;o[0]=n('--','0');o[1]=n('16','4');} 
    else if (wv==10&pv==13){h.length=7;o[0]=n('--','0');o[1]=n('16','4');o[2]=n('17','7');o[3]=n('18','8');o[4]=n('19','11');o[5]=n('20','12');o[6]=n('21','15');} 
    else if (wv==10&pv==9){h.length=5;o[0]=n('--','0');o[1]=n('17','7');o[2]=n('18','8');o[3]=n('19','11');o[4]=n('20','12');} 
    else if (wv==10&pv==8){h.length=5;o[0]=n('--','0');o[1]=n('16','4');o[2]=n('17','7');o[3]=n('18','8');o[4]=n('19','11');} 
    else if (wv==10&pv==7){h.length=3;o[0]=n('--','0');o[1]=n('17','7');o[2]=n('18','8');} 
    else if (wv==10&pv==6){h.length=3;o[0]=n('--','0');o[1]=n('16','4');o[2]=n('17','7');} 
    else if (wv==10&pv==3){h.length=2;o[0]=n('--','0');o[1]=n('17','7');} 
    else if (wv==10&pv==2){h.length=2;o[0]=n('--','0');o[1]=n('16','4');} 
    else if (wv==10&pv==4){h.length=2;o[0]=n('--','0');o[1]=n('16','4');} 
    else if (wv==11&pv==14){h.length=4;o[0]=n('--','0');o[1]=n('19','11');o[2]=n('20','12');o[3]=n('21','15');} 
    else if (wv==11&pv==13){h.length=4;o[0]=n('--','0');o[1]=n('18','8');o[2]=n('19','11');o[3]=n('20','12');} 
    else if (wv==11&pv==9){h.length=4;o[0]=n('--','0');o[1]=n('17','7');o[2]=n('18','8');o[3]=n('19','11');} 
    else if (wv==11&pv==8){h.length=4;o[0]=n('--','0');o[1]=n('17','7');o[2]=n('18','8');o[3]=n('19','11');} 
    else if (wv==11&pv==7){h.length=3;o[0]=n('--','0');o[1]=n('19','11');o[2]=n('20','12');} 
    else if (wv==11&pv==6){h.length=3;o[0]=n('--','0');o[1]=n('18','8');o[2]=n('19','11');} 
    else if (wv==11&pv==5){h.length=3;o[0]=n('--','0');o[1]=n('17','7');o[2]=n('18','8');} 
    else if (wv==11&pv==3){h.length=4;o[0]=n('--','0');o[1]=n('15','5');o[2]=n('16','4');o[3]=n('17','7');} 
    else if (wv==11&pv==2){h.length=3;o[0]=n('--','0');o[1]=n('15','5');o[2]=n('16','4');} 
    else if (wv==11&pv==4){h.length=2;o[0]=n('--','0');o[1]=n('15','5');} 
    else if (wv==12&pv==14){h.length=2;o[0]=n('--','0');o[1]=n('19','11');} 
    else if (wv==12&pv==13){h.length=5;o[0]=n('--','0');o[1]=n('18','8');o[2]=n('19','11');o[3]=n('22','14');o[4]=n('29','20');} 
    else if (wv==12&pv==9){h.length=3;o[0]=n('--','0');o[1]=n('17','7');o[2]=n('18','8');} 
    else if (wv==12&pv==8){h.length=2;o[0]=n('--','0');o[1]=n('20','12');} 
    else if (wv==12&pv==5){h.length=2;o[0]=n('--','0');o[1]=n('18','8');} 
    else if (wv==12&pv==3){h.length=2;o[0]=n('--','0');o[1]=n('17','7');} 
    else if (wv==12&pv==2){h.length=4;o[0]=n('--','0');o[1]=n('15','5');o[2]=n('16','4');o[3]=n('17','7');} 
    else if (wv==12&pv==4){h.length=3;o[0]=n('--','0');o[1]=n('15','5');o[2]=n('16','4');} 
    else if (wv==13&pv==14){h.length=3;o[0]=n('--','0');o[1]=n('19','11');o[2]=n('20','12');} 
    else if (wv==13&pv==13){h.length=4;o[0]=n('--','0');o[1]=n('18','8');o[2]=n('19','11');o[3]=n('20','12');} 
    else if (wv==13&pv==9){h.length=4;o[0]=n('--','0');o[1]=n('18','8');o[2]=n('19','11');o[3]=n('20','12');} 
    else if (wv==13&pv==8){h.length=3;o[0]=n('--','0');o[1]=n('19','11');o[2]=n('20','12');} 
    else if (wv==13&pv==6){h.length=2;o[0]=n('--','0');o[1]=n('17','7');} 
    else if (wv==13&pv==5){h.length=3;o[0]=n('--','0');o[1]=n('17','7');o[2]=n('18','8');} 
    else if (wv==13&pv==2){h.length=2;o[0]=n('--','0');o[1]=n('16','4');} 
    else if (wv==22&pv==15){h.length=2;o[0]=n('--','0');o[1]=n('20','12');} 
    else if (wv==22&pv==14){h.length=5;o[0]=n('--','0');o[1]=n('18','8');o[2]=n('19','11');o[3]=n('20','12');o[4]=n('21','15');} 
    else if (wv==22&pv==13){h.length=4;o[0]=n('--','0');o[1]=n('18','8');o[2]=n('19','11');o[3]=n('22','14');} 
    else if (wv==22&pv==9){h.length=2;o[0]=n('--','0');o[1]=n('18','8');} 
    else if (wv==22&pv==8){h.length=2;o[0]=n('--','0');o[1]=n('19','11');} 
    else if (wv==22&pv==7){h.length=2;o[0]=n('--','0');o[1]=n('18','8');} 
    else if (wv==22&pv==6){h.length=2;o[0]=n('--','0');o[1]=n('18','8');} 
    else if (wv==22&pv==5){h.length=3;o[0]=n('--','0');o[1]=n('17','7');o[2]=n('18','8');} 
    else if (wv==23&pv==15){h.length=3;o[0]=n('--','0');o[1]=n('21','15');o[2]=n('22','14');} 
    else if (wv==23&pv==14){h.length=5;o[0]=n('--','0');o[1]=n('18','8');o[2]=n('19','11');o[3]=n('21','15');o[4]=n('22','14');} 
    else if (wv==23&pv==13){h.length=2;o[0]=n('--','0');o[1]=n('18','8');} 
    else if (wv==23&pv==9){h.length=2;o[0]=n('--','0');o[1]=n('20','12');} 
    else if (wv==23&pv==8){h.length=2;o[0]=n('--','0');o[1]=n('20','12');} 
    else if (wv==24&pv==14){h.length=2;o[0]=n('--','0');o[1]=n('19','11');} 
    else if (wv==24&pv==8){h.length=2;o[0]=n('--','0');o[1]=n('22','14');} 
    else if (wv==24&pv==7){h.length=2;o[0]=n('--','0');o[1]=n('20','12');} 
    else if (wv==25&pv==15){h.length=2;o[0]=n('--','0');o[1]=n('19','11');} 
    else if (wv==25&pv==14){h.length=3;o[0]=n('--','0');o[1]=n('18','8');o[2]=n('22','14');} 
    else if (wv==25&pv==13){h.length=2;o[0]=n('--','0');o[1]=n('20','12');} 
    else if (wv==29&pv==14){h.length=2;o[0]=n('--','0');o[1]=n('18','8');} 
 
    for (i=0; i<h.length; i++) if (h[i].text == defaultWheel) h[i].selected = true; 
    s.length = 1; 
    s.options[0] = n('--','0'); 
} 
 
function loadTyreSpeeds(defaultSpeed) 
{ 
    w = document.getElementById('tyreWidthId'); 
    p = document.getElementById('tyreProfileId'); 
    h = document.getElementById('tyreWheelId'); 
    s = document.getElementById('tyreSpeedId'); 
    wv = w.value; 
    pv = p.value; 
    hv = h.value; 
    o  = s.options; 
 
    if (hv==0){s.length=0;o[0]=n('--','0')} 
    else if (wv==39&pv==5&hv==8){s.length=2;o[0]=n('--','0');o[1]=n('V','6');} 
    else if (wv==16&pv==11&hv==5){s.length=2;o[0]=n('--','0');o[1]=n('S','4');} 
    else if (wv==35&pv==19&hv==5){s.length=4;o[0]=n('--','0');o[1]=n('Q','3');o[2]=n('S','4');o[3]=n('T','5');} 
    else if (wv==17&pv==12&hv==5){s.length=2;o[0]=n('--','0');o[1]=n('S','4');} 
    else if (wv==37&pv==12&hv==17){s.length=2;o[0]=n('--','0');o[1]=n('TYRESPEED','11');} 
    else if (wv==18&pv==1&hv==1){s.length=2;o[0]=n('--','0');o[1]=n('T','5');} 
    else if (wv==15&pv==2&hv==2){s.length=2;o[0]=n('--','0');o[1]=n('T','5');} 
    else if (wv==15&pv==2&hv==5){s.length=2;o[0]=n('--','0');o[1]=n('T','5');} 
    else if (wv==15&pv==1&hv==1){s.length=2;o[0]=n('--','0');o[1]=n('T','5');} 
    else if (wv==15&pv==1&hv==2){s.length=2;o[0]=n('--','0');o[1]=n('T','5');} 
    else if (wv==14&pv==3&hv==2){s.length=2;o[0]=n('--','0');o[1]=n('T','5');} 
    else if (wv==14&pv==3&hv==5){s.length=2;o[0]=n('--','0');o[1]=n('T','5');} 
    else if (wv==14&pv==2&hv==1){s.length=2;o[0]=n('--','0');o[1]=n('T','5');} 
    else if (wv==14&pv==2&hv==2){s.length=2;o[0]=n('--','0');o[1]=n('T','5');} 
    else if (wv==14&pv==1&hv==6){s.length=2;o[0]=n('--','0');o[1]=n('C','1');} 
    else if (wv==14&pv==1&hv==1){s.length=2;o[0]=n('--','0');o[1]=n('T','5');} 
    else if (wv==14&pv==1&hv==2){s.length=2;o[0]=n('--','0');o[1]=n('T','5');} 
    else if (wv==14&pv==1&hv==3){s.length=2;o[0]=n('--','0');o[1]=n('T','5');} 
    else if (wv==1&pv==7&hv==5){s.length=2;o[0]=n('--','0');o[1]=n('T','5');} 
    else if (wv==1&pv==5&hv==5){s.length=2;o[0]=n('--','0');o[1]=n('T','5');} 
    else if (wv==1&pv==3&hv==2){s.length=2;o[0]=n('--','0');o[1]=n('T','5');} 
    else if (wv==1&pv==3&hv==3){s.length=2;o[0]=n('--','0');o[1]=n('T','5');} 
    else if (wv==1&pv==2&hv==2){s.length=2;o[0]=n('--','0');o[1]=n('T','5');} 
    else if (wv==1&pv==1&hv==1){s.length=2;o[0]=n('--','0');o[1]=n('C','1');} 
    else if (wv==1&pv==1&hv==2){s.length=3;o[0]=n('--','0');o[1]=n('C','1');o[2]=n('T','5');} 
    else if (wv==1&pv==1&hv==3){s.length=2;o[0]=n('--','0');o[1]=n('T','5');} 
    else if (wv==1&pv==1&hv==5){s.length=2;o[0]=n('--','0');o[1]=n('T','5');} 
    else if (wv==2&pv==7&hv==5){s.length=2;o[0]=n('--','0');o[1]=n('V','6');} 
    else if (wv==2&pv==6&hv==2){s.length=2;o[0]=n('--','0');o[1]=n('H','2');} 
    else if (wv==2&pv==5&hv==1){s.length=2;o[0]=n('--','0');o[1]=n('H','2');} 
    else if (wv==2&pv==5&hv==3){s.length=3;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('T','5');} 
    else if (wv==2&pv==3&hv==2){s.length=2;o[0]=n('--','0');o[1]=n('T','5');} 
    else if (wv==2&pv==3&hv==3){s.length=3;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('T','5');} 
    else if (wv==2&pv==3&hv==5){s.length=2;o[0]=n('--','0');o[1]=n('T','5');} 
    else if (wv==2&pv==2&hv==6){s.length=2;o[0]=n('--','0');o[1]=n('T','5');} 
    else if (wv==2&pv==2&hv==1){s.length=2;o[0]=n('--','0');o[1]=n('T','5');} 
    else if (wv==2&pv==2&hv==2){s.length=3;o[0]=n('--','0');o[1]=n('C','1');o[2]=n('T','5');} 
    else if (wv==2&pv==2&hv==3){s.length=3;o[0]=n('--','0');o[1]=n('C','1');o[2]=n('T','5');} 
    else if (wv==2&pv==4&hv==3){s.length=2;o[0]=n('--','0');o[1]=n('C','1');} 
    else if (wv==2&pv==1&hv==2){s.length=4;o[0]=n('--','0');o[1]=n('C','1');o[2]=n('S','4');o[3]=n('T','5');} 
    else if (wv==2&pv==1&hv==3){s.length=4;o[0]=n('--','0');o[1]=n('C','1');o[2]=n('Q','3');o[3]=n('T','5');} 
    else if (wv==2&pv==1&hv==5){s.length=2;o[0]=n('--','0');o[1]=n('T','5');} 
    else if (wv==3&pv==7&hv==2){s.length=2;o[0]=n('--','0');o[1]=n('V','6');} 
    else if (wv==3&pv==7&hv==3){s.length=2;o[0]=n('--','0');o[1]=n('H','2');} 
    else if (wv==3&pv==6&hv==5){s.length=3;o[0]=n('--','0');o[1]=n('T','5');o[2]=n('V','6');} 
    else if (wv==3&pv==6&hv==4){s.length=2;o[0]=n('--','0');o[1]=n('W','7');} 
    else if (wv==3&pv==6&hv==7){s.length=2;o[0]=n('--','0');o[1]=n('W','7');} 
    else if (wv==3&pv==5&hv==2){s.length=2;o[0]=n('--','0');o[1]=n('H','2');} 
    else if (wv==3&pv==5&hv==3){s.length=3;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('T','5');} 
    else if (wv==3&pv==5&hv==5){s.length=3;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('V','6');} 
    else if (wv==3&pv==3&hv==2){s.length=2;o[0]=n('--','0');o[1]=n('T','5');} 
    else if (wv==3&pv==3&hv==3){s.length=4;o[0]=n('--','0');o[1]=n('C','1');o[2]=n('H','2');o[3]=n('T','5');} 
    else if (wv==3&pv==3&hv==5){s.length=3;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('T','5');} 
    else if (wv==3&pv==2&hv==2){s.length=3;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('T','5');} 
    else if (wv==3&pv==2&hv==3){s.length=4;o[0]=n('--','0');o[1]=n('C','1');o[2]=n('H','2');o[3]=n('T','5');} 
    else if (wv==3&pv==4&hv==4){s.length=2;o[0]=n('--','0');o[1]=n('C','1');} 
    else if (wv==3&pv==1&hv==2){s.length=3;o[0]=n('--','0');o[1]=n('C','1');o[2]=n('T','5');} 
    else if (wv==3&pv==1&hv==3){s.length=4;o[0]=n('--','0');o[1]=n('C','1');o[2]=n('H','2');o[3]=n('T','5');} 
    else if (wv==3&pv==1&hv==4){s.length=2;o[0]=n('--','0');o[1]=n('C','1');} 
    else if (wv==4&pv==7&hv==4){s.length=3;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('V','6');} 
    else if (wv==4&pv==6&hv==2){s.length=2;o[0]=n('--','0');o[1]=n('H','2');} 
    else if (wv==4&pv==6&hv==3){s.length=2;o[0]=n('--','0');o[1]=n('H','2');} 
    else if (wv==4&pv==6&hv==5){s.length=3;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('V','6');} 
    else if (wv==4&pv==6&hv==4){s.length=3;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('V','6');} 
    else if (wv==4&pv==5&hv==2){s.length=3;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('V','6');} 
    else if (wv==4&pv==5&hv==3){s.length=4;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('T','5');o[3]=n('V','6');} 
    else if (wv==4&pv==5&hv==5){s.length=3;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('T','5');} 
    else if (wv==4&pv==3&hv==3){s.length=4;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('T','5');o[3]=n('V','6');} 
    else if (wv==4&pv==3&hv==5){s.length=4;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('T','5');o[3]=n('V','6');} 
    else if (wv==4&pv==2&hv==2){s.length=4;o[0]=n('--','0');o[1]=n('C','1');o[2]=n('H','2');o[3]=n('T','5');} 
    else if (wv==4&pv==2&hv==3){s.length=3;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('T','5');} 
    else if (wv==4&pv==4&hv==3){s.length=2;o[0]=n('--','0');o[1]=n('C','1');} 
    else if (wv==4&pv==4&hv==4){s.length=2;o[0]=n('--','0');o[1]=n('C','1');} 
    else if (wv==4&pv==1&hv==3){s.length=4;o[0]=n('--','0');o[1]=n('C','1');o[2]=n('S','4');o[3]=n('T','5');} 
    else if (wv==4&pv==1&hv==5){s.length=3;o[0]=n('--','0');o[1]=n('C','1');o[2]=n('H','2');} 
    else if (wv==5&pv==9&hv==4){s.length=3;o[0]=n('--','0');o[1]=n('V','6');o[2]=n('W','7');} 
    else if (wv==5&pv==8&hv==3){s.length=2;o[0]=n('--','0');o[1]=n('V','6');} 
    else if (wv==5&pv==8&hv==5){s.length=3;o[0]=n('--','0');o[1]=n('V','6');o[2]=n('W','7');} 
    else if (wv==5&pv==8&hv==4){s.length=3;o[0]=n('--','0');o[1]=n('V','6');o[2]=n('W','7');} 
    else if (wv==5&pv==7&hv==2){s.length=2;o[0]=n('--','0');o[1]=n('C','1');} 
    else if (wv==5&pv==7&hv==5){s.length=4;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('T','5');o[3]=n('V','6');} 
    else if (wv==5&pv==7&hv==4){s.length=3;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('V','6');} 
    else if (wv==5&pv==6&hv==3){s.length=2;o[0]=n('--','0');o[1]=n('V','6');} 
    else if (wv==5&pv==6&hv==5){s.length=3;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('V','6');} 
    else if (wv==5&pv==6&hv==4){s.length=4;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('T','5');o[3]=n('V','6');} 
    else if (wv==5&pv==5&hv==3){s.length=3;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('V','6');} 
    else if (wv==5&pv==5&hv==5){s.length=4;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('T','5');o[3]=n('V','6');} 
    else if (wv==5&pv==5&hv==4){s.length=3;o[0]=n('--','0');o[1]=n('C','1');o[2]=n('H','2');} 
    else if (wv==5&pv==3&hv==3){s.length=4;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('T','5');o[3]=n('V','6');} 
    else if (wv==5&pv==3&hv==5){s.length=4;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('T','5');o[3]=n('V','6');} 
    else if (wv==5&pv==3&hv==4){s.length=3;o[0]=n('--','0');o[1]=n('C','1');o[2]=n('T','5');} 
    else if (wv==5&pv==2&hv==3){s.length=5;o[0]=n('--','0');o[1]=n('C','1');o[2]=n('H','2');o[3]=n('S','4');o[4]=n('T','5');} 
    else if (wv==5&pv==2&hv==5){s.length=4;o[0]=n('--','0');o[1]=n('C','1');o[2]=n('S','4');o[3]=n('T','5');} 
    else if (wv==5&pv==4&hv==3){s.length=2;o[0]=n('--','0');o[1]=n('C','1');} 
    else if (wv==5&pv==4&hv==5){s.length=2;o[0]=n('--','0');o[1]=n('S','4');} 
    else if (wv==5&pv==4&hv==4){s.length=2;o[0]=n('--','0');o[1]=n('C','1');} 
    else if (wv==5&pv==1&hv==3){s.length=2;o[0]=n('--','0');o[1]=n('C','1');} 
    else if (wv==5&pv==1&hv==5){s.length=5;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('Q','3');o[3]=n('S','4');o[4]=n('T','5');} 
    else if (wv==6&pv==13&hv==8){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==6&pv==9&hv==4){s.length=2;o[0]=n('--','0');o[1]=n('W','7');} 
    else if (wv==6&pv==9&hv==7){s.length=4;o[0]=n('--','0');o[1]=n('V','6');o[2]=n('W','7');o[3]=n('Z','9');} 
    else if (wv==6&pv==9&hv==8){s.length=3;o[0]=n('--','0');o[1]=n('W','7');o[2]=n('Y','8');} 
    else if (wv==6&pv==8&hv==5){s.length=2;o[0]=n('--','0');o[1]=n('V','6');} 
    else if (wv==6&pv==8&hv==4){s.length=4;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('V','6');o[3]=n('W','7');} 
    else if (wv==6&pv==8&hv==7){s.length=3;o[0]=n('--','0');o[1]=n('V','6');o[2]=n('W','7');} 
    else if (wv==6&pv==8&hv==8){s.length=3;o[0]=n('--','0');o[1]=n('W','7');o[2]=n('Y','8');} 
    else if (wv==6&pv==7&hv==5){s.length=4;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('V','6');o[3]=n('W','7');} 
    else if (wv==6&pv==7&hv==4){s.length=5;o[0]=n('--','0');o[1]=n('V','6');o[2]=n('W','7');o[3]=n('Y','8');o[4]=n('Z','9');} 
    else if (wv==6&pv==7&hv==7){s.length=5;o[0]=n('--','0');o[1]=n('V','6');o[2]=n('W','7');o[3]=n('Y','8');o[4]=n('Z','9');} 
    else if (wv==6&pv==6&hv==5){s.length=3;o[0]=n('--','0');o[1]=n('V','6');o[2]=n('Z','9');} 
    else if (wv==6&pv==6&hv==4){s.length=6;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('V','6');o[3]=n('W','7');o[4]=n('Y','8');o[5]=n('Z','9');} 
    else if (wv==6&pv==6&hv==7){s.length=2;o[0]=n('--','0');o[1]=n('V','6');} 
    else if (wv==6&pv==5&hv==2){s.length=3;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('V','6');} 
    else if (wv==6&pv==5&hv==3){s.length=2;o[0]=n('--','0');o[1]=n('H','2');} 
    else if (wv==6&pv==5&hv==5){s.length=3;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('V','6');} 
    else if (wv==6&pv==5&hv==4){s.length=4;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('V','6');o[3]=n('W','7');} 
    else if (wv==6&pv==3&hv==5){s.length=5;o[0]=n('--','0');o[1]=n('C','1');o[2]=n('H','2');o[3]=n('T','5');o[4]=n('V','6');} 
    else if (wv==6&pv==3&hv==4){s.length=4;o[0]=n('--','0');o[1]=n('C','1');o[2]=n('H','2');o[3]=n('T','5');} 
    else if (wv==6&pv==2&hv==3){s.length=3;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('T','5');} 
    else if (wv==6&pv==2&hv==5){s.length=5;o[0]=n('--','0');o[1]=n('C','1');o[2]=n('H','2');o[3]=n('T','5');o[4]=n('Y','8');} 
    else if (wv==6&pv==4&hv==5){s.length=2;o[0]=n('--','0');o[1]=n('T','5');} 
    else if (wv==6&pv==4&hv==4){s.length=3;o[0]=n('--','0');o[1]=n('C','1');o[2]=n('Q','3');} 
    else if (wv==6&pv==1&hv==3){s.length=2;o[0]=n('--','0');o[1]=n('C','1');} 
    else if (wv==6&pv==1&hv==4){s.length=4;o[0]=n('--','0');o[1]=n('C','1');o[2]=n('S','4');o[3]=n('T','5');} 
    else if (wv==7&pv==13&hv==8){s.length=3;o[0]=n('--','0');o[1]=n('W','7');o[2]=n('Y','8');} 
    else if (wv==7&pv==13&hv==11){s.length=3;o[0]=n('--','0');o[1]=n('W','7');o[2]=n('Y','8');} 
    else if (wv==7&pv==9&hv==4){s.length=2;o[0]=n('--','0');o[1]=n('W','7');} 
    else if (wv==7&pv==9&hv==7){s.length=4;o[0]=n('--','0');o[1]=n('W','7');o[2]=n('Y','8');o[3]=n('Z','9');} 
    else if (wv==7&pv==9&hv==8){s.length=4;o[0]=n('--','0');o[1]=n('W','7');o[2]=n('Y','8');o[3]=n('Z','9');} 
    else if (wv==7&pv==8&hv==5){s.length=2;o[0]=n('--','0');o[1]=n('V','6');} 
    else if (wv==7&pv==8&hv==4){s.length=2;o[0]=n('--','0');o[1]=n('W','7');} 
    else if (wv==7&pv==8&hv==7){s.length=5;o[0]=n('--','0');o[1]=n('V','6');o[2]=n('W','7');o[3]=n('Y','8');o[4]=n('Z','9');} 
    else if (wv==7&pv==8&hv==8){s.length=3;o[0]=n('--','0');o[1]=n('W','7');o[2]=n('Y','8');} 
    else if (wv==7&pv==7&hv==5){s.length=2;o[0]=n('--','0');o[1]=n('W','7');} 
    else if (wv==7&pv==7&hv==4){s.length=2;o[0]=n('--','0');o[1]=n('W','7');} 
    else if (wv==7&pv==7&hv==7){s.length=4;o[0]=n('--','0');o[1]=n('V','6');o[2]=n('W','7');o[3]=n('Y','8');} 
    else if (wv==7&pv==6&hv==4){s.length=5;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('V','6');o[3]=n('W','7');o[4]=n('Y','8');} 
    else if (wv==7&pv==6&hv==7){s.length=3;o[0]=n('--','0');o[1]=n('V','6');o[2]=n('W','7');} 
    else if (wv==7&pv==5&hv==5){s.length=3;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('V','6');} 
    else if (wv==7&pv==5&hv==4){s.length=6;o[0]=n('--','0');o[1]=n('C','1');o[2]=n('H','2');o[3]=n('T','5');o[4]=n('V','6');o[5]=n('W','7');} 
    else if (wv==7&pv==5&hv==7){s.length=3;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('V','6');} 
    else if (wv==7&pv==3&hv==5){s.length=3;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('T','5');} 
    else if (wv==7&pv==3&hv==4){s.length=7;o[0]=n('--','0');o[1]=n('C','1');o[2]=n('H','2');o[3]=n('S','4');o[4]=n('T','5');o[5]=n('V','6');o[6]=n('W','7');} 
    else if (wv==7&pv==2&hv==5){s.length=5;o[0]=n('--','0');o[1]=n('C','1');o[2]=n('H','2');o[3]=n('S','4');o[4]=n('W','7');} 
    else if (wv==7&pv==2&hv==4){s.length=5;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('Q','3');o[3]=n('S','4');o[4]=n('T','5');} 
    else if (wv==7&pv==4&hv==5){s.length=3;o[0]=n('--','0');o[1]=n('Q','3');o[2]=n('S','4');} 
    else if (wv==7&pv==4&hv==4){s.length=3;o[0]=n('--','0');o[1]=n('C','1');o[2]=n('S','4');} 
    else if (wv==7&pv==1&hv==3){s.length=2;o[0]=n('--','0');o[1]=n('C','1');} 
    else if (wv==7&pv==1&hv==5){s.length=2;o[0]=n('--','0');o[1]=n('S','4');} 
    else if (wv==8&pv==13&hv==7){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==8&pv==13&hv==8){s.length=3;o[0]=n('--','0');o[1]=n('Y','8');o[2]=n('Z','9');} 
    else if (wv==8&pv==13&hv==11){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==8&pv==13&hv==12){s.length=2;o[0]=n('--','0');o[1]=n('W','7');} 
    else if (wv==8&pv==9&hv==3){s.length=2;o[0]=n('--','0');o[1]=n('V','6');} 
    else if (wv==8&pv==9&hv==4){s.length=2;o[0]=n('--','0');o[1]=n('W','7');} 
    else if (wv==8&pv==9&hv==8){s.length=4;o[0]=n('--','0');o[1]=n('W','7');o[2]=n('Y','8');o[3]=n('Z','9');} 
    else if (wv==8&pv==9&hv==11){s.length=4;o[0]=n('--','0');o[1]=n('W','7');o[2]=n('Y','8');o[3]=n('Z','9');} 
    else if (wv==8&pv==8&hv==4){s.length=3;o[0]=n('--','0');o[1]=n('W','7');o[2]=n('Z','9');} 
    else if (wv==8&pv==8&hv==7){s.length=5;o[0]=n('--','0');o[1]=n('V','6');o[2]=n('W','7');o[3]=n('Y','8');o[4]=n('Z','9');} 
    else if (wv==8&pv==8&hv==8){s.length=4;o[0]=n('--','0');o[1]=n('W','7');o[2]=n('Y','8');o[3]=n('Z','9');} 
    else if (wv==8&pv==7&hv==5){s.length=3;o[0]=n('--','0');o[1]=n('V','6');o[2]=n('W','7');} 
    else if (wv==8&pv==7&hv==4){s.length=5;o[0]=n('--','0');o[1]=n('V','6');o[2]=n('W','7');o[3]=n('Y','8');o[4]=n('Z','9');} 
    else if (wv==8&pv==7&hv==7){s.length=3;o[0]=n('--','0');o[1]=n('W','7');o[2]=n('Y','8');} 
    else if (wv==8&pv==6&hv==5){s.length=2;o[0]=n('--','0');o[1]=n('V','6');} 
    else if (wv==8&pv==6&hv==4){s.length=5;o[0]=n('--','0');o[1]=n('V','6');o[2]=n('W','7');o[3]=n('Y','8');o[4]=n('Z','9');} 
    else if (wv==8&pv==6&hv==7){s.length=5;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('V','6');o[3]=n('W','7');o[4]=n('Y','8');} 
    else if (wv==8&pv==5&hv==5){s.length=4;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('V','6');o[3]=n('W','7');} 
    else if (wv==8&pv==5&hv==4){s.length=5;o[0]=n('--','0');o[1]=n('C','1');o[2]=n('H','2');o[3]=n('V','6');o[4]=n('W','7');} 
    else if (wv==8&pv==5&hv==7){s.length=2;o[0]=n('--','0');o[1]=n('H','2');} 
    else if (wv==8&pv==5&hv==8){s.length=3;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('W','7');} 
    else if (wv==8&pv==3&hv==5){s.length=2;o[0]=n('--','0');o[1]=n('W','7');} 
    else if (wv==8&pv==3&hv==4){s.length=2;o[0]=n('--','0');o[1]=n('C','1');} 
    else if (wv==8&pv==3&hv==7){s.length=4;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('S','4');o[3]=n('T','5');} 
    else if (wv==8&pv==3&hv==8){s.length=3;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('V','6');} 
    else if (wv==8&pv==2&hv==5){s.length=4;o[0]=n('--','0');o[1]=n('C','1');o[2]=n('S','4');o[3]=n('T','5');} 
    else if (wv==8&pv==2&hv==4){s.length=4;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('S','4');o[3]=n('T','5');} 
    else if (wv==8&pv==2&hv==7){s.length=2;o[0]=n('--','0');o[1]=n('S','4');} 
    else if (wv==8&pv==4&hv==5){s.length=3;o[0]=n('--','0');o[1]=n('S','4');o[2]=n('T','5');} 
    else if (wv==8&pv==4&hv==4){s.length=6;o[0]=n('--','0');o[1]=n('C','1');o[2]=n('H','2');o[3]=n('Q','3');o[4]=n('S','4');o[5]=n('T','5');} 
    else if (wv==28&pv==6&hv==10){s.length=2;o[0]=n('--','0');o[1]=n('Z','9');} 
    else if (wv==9&pv==14&hv==8){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==9&pv==14&hv==12){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==9&pv==13&hv==11){s.length=3;o[0]=n('--','0');o[1]=n('Y','8');o[2]=n('Z','9');} 
    else if (wv==9&pv==9&hv==7){s.length=4;o[0]=n('--','0');o[1]=n('W','7');o[2]=n('Y','8');o[3]=n('Z','9');} 
    else if (wv==9&pv==9&hv==8){s.length=3;o[0]=n('--','0');o[1]=n('Y','8');o[2]=n('Z','9');} 
    else if (wv==9&pv==9&hv==11){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==9&pv==8&hv==7){s.length=3;o[0]=n('--','0');o[1]=n('W','7');o[2]=n('Y','8');} 
    else if (wv==9&pv==8&hv==8){s.length=3;o[0]=n('--','0');o[1]=n('W','7');o[2]=n('Y','8');} 
    else if (wv==9&pv==8&hv==11){s.length=2;o[0]=n('--','0');o[1]=n('W','7');} 
    else if (wv==9&pv==7&hv==5){s.length=2;o[0]=n('--','0');o[1]=n('W','7');} 
    else if (wv==9&pv==7&hv==4){s.length=2;o[0]=n('--','0');o[1]=n('W','7');} 
    else if (wv==9&pv==7&hv==7){s.length=3;o[0]=n('--','0');o[1]=n('W','7');o[2]=n('Y','8');} 
    else if (wv==9&pv==7&hv==8){s.length=6;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('V','6');o[3]=n('W','7');o[4]=n('Y','8');o[5]=n('Z','9');} 
    else if (wv==9&pv==6&hv==7){s.length=4;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('W','7');o[3]=n('Y','8');} 
    else if (wv==9&pv==6&hv==8){s.length=2;o[0]=n('--','0');o[1]=n('V','6');} 
    else if (wv==9&pv==5&hv==4){s.length=4;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('W','7');o[3]=n('Y','8');} 
    else if (wv==9&pv==5&hv==8){s.length=4;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('V','6');o[3]=n('W','7');} 
    else if (wv==9&pv==3&hv==4){s.length=2;o[0]=n('--','0');o[1]=n('C','1');} 
    else if (wv==9&pv==3&hv==7){s.length=3;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('V','6');} 
    else if (wv==9&pv==2&hv==5){s.length=2;o[0]=n('--','0');o[1]=n('V','6');} 
    else if (wv==9&pv==2&hv==4){s.length=3;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('T','5');} 
    else if (wv==9&pv==2&hv==7){s.length=2;o[0]=n('--','0');o[1]=n('H','2');} 
    else if (wv==9&pv==4&hv==5){s.length=3;o[0]=n('--','0');o[1]=n('S','4');o[2]=n('T','5');} 
    else if (wv==9&pv==10&hv==4){s.length=3;o[0]=n('--','0');o[1]=n('Q','3');o[2]=n('S','4');} 
    else if (wv==10&pv==13&hv==4){s.length=2;o[0]=n('--','0');o[1]=n('W','7');} 
    else if (wv==10&pv==13&hv==7){s.length=2;o[0]=n('--','0');o[1]=n('W','7');} 
    else if (wv==10&pv==13&hv==8){s.length=3;o[0]=n('--','0');o[1]=n('Y','8');o[2]=n('Z','9');} 
    else if (wv==10&pv==13&hv==11){s.length=3;o[0]=n('--','0');o[1]=n('Y','8');o[2]=n('Z','9');} 
    else if (wv==10&pv==13&hv==12){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==10&pv==13&hv==15){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==10&pv==9&hv==7){s.length=4;o[0]=n('--','0');o[1]=n('W','7');o[2]=n('Y','8');o[3]=n('Z','9');} 
    else if (wv==10&pv==9&hv==8){s.length=4;o[0]=n('--','0');o[1]=n('W','7');o[2]=n('Y','8');o[3]=n('Z','9');} 
    else if (wv==10&pv==9&hv==11){s.length=3;o[0]=n('--','0');o[1]=n('W','7');o[2]=n('Y','8');} 
    else if (wv==10&pv==9&hv==12){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==10&pv==8&hv==4){s.length=2;o[0]=n('--','0');o[1]=n('W','7');} 
    else if (wv==10&pv==8&hv==7){s.length=3;o[0]=n('--','0');o[1]=n('W','7');o[2]=n('Y','8');} 
    else if (wv==10&pv==8&hv==8){s.length=3;o[0]=n('--','0');o[1]=n('W','7');o[2]=n('Y','8');} 
    else if (wv==10&pv==8&hv==11){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==10&pv==7&hv==7){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==10&pv==7&hv==8){s.length=2;o[0]=n('--','0');o[1]=n('W','7');} 
    else if (wv==10&pv==6&hv==4){s.length=2;o[0]=n('--','0');o[1]=n('W','7');} 
    else if (wv==10&pv==6&hv==7){s.length=2;o[0]=n('--','0');o[1]=n('W','7');} 
    else if (wv==10&pv==3&hv==7){s.length=4;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('S','4');o[3]=n('T','5');} 
    else if (wv==10&pv==2&hv==4){s.length=4;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('S','4');o[3]=n('V','6');} 
    else if (wv==10&pv==4&hv==4){s.length=3;o[0]=n('--','0');o[1]=n('Q','3');o[2]=n('S','4');} 
    else if (wv==11&pv==14&hv==11){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==11&pv==14&hv==12){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==11&pv==14&hv==15){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==11&pv==13&hv==8){s.length=4;o[0]=n('--','0');o[1]=n('W','7');o[2]=n('Y','8');o[3]=n('Z','9');} 
    else if (wv==11&pv==13&hv==11){s.length=4;o[0]=n('--','0');o[1]=n('W','7');o[2]=n('Y','8');o[3]=n('Z','9');} 
    else if (wv==11&pv==13&hv==12){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==11&pv==9&hv==7){s.length=5;o[0]=n('--','0');o[1]=n('V','6');o[2]=n('W','7');o[3]=n('Y','8');o[4]=n('Z','9');} 
    else if (wv==11&pv==9&hv==8){s.length=4;o[0]=n('--','0');o[1]=n('W','7');o[2]=n('Y','8');o[3]=n('Z','9');} 
    else if (wv==11&pv==9&hv==11){s.length=4;o[0]=n('--','0');o[1]=n('W','7');o[2]=n('Y','8');o[3]=n('Z','9');} 
    else if (wv==11&pv==8&hv==7){s.length=4;o[0]=n('--','0');o[1]=n('W','7');o[2]=n('Y','8');o[3]=n('Z','9');} 
    else if (wv==11&pv==8&hv==8){s.length=5;o[0]=n('--','0');o[1]=n('V','6');o[2]=n('W','7');o[3]=n('Y','8');o[4]=n('Z','9');} 
    else if (wv==11&pv==8&hv==11){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==11&pv==7&hv==11){s.length=4;o[0]=n('--','0');o[1]=n('V','6');o[2]=n('W','7');o[3]=n('Y','8');} 
    else if (wv==11&pv==7&hv==12){s.length=3;o[0]=n('--','0');o[1]=n('V','6');o[2]=n('Y','8');} 
    else if (wv==11&pv==6&hv==8){s.length=5;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('V','6');o[3]=n('W','7');o[4]=n('Y','8');} 
    else if (wv==11&pv==6&hv==11){s.length=3;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('V','6');} 
    else if (wv==11&pv==5&hv==7){s.length=4;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('T','5');o[3]=n('V','6');} 
    else if (wv==11&pv==5&hv==8){s.length=2;o[0]=n('--','0');o[1]=n('V','6');} 
    else if (wv==11&pv==3&hv==5){s.length=2;o[0]=n('--','0');o[1]=n('V','6');} 
    else if (wv==11&pv==3&hv==4){s.length=2;o[0]=n('--','0');o[1]=n('H','2');} 
    else if (wv==11&pv==3&hv==7){s.length=3;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('T','5');} 
    else if (wv==11&pv==2&hv==5){s.length=4;o[0]=n('--','0');o[1]=n('Q','3');o[2]=n('S','4');o[3]=n('T','5');} 
    else if (wv==11&pv==2&hv==4){s.length=4;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('S','4');o[3]=n('T','5');} 
    else if (wv==11&pv==4&hv==5){s.length=2;o[0]=n('--','0');o[1]=n('T','5');} 
    else if (wv==12&pv==14&hv==11){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==12&pv==13&hv==8){s.length=3;o[0]=n('--','0');o[1]=n('Y','8');o[2]=n('Z','9');} 
    else if (wv==12&pv==13&hv==11){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==12&pv==13&hv==14){s.length=3;o[0]=n('--','0');o[1]=n('W','7');o[2]=n('Y','8');} 
    else if (wv==12&pv==13&hv==20){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==12&pv==9&hv==7){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==12&pv==9&hv==8){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==12&pv==8&hv==12){s.length=3;o[0]=n('--','0');o[1]=n('V','6');o[2]=n('W','7');} 
    else if (wv==12&pv==5&hv==8){s.length=2;o[0]=n('--','0');o[1]=n('H','2');} 
    else if (wv==12&pv==3&hv==7){s.length=3;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('S','4');} 
    else if (wv==12&pv==2&hv==5){s.length=4;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('S','4');o[3]=n('T','5');} 
    else if (wv==12&pv==2&hv==4){s.length=5;o[0]=n('--','0');o[1]=n('H','2');o[2]=n('S','4');o[3]=n('T','5');o[4]=n('V','6');} 
    else if (wv==12&pv==2&hv==7){s.length=2;o[0]=n('--','0');o[1]=n('S','4');} 
    else if (wv==12&pv==4&hv==5){s.length=2;o[0]=n('--','0');o[1]=n('S','4');} 
    else if (wv==12&pv==4&hv==4){s.length=3;o[0]=n('--','0');o[1]=n('Q','3');o[2]=n('S','4');} 
    else if (wv==13&pv==14&hv==11){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==13&pv==14&hv==12){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==13&pv==13&hv==8){s.length=3;o[0]=n('--','0');o[1]=n('W','7');o[2]=n('Y','8');} 
    else if (wv==13&pv==13&hv==11){s.length=3;o[0]=n('--','0');o[1]=n('W','7');o[2]=n('Y','8');} 
    else if (wv==13&pv==13&hv==12){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==13&pv==9&hv==8){s.length=3;o[0]=n('--','0');o[1]=n('W','7');o[2]=n('Y','8');} 
    else if (wv==13&pv==9&hv==11){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==13&pv==9&hv==12){s.length=3;o[0]=n('--','0');o[1]=n('W','7');o[2]=n('Y','8');} 
    else if (wv==13&pv==8&hv==11){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==13&pv==8&hv==12){s.length=4;o[0]=n('--','0');o[1]=n('T','5');o[2]=n('V','6');o[3]=n('Y','8');} 
    else if (wv==13&pv==6&hv==7){s.length=2;o[0]=n('--','0');o[1]=n('V','6');} 
    else if (wv==13&pv==5&hv==7){s.length=3;o[0]=n('--','0');o[1]=n('T','5');o[2]=n('V','6');} 
    else if (wv==13&pv==5&hv==8){s.length=2;o[0]=n('--','0');o[1]=n('H','2');} 
    else if (wv==13&pv==2&hv==4){s.length=2;o[0]=n('--','0');o[1]=n('H','2');} 
    else if (wv==22&pv==15&hv==12){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==22&pv==14&hv==8){s.length=3;o[0]=n('--','0');o[1]=n('Y','8');o[2]=n('Z','9');} 
    else if (wv==22&pv==14&hv==11){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==22&pv==14&hv==12){s.length=3;o[0]=n('--','0');o[1]=n('Y','8');o[2]=n('Z','9');} 
    else if (wv==22&pv==14&hv==15){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==22&pv==13&hv==8){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==22&pv==13&hv==11){s.length=3;o[0]=n('--','0');o[1]=n('Y','8');o[2]=n('Z','9');} 
    else if (wv==22&pv==13&hv==14){s.length=2;o[0]=n('--','0');o[1]=n('W','7');} 
    else if (wv==22&pv==9&hv==8){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==22&pv==8&hv==11){s.length=2;o[0]=n('--','0');o[1]=n('V','6');} 
    else if (wv==22&pv==7&hv==8){s.length=3;o[0]=n('--','0');o[1]=n('V','6');o[2]=n('W','7');} 
    else if (wv==22&pv==6&hv==8){s.length=2;o[0]=n('--','0');o[1]=n('V','6');} 
    else if (wv==22&pv==5&hv==7){s.length=2;o[0]=n('--','0');o[1]=n('V','6');} 
    else if (wv==22&pv==5&hv==8){s.length=2;o[0]=n('--','0');o[1]=n('V','6');} 
    else if (wv==23&pv==15&hv==15){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==23&pv==15&hv==14){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==23&pv==14&hv==8){s.length=3;o[0]=n('--','0');o[1]=n('Y','8');o[2]=n('Z','9');} 
    else if (wv==23&pv==14&hv==11){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==23&pv==14&hv==15){s.length=2;o[0]=n('--','0');o[1]=n('Z','9');} 
    else if (wv==23&pv==14&hv==14){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==23&pv==13&hv==8){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==23&pv==9&hv==12){s.length=4;o[0]=n('--','0');o[1]=n('V','6');o[2]=n('Y','8');o[3]=n('Z','9');} 
    else if (wv==23&pv==8&hv==12){s.length=3;o[0]=n('--','0');o[1]=n('V','6');o[2]=n('W','7');} 
    else if (wv==24&pv==14&hv==11){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==24&pv==8&hv==14){s.length=2;o[0]=n('--','0');o[1]=n('V','6');} 
    else if (wv==24&pv==7&hv==12){s.length=2;o[0]=n('--','0');o[1]=n('V','6');} 
    else if (wv==25&pv==15&hv==11){s.length=3;o[0]=n('--','0');o[1]=n('Y','8');o[2]=n('Z','9');} 
    else if (wv==25&pv==14&hv==8){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==25&pv==14&hv==14){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
    else if (wv==25&pv==13&hv==12){s.length=2;o[0]=n('--','0');o[1]=n('W','7');} 
    else if (wv==29&pv==14&hv==8){s.length=2;o[0]=n('--','0');o[1]=n('Y','8');} 
 
    for (i=0; i<s.length; i++) if (s[i].text == defaultSpeed) s[i].selected = true; 
} 
 
 
function showHideOtherOptions()
{
    r = document.getElementById('OptionsReinforced').style;
    x = document.getElementById('Options4X4').style;
 
    w = document.getElementById('tyreWidthId');
    p = document.getElementById('tyreProfileId');
    h = document.getElementById('tyreWheelId');
    s = document.getElementById('tyreSpeedId');
    wv = w.value;
    pv = p.value;
    hv = h.value;
    sv = s.value;
 
    if (wv==0||pv==0||hv==0||sv==0){sd(r,0);sd(x,0);}
    else if (wv==14&pv==1&hv==6&sv==1){sd(r,1);}
    else if (wv==1&pv==1&hv==1&sv==1){sd(r,1);}
    else if (wv==1&pv==1&hv==2&sv==1){sd(r,1);}
    else if (wv==2&pv==2&hv==3&sv==1){sd(r,1);}
    else if (wv==2&pv==2&hv==3&sv==5){sd(r,1);}
    else if (wv==2&pv==4&hv==3&sv==1){sd(r,1);}
    else if (wv==2&pv==1&hv==2&sv==1){sd(r,1);}
    else if (wv==2&pv==1&hv==2&sv==4){sd(r,1);}
    else if (wv==2&pv==1&hv==3&sv==1){sd(r,1);}
    else if (wv==2&pv==1&hv==3&sv==3){sd(r,1);}
    else if (wv==3&pv==3&hv==3&sv==5){sd(r,1);}
    else if (wv==3&pv==2&hv==3&sv==1){sd(r,1);}
    else if (wv==3&pv==2&hv==3&sv==5){sd(r,1);}
    else if (wv==3&pv==1&hv==2&sv==1){sd(r,1);}
    else if (wv==4&pv==5&hv==5&sv==2){sd(r,1);}
    else if (wv==4&pv==3&hv==5&sv==5){sd(r,1);}
    else if (wv==4&pv==2&hv==2&sv==1){sd(r,1);}
    else if (wv==4&pv==1&hv==3&sv==4){sd(r,1);}
    else if (wv==5&pv==8&hv==4&sv==6){sd(r,1);}
    else if (wv==5&pv==7&hv==2&sv==1){sd(r,1);}
    else if (wv==5&pv==7&hv==4&sv==6){sd(r,1);}
    else if (wv==5&pv==5&hv==4&sv==1){sd(r,1);}
    else if (wv==5&pv==3&hv==5&sv==5){sd(r,1);}
    else if (wv==5&pv==3&hv==4&sv==5){sd(r,1);}
    else if (wv==5&pv==2&hv==5&sv==5){sd(r,1);}
    else if (wv==5&pv==4&hv==3&sv==1){sd(r,1);}
    else if (wv==5&pv==1&hv==5&sv==3){sd(x,1);}
    else if (wv==5&pv==1&hv==5&sv==5){sd(x,1);}
    else if (wv==6&pv==13&hv==8&sv==8){sd(r,1);}
    else if (wv==6&pv==9&hv==7&sv==7){sd(r,1);}
    else if (wv==6&pv==9&hv==8&sv==8){sd(r,1);}
    else if (wv==6&pv==8&hv==4&sv==7){sd(r,1);}
    else if (wv==6&pv==8&hv==7&sv==7){sd(r,1);}
    else if (wv==6&pv==7&hv==7&sv==7){sd(r,1);}
    else if (wv==6&pv==6&hv==4&sv==6){sd(r,1);}
    else if (wv==6&pv==5&hv==5&sv==2){sd(r,1);}
    else if (wv==6&pv==5&hv==4&sv==6){sd(r,1);}
    else if (wv==6&pv==3&hv==5&sv==5){sd(r,1);}
    else if (wv==6&pv==2&hv==5&sv==1){sd(r,1);}
    else if (wv==6&pv==2&hv==5&sv==2){sd(x,1);}
    else if (wv==6&pv==2&hv==5&sv==8){sd(x,1);}
    else if (wv==6&pv==4&hv==5&sv==5){sd(x,1);}
    else if (wv==6&pv==4&hv==4&sv==1){sd(r,1);}
    else if (wv==6&pv==1&hv==3&sv==1){sd(r,1);}
    else if (wv==7&pv==13&hv==8&sv==7){sd(r,1);}
    else if (wv==7&pv==13&hv==8&sv==8){sd(r,1);}
    else if (wv==7&pv==13&hv==11&sv==7){sd(r,1);}
    else if (wv==7&pv==9&hv==4&sv==7){sd(r,1);}
    else if (wv==7&pv==9&hv==7&sv==7){sd(r,1);}
    else if (wv==7&pv==9&hv==8&sv==7){sd(r,1);}
    else if (wv==7&pv==8&hv==7&sv==7){sd(r,1);}
    else if (wv==7&pv==8&hv==8&sv==8){sd(r,1);}
    else if (wv==7&pv==7&hv==7&sv==7){sd(r,1);}
    else if (wv==7&pv==6&hv==4&sv==2){sd(r,1);}
    else if (wv==7&pv==6&hv==4&sv==6){sd(r,1);}
    else if (wv==7&pv==6&hv==4&sv==7){sd(r,1);}
    else if (wv==7&pv==5&hv==4&sv==1){sd(r,1);}
    else if (wv==7&pv==5&hv==4&sv==5){sd(r,1);}
    else if (wv==7&pv==5&hv==4&sv==6){sd(r,1);}
    else if (wv==7&pv==5&hv==7&sv==6){sd(x,1);}
    else if (wv==7&pv==3&hv==5&sv==2){sd(r,1);}
    else if (wv==7&pv==3&hv==5&sv==5){sd(r,1);}
    else if (wv==7&pv==3&hv==4&sv==5){sd(r,1);}
    else if (wv==7&pv==3&hv==4&sv==6){sd(x,1);}
    else if (wv==7&pv==2&hv==5&sv==2){sd(x,1);}
    else if (wv==7&pv==2&hv==4&sv==4){sd(x,1);}
    else if (wv==7&pv==4&hv==5&sv==3){sd(x,1);}
    else if (wv==7&pv==1&hv==3&sv==1){sd(r,1);}
    else if (wv==8&pv==13&hv==8&sv==8){sd(r,1);}
    else if (wv==8&pv==13&hv==12&sv==7){sd(r,1);}
    else if (wv==8&pv==9&hv==8&sv==7){sd(r,1);}
    else if (wv==8&pv==9&hv==8&sv==8){sd(r,1);}
    else if (wv==8&pv==9&hv==11&sv==7){sd(r,1);}
    else if (wv==8&pv==9&hv==11&sv==8){sd(r,1);}
    else if (wv==8&pv==8&hv==7&sv==6){sd(r,1);}
    else if (wv==8&pv==8&hv==7&sv==7){sd(r,1);}
    else if (wv==8&pv==8&hv==7&sv==8){sd(r,1);}
    else if (wv==8&pv==7&hv==7&sv==7){sd(r,1);}
    else if (wv==8&pv==7&hv==7&sv==8){sd(r,1);}
    else if (wv==8&pv==6&hv==4&sv==8){sd(r,1);}
    else if (wv==8&pv==6&hv==7&sv==7){sd(r,1);}
    else if (wv==8&pv==5&hv==4&sv==1){sd(r,1);}
    else if (wv==8&pv==5&hv==8&sv==2){sd(x,1);}
    else if (wv==8&pv==3&hv==7&sv==4){sd(x,1);}
    else if (wv==8&pv==2&hv==4&sv==2){sd(x,1);}
    else if (wv==8&pv==2&hv==4&sv==4){sd(x,1);}
    else if (wv==8&pv==4&hv==5&sv==4){sd(x,1);}
    else if (wv==8&pv==4&hv==4&sv==2){sd(x,1);}
    else if (wv==8&pv==4&hv==4&sv==5){sd(x,1);}
    else if (wv==9&pv==14&hv==8&sv==8){sd(r,1);}
    else if (wv==9&pv==14&hv==12&sv==8){sd(r,1);}
    else if (wv==9&pv==13&hv==11&sv==8){sd(r,1);}
    else if (wv==9&pv==8&hv==8&sv==8){sd(r,1);}
    else if (wv==9&pv==3&hv==7&sv==2){sd(x,1);}
    else if (wv==9&pv==3&hv==7&sv==6){sd(x,1);}
    else if (wv==9&pv==2&hv==4&sv==2){sd(x,1);}
    else if (wv==9&pv==2&hv==4&sv==5){sd(x,1);}
    else if (wv==9&pv==4&hv==5&sv==4){sd(x,1);}
    else if (wv==9&pv==4&hv==5&sv==5){sd(x,1);}
    else if (wv==9&pv==10&hv==4&sv==4){sd(x,1);}
    else if (wv==10&pv==13&hv==8&sv==9){sd(r,1);}
    else if (wv==10&pv==13&hv==11&sv==8){sd(r,1);}
    else if (wv==10&pv==13&hv==11&sv==9){sd(r,1);}
    else if (wv==10&pv==9&hv==8&sv==8){sd(r,1);}
    else if (wv==10&pv==9&hv==11&sv==8){sd(r,1);}
    else if (wv==10&pv==8&hv==8&sv==8){sd(r,1);}
    else if (wv==10&pv==3&hv==7&sv==2){sd(x,1);}
    else if (wv==10&pv==2&hv==4&sv==6){sd(x,1);}
    else if (wv==11&pv==14&hv==12&sv==8){sd(r,1);}
    else if (wv==11&pv==13&hv==8&sv==8){sd(r,1);}
    else if (wv==11&pv==13&hv==11&sv==8){sd(r,1);}
    else if (wv==11&pv==9&hv==8&sv==8){sd(r,1);}
    else if (wv==11&pv==7&hv==12&sv==8){sd(x,1);}
    else if (wv==11&pv==6&hv==11&sv==2){sd(x,1);}
    else if (wv==11&pv==5&hv==7&sv==6){sd(r,1);sd(x,1);}
    else if (wv==11&pv==3&hv==7&sv==5){sd(x,1);}
    else if (wv==11&pv==2&hv==5&sv==3){sd(x,1);}
    else if (wv==11&pv==2&hv==5&sv==5){sd(x,1);}
    else if (wv==11&pv==2&hv==4&sv==2){sd(x,1);}
    else if (wv==12&pv==14&hv==11&sv==8){sd(r,1);}
    else if (wv==12&pv==13&hv==8&sv==8){sd(r,1);}
    else if (wv==12&pv==13&hv==14&sv==8){sd(r,1);sd(x,1);}
    else if (wv==12&pv==4&hv==5&sv==4){sd(x,1);}
    else if (wv==13&pv==14&hv==12&sv==8){sd(r,1);}
    else if (wv==13&pv==13&hv==8&sv==8){sd(r,1);}
    else if (wv==13&pv==13&hv==12&sv==8){sd(r,1);}
    else if (wv==13&pv==8&hv==12&sv==5){sd(r,1);sd(x,1);}
    else if (wv==13&pv==8&hv==12&sv==6){sd(x,1);}
    else if (wv==13&pv==5&hv==8&sv==2){sd(x,1);}
    else if (wv==22&pv==14&hv==11&sv==8){sd(r,1);}
    else if (wv==22&pv==14&hv==12&sv==8){sd(r,1);}
    else if (wv==22&pv==7&hv==8&sv==6){sd(x,1);}
    else if (wv==22&pv==6&hv==8&sv==6){sd(x,1);}
    else if (wv==23&pv==14&hv==8&sv==8){sd(r,1);}
    else if (wv==23&pv==14&hv==11&sv==8){sd(r,1);}
    else if (wv==23&pv==14&hv==15&sv==9){sd(r,1);}
    else if (wv==23&pv==9&hv==12&sv==6){sd(x,1);}
    else if (wv==23&pv==9&hv==12&sv==9){sd(r,1);sd(x,1);}
    else if (wv==23&pv==8&hv==12&sv==6){sd(r,1);sd(x,1);}
    else if (wv==24&pv==7&hv==12&sv==6){sd(r,1);sd(x,1);}
    else if (wv==25&pv==14&hv==14&sv==8){sd(r,1);sd(x,1);}
    else {sd(r,0);sd(x,0);}
}
