     function calcprice(weight) {
          var standart = new Array(21);
          standart[0] = 5;
          standart[1] = 3.99;
          standart[2] = 4.56;
          standart[3] = 5.12;
          standart[4] = 5.68;
          standart[5] = 6.24;
          standart[6] = 6.80;
          standart[7] = 7.44;
          standart[8] = 7.99;
          standart[9] = 8.56;
          standart[10] = 8.56;
          standart[11] = 9.12;
          standart[12] = 9.52;
          standart[13] = 9.92;
          standart[14] = 10.32;
          standart[15] = 10.72;
          standart[16] = 11.12;
          standart[17] = 11.52;
          standart[18] = 11.92;
          standart[19] = 12.32;
          standart[20] = 12.72;
          var express = new Array(21);
          express[0] = 10.00;
          express[1] = 4.99;
          express[2] = 5.70;
          express[3] = 6.40;
          express[4] = 7.10;
          express[5] = 7.80;
          express[6] = 8.50;
          express[7] = 9.30;
          express[8] = 9.99;
          express[9] = 10.70;
          express[10] = 10.70;
          express[11] = 11.40;
          express[12] = 11.90;
          express[13] = 12.40;
          express[14] = 12.90;
          express[15] = 13.40;
          express[16] = 13.90;
          express[17] = 14.40;
          express[18] = 14.90;
          express[19] = 15.40;
          express[20] = 15.90;
          type = document.all.type_c.value;
          oldprice = parseFloat(document.all.price_old.value);
          switch(type) {
               case "1":
                    if(weight>20) {
                         prdel = (standart[20]+((weight-20)*0.33)); 
						 document.all.price_del.value = Math.round(100*prdel)/100;
                    } else {
                         prdel = standart[weight];
						 document.all.price_del.value = Math.round(100*prdel)/100;
                    }
                    document.all.price_delivery.value = Math.round(100*(prdel+oldprice))/100;
                 //   document.getElementByID("price_delivery2").value  = 10;//Math.round(100*(prdel+oldprice))/100;

                    break;
               case "2":
                    if(weight>20) {
                         prdel = (express[20]+((weight-20)*0.38)); 
						 document.all.price_del.value = prdel;
                    } else {
                         prdel = express[weight];
						 document.all.price_del.value = prdel;
                    }
                    document.all.price_delivery.value = Math.round(100*(prdel+oldprice))/100;
//document.getElementByID("price_delivery2").value  = Math.round(100*(prdel+oldprice))/100;
                
    break;
          
          }
     }



function preloadImages() {
   if (document.images) {
      for (var i = 0; i < preloadImages.arguments.length; i++) {
         (new Image()).src = preloadImages.arguments[i];
      }
   }
}

function takePrice() {
	document.all.take.value = document.all.price_delivery.value;
document.all.paypal_sum.value = document.all.price_delivery.value;
}
