function totaler(){

 var numberForms = document.form1.length;

	sub_total=0;
	//alert('document.form1.product1.checked: ' + document.form1.product1.checked);

		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product1_col1.value)) * document.form1.price_product1_col1.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product2_col1.value)) * document.form1.price_product2_col1.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product2_col2.value)) * document.form1.price_product2_col2.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product3_col1.value)) * document.form1.price_product3_col1.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product3_col2.value)) * document.form1.price_product3_col2.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product3_col3.value)) * document.form1.price_product3_col3.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product3_col4.value)) * document.form1.price_product3_col4.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product3_col5.value)) * document.form1.price_product3_col5.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product3_col6.value)) * document.form1.price_product3_col6.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product3_col7.value)) * document.form1.price_product3_col7.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product4_col1.value)) * document.form1.price_product4_col1.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product4_col2.value)) * document.form1.price_product4_col2.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product5_col1.value)) * document.form1.price_product5_col1.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product5_col2.value)) * document.form1.price_product5_col2.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product6_col1.value)) * document.form1.price_product6_col1.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product6_col2.value)) * document.form1.price_product6_col2.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product6_col3.value)) * document.form1.price_product6_col3.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product7_col1.value)) * document.form1.price_product7_col1.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product7_col2.value)) * document.form1.price_product7_col2.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product7_col3.value)) * document.form1.price_product7_col3.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product7_col4.value)) * document.form1.price_product7_col4.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product8_col1.value)) * document.form1.price_product8_col1.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product8_col2.value)) * document.form1.price_product8_col2.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product8_col3.value)) * document.form1.price_product8_col3.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product8_col4.value)) * document.form1.price_product8_col4.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product8_col5.value)) * document.form1.price_product8_col5.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product8_col6.value)) * document.form1.price_product8_col6.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product8_col7.value)) * document.form1.price_product8_col7.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product8_col8.value)) * document.form1.price_product8_col8.value); 

		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product9_col1.value)) * document.form1.price_product9_col1.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product9_col2.value)) * document.form1.price_product9_col2.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product9_col3.value)) * document.form1.price_product9_col3.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product9_col4.value)) * document.form1.price_product9_col4.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product9_col5.value)) * document.form1.price_product9_col5.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product9_col6.value)) * document.form1.price_product9_col6.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product9_col7.value)) * document.form1.price_product9_col7.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product9_col8.value)) * document.form1.price_product9_col8.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product9_col9.value)) * document.form1.price_product9_col9.value); 

		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product10_col1.value)) * document.form1.price_product10_col1.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product10_col2.value)) * document.form1.price_product10_col2.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product10_col3.value)) * document.form1.price_product10_col3.value); 

		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product11_col1.value)) * document.form1.price_product11_col1.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product11_col2.value)) * document.form1.price_product11_col2.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product11_col3.value)) * document.form1.price_product11_col3.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product11_col4.value)) * document.form1.price_product11_col4.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product11_col5.value)) * document.form1.price_product11_col5.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product11_col6.value)) * document.form1.price_product11_col6.value); 

		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product12_col1.value)) * document.form1.price_product12_col1.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product12_col2.value)) * document.form1.price_product12_col2.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product12_col3.value)) * document.form1.price_product12_col3.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product12_col4.value)) * document.form1.price_product12_col4.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product12_col5.value)) * document.form1.price_product12_col5.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product12_col6.value)) * document.form1.price_product12_col6.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product12_col7.value)) * document.form1.price_product12_col7.value); 

		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product13_col1.value)) * document.form1.price_product13_col1.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product13_col2.value)) * document.form1.price_product13_col2.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product13_col3.value)) * document.form1.price_product13_col3.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product13_col4.value)) * document.form1.price_product13_col4.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product13_col5.value)) * document.form1.price_product13_col5.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product13_col6.value)) * document.form1.price_product13_col6.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product13_col7.value)) * document.form1.price_product13_col7.value); 

		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product14_col1.value)) * document.form1.price_product14_col1.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product14_col2.value)) * document.form1.price_product14_col2.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product14_col3.value)) * document.form1.price_product14_col3.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product14_col4.value)) * document.form1.price_product14_col4.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product14_col5.value)) * document.form1.price_product14_col5.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product14_col6.value)) * document.form1.price_product14_col6.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product14_col7.value)) * document.form1.price_product14_col7.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product14_col8.value)) * document.form1.price_product14_col8.value); 

		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product15_col1.value)) * document.form1.price_product15_col1.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product15_col2.value)) * document.form1.price_product15_col2.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product15_col3.value)) * document.form1.price_product15_col3.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product15_col4.value)) * document.form1.price_product15_col4.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product15_col5.value)) * document.form1.price_product15_col5.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product15_col6.value)) * document.form1.price_product15_col6.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product15_col7.value)) * document.form1.price_product15_col7.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product15_col8.value)) * document.form1.price_product15_col8.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product15_col9.value)) * document.form1.price_product15_col9.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product15_col10.value)) * document.form1.price_product15_col10.value); 

		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product16_col1.value)) * document.form1.price_product16_col1.value); 

		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product17_col1.value)) * document.form1.price_product17_col1.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product17_col2.value)) * document.form1.price_product17_col2.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product17_col3.value)) * document.form1.price_product17_col3.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product17_col4.value)) * document.form1.price_product17_col4.value); 

		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product18_col1.value)) * document.form1.price_product18_col1.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product18_col2.value)) * document.form1.price_product18_col2.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product18_col3.value)) * document.form1.price_product18_col3.value); 

		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product19_col1.value)) * document.form1.price_product19_col1.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product19_col2.value)) * document.form1.price_product19_col2.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product19_col3.value)) * document.form1.price_product19_col3.value); 

		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product20_col1.value)) * document.form1.price_product20_col1.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product20_col2.value)) * document.form1.price_product20_col2.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product20_col3.value)) * document.form1.price_product20_col3.value); 

		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product21_col1.value)) * document.form1.price_product21_col1.value); 

		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product22_col1.value)) * document.form1.price_product22_col1.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product22_col2.value)) * document.form1.price_product22_col2.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product22_col3.value)) * document.form1.price_product22_col3.value); 

		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product23_col1.value)) * document.form1.price_product23_col1.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product23_col2.value)) * document.form1.price_product23_col2.value); 

		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product24_col1.value)) * document.form1.price_product24_col1.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product24_col2.value)) * document.form1.price_product24_col2.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product24_col3.value)) * document.form1.price_product24_col3.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product24_col4.value)) * document.form1.price_product24_col4.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product24_col5.value)) * document.form1.price_product24_col5.value); 

		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product25_col1.value)) * document.form1.price_product25_col1.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product25_col2.value)) * document.form1.price_product25_col2.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product25_col8.value)) * document.form1.price_product25_col8.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product25_col3.value)) * document.form1.price_product25_col3.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product25_col9.value)) * document.form1.price_product25_col9.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product25_col4.value)) * document.form1.price_product25_col4.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product25_col11.value)) * document.form1.price_product25_col11.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product25_col5.value)) * document.form1.price_product25_col5.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product25_col12.value)) * document.form1.price_product25_col12.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product25_col6.value)) * document.form1.price_product25_col6.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product25_col13.value)) * document.form1.price_product25_col13.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product25_col7.value)) * document.form1.price_product25_col7.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product25_col14.value)) * document.form1.price_product25_col14.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product25_col10.value)) * document.form1.price_product25_col10.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product25_col16.value)) * document.form1.price_product25_col16.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product25_col15.value)) * document.form1.price_product25_col15.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product25_col17.value)) * document.form1.price_product25_col17.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product25_col18.value)) * document.form1.price_product25_col18.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product25_col19.value)) * document.form1.price_product25_col19.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product25_col21.value)) * document.form1.price_product25_col21.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product25_col20.value)) * document.form1.price_product25_col20.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product25_col22.value)) * document.form1.price_product25_col22.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product25_col23.value)) * document.form1.price_product25_col23.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product25_col24.value)) * document.form1.price_product25_col24.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product25_col26.value)) * document.form1.price_product25_col26.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product25_col25.value)) * document.form1.price_product25_col25.value); 
		sub_total = sub_total + (Math.abs(Math.round(document.form1.qty_product25_col27.value)) * document.form1.price_product25_col27.value); 

	document.form1.total.value = sub_total.toFixed(2) + ' CDN';
}