window.moveTo(0,0);
	
if (document.all) {
	self.moveTo(0,0);self.resizeTo(screen.availWidth,screen.availHeight);
} else if (document.layers||document.getElementById) {
	if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
		top.window.outerHeight = screen.availHeight;
		top.window.outerWidth = screen.availWidth;
	}
}

function startCalc(one, two, three){
  var element = document.getElementById(one).value;
  var element2 = document.getElementById(two).value;
  document.getElementById(three).value = (element * 1) * (element2 * 1);
}

function totalCalc() {
  var total = 0;
    if(!isNaN(document.getElementById("b_total_item_cal1").value,10)) {
  	total += parseInt(document.getElementById("b_total_item_cal1").value,10);
  }
    if(!isNaN(document.getElementById("b_total_item_cal2").value,10)) {
  	total += parseInt(document.getElementById("b_total_item_cal2").value,10);
  }
    if(!isNaN(document.getElementById("b_total_item_cal3").value,10)) {
  	total += parseInt(document.getElementById("b_total_item_cal3").value,10);
  }
    if(!isNaN(document.getElementById("b_total_item_cal4").value,10)) {
  	total += parseInt(document.getElementById("b_total_item_cal4").value,10);
  }
    if(!isNaN(document.getElementById("b_total_item_cal5").value,10)) {
  	total += parseInt(document.getElementById("b_total_item_cal5").value,10);
  }
    if(!isNaN(document.getElementById("b_total_item_cal6").value,10)) {
  	total += parseInt(document.getElementById("b_total_item_cal6").value,10);
  }
    if(!isNaN(document.getElementById("b_total_item_cal7").value,10)) {
  	total += parseInt(document.getElementById("b_total_item_cal7").value,10);
  }
    if(!isNaN(document.getElementById("b_total_item_cal8").value,10)) {
  	total += parseInt(document.getElementById("b_total_item_cal8").value,10);
  }
    if(!isNaN(document.getElementById("b_total_item_cal9").value,10)) {
  	total += parseInt(document.getElementById("b_total_item_cal9").value,10);
  }
    if(!isNaN(document.getElementById("b_total_item_cal10").value,10)) {
  	total += parseInt(document.getElementById("b_total_item_cal10").value,10);
  }
    if(!isNaN(document.getElementById("bs_total_item_cal1").value,10)) {
  	total += parseInt(document.getElementById("bs_total_item_cal1").value,10);
  }
    if(!isNaN(document.getElementById("bs_total_item_cal2").value,10)) {
  	total += parseInt(document.getElementById("bs_total_item_cal2").value,10);
  }
    if(!isNaN(document.getElementById("bs_total_item_cal3").value,10)) {
  	total += parseInt(document.getElementById("bs_total_item_cal3").value,10);
  }
    if(!isNaN(document.getElementById("bs_total_item_cal4").value,10)) {
  	total += parseInt(document.getElementById("bs_total_item_cal4").value,10);
  }
    if(!isNaN(document.getElementById("bs_total_item_cal5").value,10)) {
  	total += parseInt(document.getElementById("bs_total_item_cal5").value,10);
  }
    if(!isNaN(document.getElementById("bs_total_item_cal6").value,10)) {
  	total += parseInt(document.getElementById("bs_total_item_cal6").value,10);
  }
    if(!isNaN(document.getElementById("bs_total_item_cal7").value,10)) {
  	total += parseInt(document.getElementById("bs_total_item_cal7").value,10);
  }
    if(!isNaN(document.getElementById("bs_total_item_cal8").value,10)) {
  	total += parseInt(document.getElementById("bs_total_item_cal8").value,10);
  }
    if(!isNaN(document.getElementById("bs_total_item_cal9").value,10)) {
  	total += parseInt(document.getElementById("bs_total_item_cal9").value,10);
  }
    if(!isNaN(document.getElementById("bs_total_item_cal10").value,10)) {
  	total += parseInt(document.getElementById("bs_total_item_cal10").value,10);
  }
    if(!isNaN(document.getElementById("a_total_item_cal1").value,10)) {
  	total += parseInt(document.getElementById("a_total_item_cal1").value,10);
  }
    if(!isNaN(document.getElementById("a_total_item_cal2").value,10)) {
  	total += parseInt(document.getElementById("a_total_item_cal2").value,10);
  }
    if(!isNaN(document.getElementById("a_total_item_cal3").value,10)) {
  	total += parseInt(document.getElementById("a_total_item_cal3").value,10);
  }
    if(!isNaN(document.getElementById("a_total_item_cal4").value,10)) {
  	total += parseInt(document.getElementById("a_total_item_cal4").value,10);
  }
    if(!isNaN(document.getElementById("a_total_item_cal5").value,10)) {
  	total += parseInt(document.getElementById("a_total_item_cal5").value,10);
  }
    if(!isNaN(document.getElementById("a_total_item_cal6").value,10)) {
  	total += parseInt(document.getElementById("a_total_item_cal6").value,10);
  }
    if(!isNaN(document.getElementById("a_total_item_cal7").value,10)) {
  	total += parseInt(document.getElementById("a_total_item_cal7").value,10);
  }
    if(!isNaN(document.getElementById("a_total_item_cal8").value,10)) {
  	total += parseInt(document.getElementById("a_total_item_cal8").value,10);
  }
    if(!isNaN(document.getElementById("a_total_item_cal9").value,10)) {
  	total += parseInt(document.getElementById("a_total_item_cal9").value,10);
  }
    if(!isNaN(document.getElementById("a_total_item_cal10").value,10)) {
  	total += parseInt(document.getElementById("a_total_item_cal10").value,10);
  }
    if(!isNaN(document.getElementById("as_total_item_cal1").value,10)) {
  	total += parseInt(document.getElementById("as_total_item_cal1").value,10);
  }
    if(!isNaN(document.getElementById("as_total_item_cal2").value,10)) {
  	total += parseInt(document.getElementById("as_total_item_cal2").value,10);
  }
    if(!isNaN(document.getElementById("as_total_item_cal3").value,10)) {
  	total += parseInt(document.getElementById("as_total_item_cal3").value,10);
  }
    if(!isNaN(document.getElementById("as_total_item_cal4").value,10)) {
  	total += parseInt(document.getElementById("as_total_item_cal4").value,10);
  }
    if(!isNaN(document.getElementById("as_total_item_cal5").value,10)) {
  	total += parseInt(document.getElementById("as_total_item_cal5").value,10);
  }
    if(!isNaN(document.getElementById("as_total_item_cal6").value,10)) {
  	total += parseInt(document.getElementById("as_total_item_cal6").value,10);
  }
    if(!isNaN(document.getElementById("as_total_item_cal7").value,10)) {
  	total += parseInt(document.getElementById("as_total_item_cal7").value,10);
  }
    if(!isNaN(document.getElementById("as_total_item_cal8").value,10)) {
  	total += parseInt(document.getElementById("as_total_item_cal8").value,10);
  }
    if(!isNaN(document.getElementById("as_total_item_cal9").value,10)) {
  	total += parseInt(document.getElementById("as_total_item_cal9").value,10);
  }
    if(!isNaN(document.getElementById("as_total_item_cal10").value,10)) {
  	total += parseInt(document.getElementById("as_total_item_cal10").value,10);
  }
    if(!isNaN(document.getElementById("e_total_item_cal1").value,10)) {
  	total += parseInt(document.getElementById("e_total_item_cal1").value,10);
  }
    if(!isNaN(document.getElementById("e_total_item_cal2").value,10)) {
  	total += parseInt(document.getElementById("e_total_item_cal2").value,10);
  }
    if(!isNaN(document.getElementById("e_total_item_cal3").value,10)) {
  	total += parseInt(document.getElementById("e_total_item_cal3").value,10);
  }
    if(!isNaN(document.getElementById("e_total_item_cal4").value,10)) {
  	total += parseInt(document.getElementById("e_total_item_cal4").value,10);
  }
    if(!isNaN(document.getElementById("e_total_item_cal5").value,10)) {
  	total += parseInt(document.getElementById("e_total_item_cal5").value,10);
  }
    if(!isNaN(document.getElementById("e_total_item_cal6").value,10)) {
  	total += parseInt(document.getElementById("e_total_item_cal6").value,10);
  }
    if(!isNaN(document.getElementById("e_total_item_cal7").value,10)) {
  	total += parseInt(document.getElementById("e_total_item_cal7").value,10);
  }
    if(!isNaN(document.getElementById("e_total_item_cal8").value,10)) {
  	total += parseInt(document.getElementById("e_total_item_cal8").value,10);
  }
    if(!isNaN(document.getElementById("e_total_item_cal9").value,10)) {
  	total += parseInt(document.getElementById("e_total_item_cal9").value,10);
  }
    if(!isNaN(document.getElementById("e_total_item_cal10").value,10)) {
  	total += parseInt(document.getElementById("e_total_item_cal10").value,10);
  }
    if(!isNaN(document.getElementById("es_total_item_cal1").value,10)) {
  	total += parseInt(document.getElementById("es_total_item_cal1").value,10);
  }
    if(!isNaN(document.getElementById("es_total_item_cal2").value,10)) {
  	total += parseInt(document.getElementById("es_total_item_cal2").value,10);
  }
    if(!isNaN(document.getElementById("es_total_item_cal3").value,10)) {
  	total += parseInt(document.getElementById("es_total_item_cal3").value,10);
  }
    if(!isNaN(document.getElementById("es_total_item_cal4").value,10)) {
  	total += parseInt(document.getElementById("es_total_item_cal4").value,10);
  }
    if(!isNaN(document.getElementById("es_total_item_cal5").value,10)) {
  	total += parseInt(document.getElementById("es_total_item_cal5").value,10);
  }
    if(!isNaN(document.getElementById("es_total_item_cal6").value,10)) {
  	total += parseInt(document.getElementById("es_total_item_cal6").value,10);
  }
    if(!isNaN(document.getElementById("es_total_item_cal7").value,10)) {
  	total += parseInt(document.getElementById("es_total_item_cal7").value,10);
  }
    if(!isNaN(document.getElementById("es_total_item_cal8").value,10)) {
  	total += parseInt(document.getElementById("es_total_item_cal8").value,10);
  }
    if(!isNaN(document.getElementById("es_total_item_cal9").value,10)) {
  	total += parseInt(document.getElementById("es_total_item_cal9").value,10);
  }
    if(!isNaN(document.getElementById("es_total_item_cal10").value,10)) {
  	total += parseInt(document.getElementById("es_total_item_cal10").value,10);
  }  { total = total; }
  
  document.getElementById("total").value = total;
}