

function CKB(V)  { 

for (i=1; i<=8; i+=1){ 
document.getElementById("T1"+i).style.fontWeight = "normal";
document.getElementById("Fc"+i).src ="img/Fleche0.gif";
}

document.getElementById("T1"+V).style.fontWeight = "bold";
document.getElementById("Fc"+V).src ="img/Fleche1.gif";
document.frm.CK1[V-1].checked = true;

     if (V==1) v = 20321280, f=5;
else if (V==2) v = 19756800, f=4;
else if (V==3) v = 19051200, f=4;
else if (V==4) v = 18900000, f=1;
else if (V==5) v = 18662400, f=4;
else if (V==6) v = 18522000, f=3;
else if (V==7) v = 17287200, f=4;
else if (V==8) v = 17280000, f=2;

var V12  =  (v * 12)/1000000;
var V14  =  (v * 14)/1000000;
var V16  =  (v * 16)/1000000;
var V18  =  (v * 18)/1000000;
var V20  =  (v * 20)/1000000;

var V27  =  (v * 27)/1000000;
var V30  =  (v * 30)/1000000;

parent.window.document.frm.V12.value = V12.toFixed(f) + " mm";
parent.window.document.frm.V14.value = V14.toFixed(f) + " mm";
parent.window.document.frm.V16.value = V16.toFixed(f) + " mm";
parent.window.document.frm.V18.value = V18.toFixed(f) + " mm";
parent.window.document.frm.V20.value = V20.toFixed(f) + " mm";


parent.window.document.frm.V24.value = (V12 *2).toFixed(f) + " mm";
parent.window.document.frm.V28.value = (V14 *2).toFixed(f) + " mm";
parent.window.document.frm.V32.value = (V16 *2).toFixed(f) + " mm";
parent.window.document.frm.V36.value = (V18 *2).toFixed(f) + " mm";
parent.window.document.frm.V40.value = (V20 *2).toFixed(f) + " mm";

parent.window.document.frm.V48.value = (V12 *4).toFixed(f) + " mm";
parent.window.document.frm.V56.value = (V14 *4).toFixed(f) + " mm";
parent.window.document.frm.V64.value = (V16 *4).toFixed(f) + " mm";
parent.window.document.frm.V72.value = (V18 *4).toFixed(f) + " mm";
parent.window.document.frm.V80.value = (V20 *4).toFixed(f) + " mm";

parent.window.document.frm.V96.value  = (V12 *8).toFixed(f) + " mm";
parent.window.document.frm.V112.value = (V14 *8).toFixed(f) + " mm";
parent.window.document.frm.V128.value = (V16 *8).toFixed(f) + " mm";
parent.window.document.frm.V144.value = (V18 *8).toFixed(f) + " mm";
parent.window.document.frm.V160.value = (V20 *8).toFixed(f) + " mm";

parent.window.document.frm.V27.value = V27.toFixed(f) + " mm";
parent.window.document.frm.V30.value = V30.toFixed(f) + " mm";

if (V!=2) parent.window.document.getElementById("V27").style.color = "#000000", parent.window.document.getElementById("P27").style.color = "#000000";
if (V!=5) parent.window.document.getElementById("V48").style.color = "#000000", parent.window.document.getElementById("P48").style.color = "#000000", parent.window.document.getElementById("S48").style.color = "#000000";
if (V!=3 ||
    V!=4 ||
    V!=6) parent.window.document.getElementById("V28").style.color = "#000000", parent.window.document.getElementById("P28").style.color = "#000000", parent.window.document.getElementById("S28").style.color = "#000000";
if (V!=7 ||
    V!=8) parent.window.document.getElementById("V27").style.color = "#000000", parent.window.document.getElementById("V30").style.color = "#000000", parent.window.document.getElementById("P30").style.color = "#000000";


if (V==2) parent.window.document.getElementById("V27").style.color = "#009933", parent.window.document.getElementById("P27").style.color = "#009933";
if (V==3 ||
    V==4) parent.window.document.getElementById("V28").style.color = "#009933", parent.window.document.getElementById("P28").style.color = "#009933", parent.window.document.getElementById("S28").style.color = "#009933";
if (V==5) parent.window.document.getElementById("V48").style.color = "#009933", parent.window.document.getElementById("P48").style.color = "#009933", parent.window.document.getElementById("S48").style.color = "#009933";
if (V==6) parent.window.document.getElementById("V28").style.color = "#FF0000", parent.window.document.getElementById("P28").style.color = "#FF0000", parent.window.document.getElementById("S28").style.color = "#FF0000";
if (V==7 ||
    V==8) parent.window.document.getElementById("V30").style.color = "#FF0000", parent.window.document.getElementById("P30").style.color = "#FF0000";


parent.window.document.body.focus();

}
