var vorota_w, vorota_h, ploshch, var_num, var_num_1, var_num_2, var_total, var_total_2, var_total_all, temp, cost;
function plosch()
{
    vorota_w = 0;
	vorota_h = 0;
	ploshch = 0;
	temp = 1;
    vorota_w = document.vorota_o.w_vor.value;
    vorota_h = document.vorota_o.h_vor.value/100;
	vorota_w = vorota_w/100 * 1.4;
	ploshch = vorota_w * (vorota_h/100);
	document.vorota_o.plosch_vor.value = ploshch;
}
<!-- Activate Cloaking Device
var recnum="";
// Used to initialize arrays.
function initArray() 
   {
   this.length = initArray.arguments.length;
   for (var i = 0; i < this.length; i++) 
      { this[i] = initArray.arguments[i]; }
   }
// Creating arrays.
var var_coeff = new initArray();
var address = new initArray();
var_coeff[1] = "65";
address[1] = "820";
var_coeff[2] = "74";
address[2] = "820";
var_coeff[3] = "80";
address[3] = "820";
var_coeff[4] = "80";
address[4] = "820";
var_coeff[5] = "80";
address[5] = "820";
var_coeff[6] = "60";
address[6] = "820";
// Called by onClick for each radio button - determines & displays message and URL.
function dataBase(vorota_o)
   {
   for (var i = 0; i < 6; i++) 
      {
      if (vorota_o.zash[i].checked) 
         { recnum = vorota_o.zash[i].value; }
      }
   if (  (var_coeff[recnum] != null)  &&  (var_coeff[recnum] != "")  ) 
      { var_num_1 =  var_coeff[recnum];
	  	var_num_2 =  address[recnum];
	  	 }
var_total = ploshch * var_num_1 + var_num_2 * 1;
document.vorota_o.total_var.value = var_total;
	}
<!-- Activate Cloaking Device
var avtnum="";
// Used to initialize arrays.
function initAvtArray() 
   {
   this.length = initAvtArray.arguments.length;
   for (var i = 0; i < this.length; i++) 
      { this[i] = initAvtArray.arguments[i]; }
   }
// Creating arrays.
var avt_coeff = new initAvtArray();
avt_coeff[1] = "0";
avt_coeff[2] = "650";
avt_coeff[3] = "700";
avt_coeff[4] = "740";
// Called by onClick for each radio button - determines & displays message and URL.
function end_dataBase(vorota_o)
   {
   for (var i = 0; i < 4; i++) 
      {
      if (vorota_o.avt[i].checked) 
         { avtnum = vorota_o.avt[i].value; }
      }
   if (  (avt_coeff[avtnum] != null)  &&  (avt_coeff[avtnum] != "")  ) 
      { avt_num_1 =  avt_coeff[avtnum]*1;
	  	}
var_total_2 = var_total * 1 + avt_num_1 * 1;
document.vorota_o.total_var_2.value = var_total_2;
	}
function opt()
        {
        cost = 0;
        if (document.vorota_o.opt_1.checked) { cost = cost + 355;}
        if (document.vorota_o.opt_2.checked) { cost = cost + 295;}
        if (document.vorota_o.opt_3.checked) { cost = cost + 85;}
        if (document.vorota_o.opt_4.checked) { cost = cost + 250;}
        

		
var_total_all = var_total_2 * 1 + cost * 1;
document.vorota_o.total_var_all.value = var_total_all;
        
		}

