<!-- Begin
function cover(form) {
a=eval(form.a.value);
b=eval(form.b.value);
c=eval(form.c.value);
a1=eval(form.a1.value);
b1=eval(form.b1.value);
c1=eval(form.c1.value);

L=eval(a+(2*c));
W=eval(b+(2*c));

L1=eval(a1+(2*c1));
W1=eval(b1+(2*c1));

if(L <= 1520) L= 5;
if(L > 1520 && L <=1680) L=5.5;
if(L > 1680 && L <=1830) L=6;
if(L > 1830 && L <=1980) L=6.5;
if(L > 1980 && L <=2130) L=7;
if(L > 2130 && L <=2290) L=7.5;
if(L > 2290 && L <=2440) L=8;
if(L > 2440 && L <=2590) L=8.5;
if(L > 2590 && L <=2740) L=9;
if(L > 2740 && L <=2900) L=9.5;
if(L > 2900 && L <=3050) L=10;
if(L > 3050 && L <=3200) L=10.5;
if(L > 3200 && L <=3350) L=11;
if(L > 3350 && L <=3510) L=11.5;
if(L > 3510 && L <=3660) L=12;
if(L > 3660 && L <=3810) L=12.5;
if(L > 3810 && L <=3960) L=13;
if(L > 3960 && L <=4110) L=13.5;
if(L > 4110 && L <=4270) L=14;
if(L > 4270 && L <=4420) L=14.5;
if(L > 4420 && L <=4570) L=15;
if(L > 4570 && L <=4720) L=15.5;
if(L > 4720 && L <=4880) L=16;
if(L > 4880 && L <=5030) L=16.5;
if(L > 5030 && L <=5180) L=17;
if(L > 5180 && L <=5330) L=17.5;
if(L > 5330 && L <=5490) L=18;
if(L > 5490 && L <=5640) L=18.5;
if(L > 5640 && L <=5790) L=19;
if(L > 5790 && L <=6100) L=20;

if(W <= 1220) W=4;
if(W > 1220 && W <=1370) W=4.5;
if(W > 1370 && W <=1520) W=5;
if(W > 1520 && W <=1680) W=5.5;
if(W > 1680 && W <=1830) W=6;
if(W > 1830 && W <=1980) W=6.5;
if(W > 1980 && W <=2130) W=7;
if(W > 2130 && W <=2290) W=7.5;
if(W > 2290 && W <=2440) W=8;
if(W > 2440 && W <=2590) W=8.5;
if(W > 2590 && W <=2740) W=9;
if(W > 2740 && W <=2900) W=9.5;
if(W > 2900 && W <=3050) W=10;
if(W > 3050 && W <=3200) W=10.5;
if(W > 3200 && W <=3350) W=11;
if(W > 3350 && W <=3510) W=11.5;
if(W > 3510 && W <=3660) W=12;
if(W > 3660 && W <=3810) W=12.5;

Lm=((Math.round(L*12*.0254*100)) / 100);
Wm=((Math.round(W*12*.0254*100)) / 100);

/*--COST--tot=(((Lm*Wm)*1.42)+((Lm*2+Wm*2)*1.0774)+1.61609+((Lm/0.46)*2+(Wm/0.46)*2)*0.0979)/0.55*/
/*---TRADE---tot=((((((Lm*Wm)*1.42)+((Lm*2+Wm*2)*1.0774)+1.61609+((Lm/0.46)*2+(Wm/0.46)*2)*0.0979)/0.55)*1.75)*80/100)+6.95*/

/*tot=((((((((Lm*Wm)*1.42)+((Lm*2+Wm*2)*1.0774)+1.61609+((Lm/0.46)*2+(Wm/0.46)*2)*0.0979)/0.55)*1.05)*1.45)+11.5)*1.2)*/

/*tot=((((((((Lm*Wm)*1.42)+((Lm*2+Wm*2)*1.0774)+1.61609+((Lm/0.46)*2+(Wm/0.46)*2)*0.0979)/0.55)*1.75)+6.95)*1.05)+11.25)*1.2;*/

tot=((((((((Lm*Wm)*1.42)+((Lm*2+Wm*2)*1.0774)+1.61609+((Lm/0.46)*2+(Wm/0.46)*2)*0.0979)/0.55))*1.15)*1.44)+11.25)*1.2;


tot = "" + ((Math.round(tot * 100)) / 100);

if(tot <56.75) form.x1.value="56.75";
if(tot >400.00) form.x1.value="Please call";

dec1 = tot.substring(tot.length-3, tot.length-2);
dec2 = tot.substring(tot.length-2, tot.length-1);

if (dec1 != '.') {
if (dec2 == '.') tot += "0";
else tot += ".00";
}

form.x1.value =tot;

if(form.x1.value <56.75) form.x1.value="56.75";
if (form.x1.value >400.00) form.x1.value="Please Call";
if (form.x1.value == "NaN.00") form.x1.value="";


if(L1 <= 60) L1=5;
if(L1 > 60 && L1 <=66) L1=5.5;
if(L1 > 66 && L1 <=72) L1=6;
if(L1 > 72 && L1 <=78) L1=6.5;
if(L1 > 78 && L1 <=84) L1=7;
if(L1 > 84 && L1 <=90) L1=7.5;
if(L1 > 90 && L1 <=96) L1=8;
if(L1 > 96 && L1 <=102) L1=8.5;
if(L1 > 102 && L1 <=108) L1=9;
if(L1 > 108 && L1 <=114) L1=9.5;
if(L1 > 114 && L1 <=120) L1=10;
if(L1 > 120 && L1 <=126) L1=10.5;
if(L1 > 126 && L1 <=132) L1=11;
if(L1 > 132 && L1 <=138) L1=11.5;
if(L1 > 138 && L1 <=144) L1=12;
if(L1 > 144 && L1 <=150) L1=12.5;
if(L1 > 150 && L1 <=156) L1=13;
if(L1 > 156 && L1 <=162) L1=13.5;
if(L1 > 162 && L1 <=168) L1=14;
if(L1 > 168 && L1 <=174) L1=14.5;
if(L1 > 174 && L1 <=180) L1=15;
if(L1 > 180 && L1 <=186) L1=15.5;
if(L1 > 186 && L1 <=192) L1=16;
if(L1 > 192 && L1 <=198) L1=16.5;
if(L1 > 198 && L1 <=204) L1=17;
if(L1 > 204 && L1 <=210) L1=17.5;
if(L1 > 210 && L1 <=216) L1=18;
if(L1 > 216 && L1 <=222) L1=19.5;
if(L1 > 222 && L1 <=228) L1=19;
if(L1 > 228 && L1 <=240) L1=20;

if(W1 <= 48) W1=4;
if(W1 > 48 && W1 <=54) W1=4.5;
if(W1 > 54 && W1 <=60) W1=5;
if(W1 > 60 && W1 <=66) W1=5.5;
if(W1 > 66 && W1 <=72) W1=6;
if(W1 > 72 && W1 <=78) W1=6.5;
if(W1 > 78 && W1 <=84) W1=7;
if(W1 > 84 && W1 <=90) W1=7.5;
if(W1 > 90 && W1 <=96) W1=8;
if(W1 > 96 && W1 <=102) W1=8.5;
if(W1 > 102 && W1 <=108) W1=9;
if(W1 > 108 && W1 <=114) W1=9.5;
if(W1 > 114 && W1 <=120) W1=10;
if(W1 > 120 && W1 <=126) W1=10.5;
if(W1 > 126 && W1 <=132) W1=11;
if(W1 > 132 && W1 <=138) W1=11.5;
if(W1 > 138 && W1 <=144) W1=12;
if(W1 > 144 && W1 <=150) W1=12.5;

Li=((Math.round(L1*12*.0254*100)) / 100);
Wi=((Math.round(W1*12*.0254*100)) / 100);

/*--COST--tot1=(((Li*Wi)*1.42)+((Li*2+Wi*2)*1.0774)+1.61609+((Li/0.46)*2+(Wi/0.46)*2)*0.0979)/0.55*/

/*--TRADE--tot1=((((((Li*Wi)*1.42)+((Li*2+Wi*2)*1.0774)+1.61609+((Li/0.46)*2+(Wi/0.46)*2)*0.0979)/0.55)*1.75)*80/100)+6.95*/

/*tot1=((((((((Li*Wi)*1.42)+((Li*2+Wi*2)*1.0774)+1.61609+((Li/0.46)*2+(Wi/0.46)*2)*0.0979)/0.55)*1.05)*1.45)+11.5)*1.2);*/

tot1=((((((((Li*Wi)*1.42)+((Li*2+Wi*2)*1.0774)+1.61609+((Li/0.46)*2+(Wi/0.46)*2)*0.0979)/0.55)*1.75)+6.95)*1.05)+11.25)*1.2;

tot1=((((((((Li*Wi)*1.42)+((Li*2+Wi*2)*1.0774)+1.61609+((Li/0.46)*2+(Wi/0.46)*2)*0.0979)/0.55))*1.15)*1.44)+11.25)*1.2;

tot1 = "" + ((Math.round(tot1 * 100)) / 100);

if(tot1 <56.75) form.x2.value="56.75";
if(tot1 >400.00) form.x2.value="Please Call";

dec3 = tot1.substring(tot1.length-3, tot1.length-2);
dec4 = tot1.substring(tot1.length-2, tot1.length-1);

if (dec3 != '.') {
if (dec4 == '.') tot1 += "0";
else tot1 += ".00";
}

form.x2.value =tot1;

if(form.x2.value <56.75) form.x2.value="56.75";
if (form.x2.value >400.00) form.x2.value="Please Call";
if (form.x2.value == "NaN.00") form.x2.value="";
}

//-->
