var cfssunitprice;
var subtotalcfssval;

function cfss() {



var getTable = document.getElementById('cfss');
var countRow = getTable.rows.length; 
var iteration=countRow;
 

var TR=document.createElement('tr');
var TD=document.createElement('td');


//-----------------------------------------------------------


var TD=document.createElement('td');

 var cfsstyp = document.createElement('select');
 cfsstyp.name = "cfss_type["+iteration+"]";
 cfsstyp.id="cfss_type["+iteration+"]";

cfsstyp.options[0] = new Option('3/4" Deep STANDARD', '3/4" Deep STANDARD');
cfsstyp.options[1] = new Option('3/4" Deep GALLERY', '3/4" Deep GALLERY');
cfsstyp.options[2] = new Option('1-1/2" Deep GALLERY', '1-1/2" Deep GALLERY');
cfsstyp.options[3] = new Option('2-1/2" Deep GALLERY', '2-1/2" Deep GALLERY');


cfsstyp.onchange=function(){cfssGetSize(this.parentNode.parentNode.rowIndex); cfssGetUnitPrice(this.parentNode.parentNode.rowIndex); subtotalcfss(this.parentNode.parentNode.rowIndex);}; 

TD.appendChild(cfsstyp);

//------------------------------------------

var TD2=document.createElement('td');

 var eslon = document.createElement('select');
 eslon.name = "cfss_size["+iteration+"]";
 eslon.id="cfss_size["+iteration+"]";

 eslon.options[0] = new Option('6x8', '6x8');
 eslon.options[1] = new Option('8x10', '8x10');
 eslon.options[2] = new Option('9x12', '9x12');
 eslon.options[3] = new Option('11x14', '11x14');
 eslon.options[4] = new Option('12x12', '12x12');
 eslon.options[5] = new Option('12x16', '12x16');
 eslon.options[6] = new Option('12x24', '12x24');
 eslon.options[7] = new Option('14x14', '14x14');
 eslon.options[8] = new Option('14x18', '14x18');
 eslon.options[9] = new Option('16x16', '16x16');
 eslon.options[10] = new Option('16x20', '16x20');
 eslon.options[11] = new Option('18x24', '18x24');
 eslon.options[12] = new Option('18x36', '18x36');
 eslon.options[13] = new Option('20x20', '20x20');
 eslon.options[14] = new Option('20x24', '20x24');
 eslon.options[15] = new Option('20x30', '20x30');
 eslon.options[16] = new Option('20x40', '20x40');
 eslon.options[17] = new Option('22x28', '22x28');
 eslon.options[18] = new Option('24x24', '24x24');
 eslon.options[19] = new Option('24x30', '24x30');
 eslon.options[20] = new Option('24x36', '24x36');
 eslon.options[21] = new Option('24x48*', '24x48*');
 eslon.options[22] = new Option('30x30*', '30x30*');
 eslon.options[23] = new Option('30x36*', '30x36*');
 eslon.options[24] = new Option('30x40*', '30x40*');
 eslon.options[25] = new Option('36x48*', '36x48*');
 

 
 
eslon.onchange=function(){cfssGetUnitPrice(this.parentNode.parentNode.rowIndex); subtotalcfss(this.parentNode.parentNode.rowIndex);};

TD2.appendChild(eslon);


//------------------------------

var TD3=document.createElement('td');

var csscus = document.createElement('input');
 csscus.type = 'text'; 
 csscus.size=13; 
 csscus.id = "cfss_cussize["+iteration+"]";
 csscus.name = "cfss_cussize["+iteration+"]";

csscus.onclick=function(){cfssGetUnitPrice(this.parentNode.parentNode.rowIndex);};
csscus.onfocus=function(){startcustomesizecfss(this.parentNode.parentNode.rowIndex);};
csscus.onblur=function(){stopcustomesizecfss()};

TD3.appendChild(csscus);  



//------------------------------

var TD4=document.createElement('td');

var eslq = document.createElement('input');
 eslq.type = 'text'; 
 eslq.size=13; 
 eslq.id = "cfss_quantity["+iteration+"]";
 eslq.name = "cfss_quantity["+iteration+"]";

eslq.onclick=function(){cfssGetUnitPrice(this.parentNode.parentNode.rowIndex);};
eslq.onfocus=function(){startCalcfss(this.parentNode.parentNode.rowIndex);};
eslq.onblur=function(){stopCalcfss()};

TD4.appendChild(eslq);  

//-----------------------------

var TD5=document.createElement('td');

var quantity = document.createElement('input');
 quantity.type = 'hidden'; 
 quantity.value=''; 
 quantity.size=13;
 quantity.name = "cfss_unit_price["+iteration+"]";
 quantity.id="cfss_unit_price["+iteration+"]";
 
 
var esld = document.createElement('div');
esld.innerHTML = " ";
esld.name = "cfss_unit_price_div"+iteration;
esld.id = "cfss_unit_price_div"+iteration; 


 TD5.appendChild(quantity);
 TD5.appendChild(esld);

//---------------------------

var TD6=document.createElement('td');

var eslst = document.createElement('input');
 eslst.type = 'hidden'; 
 eslst.value=''; 
 eslst.size=13; 
 eslst.id = "cfss_sub_total["+iteration+"]"; 
 eslst.name="cfss_sub_total["+iteration+"]"; 
 
var eslstd = document.createElement('div');
eslstd.innerHTML = " ";
eslstd.align = "right";
eslstd.name = "cfss_sub_total_div"+iteration;
eslstd.id = "cfss_sub_total_div"+iteration; 



 TD6.appendChild(eslst);
 TD6.appendChild(eslstd);

//---------------------------


TR.appendChild(TD);
TR.appendChild(TD2);
TR.appendChild(TD3);
TR.appendChild(TD4);
TR.appendChild(TD5);
TR.appendChild(TD6);



document.getElementById('cfss').appendChild(TR);



}





//-----------------------------------------------------------------		

	

function cfssremoveRow()

{

  var tbl = document.getElementById('easels');
  var lastRow = tbl.rows.length;
  if (lastRow > 2) tbl.deleteRow(lastRow - 1);

}


/*********************************************************************************************************************************/





function cfssGetSize(rownumber){


var cfss_type_id="cfss_type["+rownumber+"]";
var cfss_size_id="cfss_size["+rownumber+"]";


var cfss_type=document.getElementById(cfss_type_id).value;
var sizelist=document.getElementById(cfss_size_id);


			switch (cfss_type){

			case '2-1/2" Deep GALLERY':
					
			
			for (var i=sizelist.options.length-1; i>=0; i--){
    		sizelist.options[i] = null;
  			}	

	 sizelist.options[0] = new Option('6x8', '6x8');
	 sizelist.options[1] = new Option('8x10', '8x10');
	 sizelist.options[2] = new Option('9x12', '9x12');
	 sizelist.options[3] = new Option('11x14', '11x14');
	 sizelist.options[4] = new Option('12x12', '12x12');
	 sizelist.options[5] = new Option('12x16', '12x16');
	 sizelist.options[6] = new Option('12x24', '12x24');
	 sizelist.options[7] = new Option('14x14', '14x14');
	 sizelist.options[8] = new Option('14x18', '14x18');
	 sizelist.options[9] = new Option('16x16', '16x16');
	 sizelist.options[10] = new Option('16x20', '16x20');
	 sizelist.options[11] = new Option('18x24', '18x24');
	 sizelist.options[12] = new Option('18x36', '18x36');
	 sizelist.options[13] = new Option('20x20', '20x20');
	 sizelist.options[14] = new Option('20x24', '20x24');
	 sizelist.options[15] = new Option('20x30', '20x30');
	 sizelist.options[16] = new Option('20x40', '20x40');
	 sizelist.options[17] = new Option('22x28', '22x28');
	 sizelist.options[18] = new Option('24x24', '24x24');
	 sizelist.options[19] = new Option('24x30', '24x30');
	 sizelist.options[20] = new Option('24x36', '24x36');
	 sizelist.options[21] = new Option('24x48*', '24x48*');
	 sizelist.options[22] = new Option('30x30*', '30x30*');
	 sizelist.options[23] = new Option('30x36*', '30x36*');
	 sizelist.options[24] = new Option('30x40*', '30x40*');
	 sizelist.options[25] = new Option('36x48*', '36x48*');
	 sizelist.options[26] = new Option('48X60*', '48X60*');
	 sizelist.options[27] = new Option('48X72*', '48X72*');
	 sizelist.options[28] = new Option('48X96*', '48X96*');
	 sizelist.options[29] = new Option('60X84*', '60X84*');
	 sizelist.options[30] = new Option('60X96*', '60X96*');
	 sizelist.options[31] = new Option('72X96*', '72X96*');
	 sizelist.options[32] = new Option('72X120*', '72X120*');
	 sizelist.options[33] = new Option('72X144*', '72X144*'); 
						
			
			
			break
			

			case '1-1/2" Deep GALLERY':
			
			for (var i=sizelist.options.length-1; i>=0; i--){
    		sizelist.options[i] = null;
  			}	

	 sizelist.options[0] = new Option('6x8', '6x8');
	 sizelist.options[1] = new Option('8x10', '8x10');
	 sizelist.options[2] = new Option('9x12', '9x12');
	 sizelist.options[3] = new Option('11x14', '11x14');
	 sizelist.options[4] = new Option('12x12', '12x12');
	 sizelist.options[5] = new Option('12x16', '12x16');
	 sizelist.options[6] = new Option('12x24', '12x24');
	 sizelist.options[7] = new Option('14x14', '14x14');
	 sizelist.options[8] = new Option('14x18', '14x18');
	 sizelist.options[9] = new Option('16x16', '16x16');
	 sizelist.options[10] = new Option('16x20', '16x20');
	 sizelist.options[11] = new Option('18x24', '18x24');
	 sizelist.options[12] = new Option('18x36', '18x36');
	 sizelist.options[13] = new Option('20x20', '20x20');
	 sizelist.options[14] = new Option('20x24', '20x24');
	 sizelist.options[15] = new Option('20x30', '20x30');
	 sizelist.options[16] = new Option('20x40', '20x40');
	 sizelist.options[17] = new Option('22x28', '22x28');
	 sizelist.options[18] = new Option('24x24', '24x24');
	 sizelist.options[19] = new Option('24x30', '24x30');
	 sizelist.options[20] = new Option('24x36', '24x36');
	 sizelist.options[21] = new Option('24x48*', '24x48*');
	 sizelist.options[22] = new Option('30x30*', '30x30*');
	 sizelist.options[23] = new Option('30x36*', '30x36*');
	 sizelist.options[24] = new Option('30x40*', '30x40*');
	 sizelist.options[25] = new Option('36x48*', '36x48*');
	 sizelist.options[26] = new Option('48X60*', '48X60*');
	 sizelist.options[27] = new Option('48X72*', '48X72*');
	 sizelist.options[28] = new Option('48X96*', '48X96*');
	 sizelist.options[29] = new Option('60X84*', '60X84*');
	 sizelist.options[30] = new Option('60X96*', '60X96*');
	 sizelist.options[31] = new Option('72X96*', '72X96*');
	
			
			
			break			

			case '3/4" Deep GALLERY':
			
			
			for (var i=sizelist.options.length-1; i>=0; i--){
    		sizelist.options[i] = null;
  			}	

	 sizelist.options[0] = new Option('6x8', '6x8');
	 sizelist.options[1] = new Option('8x10', '8x10');
	 sizelist.options[2] = new Option('9x12', '9x12');
	 sizelist.options[3] = new Option('11x14', '11x14');
	 sizelist.options[4] = new Option('12x12', '12x12');
	 sizelist.options[5] = new Option('12x16', '12x16');
	 sizelist.options[6] = new Option('12x24', '12x24');
	 sizelist.options[7] = new Option('14x14', '14x14');
	 sizelist.options[8] = new Option('14x18', '14x18');
	 sizelist.options[9] = new Option('16x16', '16x16');
	 sizelist.options[10] = new Option('16x20', '16x20');
	 sizelist.options[11] = new Option('18x24', '18x24');
	 sizelist.options[12] = new Option('18x36', '18x36');
	 sizelist.options[13] = new Option('20x20', '20x20');
	 sizelist.options[14] = new Option('20x24', '20x24');
	 sizelist.options[15] = new Option('20x30', '20x30');
	 sizelist.options[16] = new Option('20x40', '20x40');
	 sizelist.options[17] = new Option('22x28', '22x28');
	 sizelist.options[18] = new Option('24x24', '24x24');
	 sizelist.options[19] = new Option('24x30', '24x30');
	 sizelist.options[20] = new Option('24x36', '24x36');
	 sizelist.options[21] = new Option('24x48*', '24x48*');
	 sizelist.options[22] = new Option('30x30*', '30x30*');
	 sizelist.options[23] = new Option('30x36*', '30x36*');
	 sizelist.options[24] = new Option('30x40*', '30x40*');
	 sizelist.options[25] = new Option('36x48*', '36x48*');

			
			break
			
			case '3/4" Deep STANDARD':
			
			
			for (var i=sizelist.options.length-1; i>=0; i--){
    		sizelist.options[i] = null;
  			}	

	 sizelist.options[0] = new Option('6x8', '6x8');
	 sizelist.options[1] = new Option('8x10', '8x10');
	 sizelist.options[2] = new Option('9x12', '9x12');
	 sizelist.options[3] = new Option('11x14', '11x14');
	 sizelist.options[4] = new Option('12x12', '12x12');
	 sizelist.options[5] = new Option('12x16', '12x16');
	 sizelist.options[6] = new Option('12x24', '12x24');
	 sizelist.options[7] = new Option('14x14', '14x14');
	 sizelist.options[8] = new Option('14x18', '14x18');
	 sizelist.options[9] = new Option('16x16', '16x16');
	 sizelist.options[10] = new Option('16x20', '16x20');
	 sizelist.options[11] = new Option('18x24', '18x24');
	 sizelist.options[12] = new Option('18x36', '18x36');
	 sizelist.options[13] = new Option('20x20', '20x20');
	 sizelist.options[14] = new Option('20x24', '20x24');
	 sizelist.options[15] = new Option('20x30', '20x30');
	 sizelist.options[16] = new Option('20x40', '20x40');
	 sizelist.options[17] = new Option('22x28', '22x28');
	 sizelist.options[18] = new Option('24x24', '24x24');
	 sizelist.options[19] = new Option('24x30', '24x30');
	 sizelist.options[20] = new Option('24x36', '24x36');
	 sizelist.options[21] = new Option('24x48*', '24x48*');
	 sizelist.options[22] = new Option('30x30*', '30x30*');
	 sizelist.options[23] = new Option('30x36*', '30x36*');
	 sizelist.options[24] = new Option('30x40*', '30x40*');
	 sizelist.options[25] = new Option('36x48*', '36x48*');
		
			
			break
			
					

	
			}

	
	
	

	


}




/*------------------------------------------------------------------*/



function cfssGetUnitPrice(rownumber){

var cfss_type_id="cfss_type["+rownumber+"]";
var cfss_size_id="cfss_size["+rownumber+"]";
var cfss_unit_price_id="cfss_unit_price["+rownumber+"]";
var cfss_unit_price_div_id="cfss_unit_price_div"+rownumber;

var cfss_type=document.getElementById(cfss_type_id).value;
var cfss_size=document.getElementById(cfss_size_id).value;

	

			switch (cfss_type){

			case '2-1/2" Deep GALLERY':
			
			
				switch (cfss_size){

			case '6x8':
			cfssunitprice = "8.10";			
			break
			
			case '8x10':
			cfssunitprice = "8.78";			
			break
			
			case '9x12':
			cfssunitprice = "9.45";			
			break
			
			case '11x14':
			cfssunitprice = "10.80";			
			break
			
			case '12x12':
			cfssunitprice = "12.15";			
			break
			
			case '12x16':
			cfssunitprice = "13.50";			
			break
			
			case '12x24':
			cfssunitprice = "13.50";			
			break
			
			case '14x14':
			cfssunitprice = "13.50";			
			break
			
			case '14x18':
			cfssunitprice = "14.18";			
			break
			
			case '16x16':
			cfssunitprice = "14.85";			
			break
			
			case '16x20':
			cfssunitprice = "16.20";			
			break
			
			case '18x24':
			cfssunitprice = "18.90";			
			break
			
			case '18x36':
			cfssunitprice = "21.60";			
			break
			
			case '20x20':
			cfssunitprice = "17.55";			
			break
			
			case '20x24':
			cfssunitprice = "22.95";			
			break
			
			case '20x30':
			cfssunitprice = "27.00";			
			break
			
			case '20x40':
			cfssunitprice = "35.10";			
			break
			
			case '22x28':
			cfssunitprice = "35.10";			
			break
			
			case '24x24':
			cfssunitprice = "35.10";			
			break
			
			case '24x30':
			cfssunitprice = "35.10";			
			break
			
			case '24x36':
			cfssunitprice = "37.80";			
			break
			
			case '24x48*':
			cfssunitprice = "48.60";			
			break
			
			case '30x30*':
			cfssunitprice = "43.20";			
			break
			
			case '30x36*':
			cfssunitprice = "48.60";			
			break
			
			case '30x40*':
			cfssunitprice = "54.00";			
			break
			
			case '36x48*':
			cfssunitprice = "67.50";			
			break
			
			case '48X60*':
			cfssunitprice = "85.00";			
			break
			
			case '48X72*':
			cfssunitprice = "95.00";			
			break
			
			case '48X96*':
			cfssunitprice = "120.00";			
			break
			
			case '60X84*':
			cfssunitprice = "190.00";			
			break
			
			case '60X96*':
			cfssunitprice = "220.00";			
			break
			
			case '72X96*':
			cfssunitprice = "240.00";			
			break
			
			case '72X120*':
			cfssunitprice = "275.00";			
			break
			
			case '72X144*':
			cfssunitprice = "300.00";			
			break
			
			
			
			
			
			
				}

				
			
			break

			case '1-1/2" Deep GALLERY':
			
				switch (cfss_size){

			case '6x8':
			cfssunitprice = "5.40";			
			break
			
			case '8x10':
			cfssunitprice = "5.85";			
			break
			
			case '9x12':
			cfssunitprice = "6.30";			
			break
			
			case '11x14':
			cfssunitprice = "7.20";			
			break
			
			case '12x12':
			cfssunitprice = "8.10";			
			break
			
			case '12x16':
			cfssunitprice = "9.00";			
			break
			
			case '12x24':
			cfssunitprice = "9.00";			
			break
			
			case '14x14':
			cfssunitprice = "9.00";			
			break
			
			case '14x18':
			cfssunitprice = "9.45";			
			break
			
			case '16x16':
			cfssunitprice = "9.90";			
			break
			
			case '16x20':
			cfssunitprice = "10.80";			
			break
			
			case '18x24':
			cfssunitprice = "12.60";			
			break
			
			case '18x36':
			cfssunitprice = "14.40";			
			break
			
			case '20x20':
			cfssunitprice = "11.70";			
			break
			
			case '20x24':
			cfssunitprice = "15.30";			
			break
			
			case '20x30':
			cfssunitprice = "18.00";			
			break
			
			case '20x40':
			cfssunitprice = "23.40";			
			break
			
			case '22x28':
			cfssunitprice = "23.40";			
			break
			
			case '24x24':
			cfssunitprice = "23.40";			
			break
			
			case '24x30':
			cfssunitprice = "23.40";			
			break
			
			case '24x36':
			cfssunitprice = "25.20";			
			break
			
			case '24x48*':
			cfssunitprice = "32.40";			
			break
			
			case '30x30*':
			cfssunitprice = "28.80";			
			break
			
			case '30x36*':
			cfssunitprice = "32.40";			
			break
			
			case '30x40*':
			cfssunitprice = "36.00";			
			break
			
			case '36x48*':
			cfssunitprice = "45.00";			
			break
			
			case '48X60*':
			cfssunitprice = "60.00";			
			break
			
			case '48X72*':
			cfssunitprice = "75.00";			
			break
			
			case '48X96*':
			cfssunitprice = "90.00";			
			break
			
			case '60X84*':
			cfssunitprice = "130.00";			
			break
			
			case '60X96*':
			cfssunitprice = "145.00";			
			break
			
			case '72X96*':
			cfssunitprice = "160.00";			
			break
			
			case '72X120*':
			cfssunitprice = "00.00";			
			break
			
			case '72X144*':
			cfssunitprice = "00.00";			
			break
			
			
			
			
			
			
				}
			
			break

			case '3/4" Deep GALLERY':
			
			switch (cfss_size){

			case '6x8':
			cfssunitprice = "4.50";			
			break
			
			case '8x10':
			cfssunitprice = "4.88";			
			break
			
			case '9x12':
			cfssunitprice = "5.25";			
			break
			
			case '11x14':
			cfssunitprice = "6.00";			
			break
			
			case '12x12':
			cfssunitprice = "6.75";			
			break
			
			case '12x16':
			cfssunitprice = "7.50";			
			break
			
			case '12x24':
			cfssunitprice = "7.50";			
			break
			
			case '14x14':
			cfssunitprice = "7.50";			
			break
			
			case '14x18':
			cfssunitprice = "7.88";			
			break
			
			case '16x16':
			cfssunitprice = "8.25";			
			break
			
			case '16x20':
			cfssunitprice = "9.00";			
			break
			
			case '18x24':
			cfssunitprice = "10.50";			
			break
			
			case '18x36':
			cfssunitprice = "12.00";			
			break
			
			case '20x20':
			cfssunitprice = "9.75";			
			break
			
			case '20x24':
			cfssunitprice = "12.75";			
			break
			
			case '20x30':
			cfssunitprice = "15.00";			
			break
			
			case '20x40':
			cfssunitprice = "19.50";			
			break
			
			case '22x28':
			cfssunitprice = "19.50";			
			break
			
			case '24x24':
			cfssunitprice = "19.50";			
			break
			
			case '24x30':
			cfssunitprice = "19.50";			
			break
			
			case '24x36':
			cfssunitprice = "21.00";			
			break
			
			case '24x48*':
			cfssunitprice = "27.00";			
			break
			
			case '30x30*':
			cfssunitprice = "24.00";			
			break
			
			case '30x36*':
			cfssunitprice = "27.00";			
			break
			
			case '30x40*':
			cfssunitprice = "30.00";			
			break
			
			case '36x48*':
			cfssunitprice = "37.50";			
			break
			
			case '48X60*':
			cfssunitprice = "00.00";			
			break
			
			case '48X72*':
			cfssunitprice = "00.00";			
			break
			
			case '48X96*':
			cfssunitprice = "00.00";			
			break
			
			case '60X84*':
			cfssunitprice = "00.00";			
			break
			
			case '60X96*':
			cfssunitprice = "00.00";			
			break
			
			case '72X96*':
			cfssunitprice = "00.00";			
			break
			
			case '72X120*':
			cfssunitprice = "00.00";			
			break
			
			case '72X144*':
			cfssunitprice = "00.00";			
			break
			
			
			
			
			
			
				}
			
			break
			
			case '3/4" Deep STANDARD':
			
			
			switch (cfss_size){

			case '6x8':
			cfssunitprice = "3.00";			
			break
			
			case '8x10':
			cfssunitprice = "3.25";			
			break
			
			case '9x12':
			cfssunitprice = "3.50";			
			break
			
			case '11x14':
			cfssunitprice = "4.00";			
			break
			
			case '12x12':
			cfssunitprice = "4.50";			
			break
			
			case '12x16':
			cfssunitprice = "5.00";			
			break
			
			case '12x24':
			cfssunitprice = "5.00";			
			break
			
			case '14x14':
			cfssunitprice = "5.00";			
			break
			
			case '14x18':
			cfssunitprice = "5.25";			
			break
			
			case '16x16':
			cfssunitprice = "5.50";			
			break
			
			case '16x20':
			cfssunitprice = "6.00";			
			break
			
			case '18x24':
			cfssunitprice = "7.00";			
			break
			
			case '18x36':
			cfssunitprice = "8.00";			
			break
			
			case '20x20':
			cfssunitprice = "6.50";			
			break
			
			case '20x24':
			cfssunitprice = "8.50";			
			break
			
			case '20x30':
			cfssunitprice = "10.00";			
			break
			
			case '20x40':
			cfssunitprice = "13.00";			
			break
			
			case '22x28':
			cfssunitprice = "13.00";			
			break
			
			case '24x24':
			cfssunitprice = "13.00";			
			break
			
			case '24x30':
			cfssunitprice = "13.00";			
			break
			
			case '24x36':
			cfssunitprice = "14.00";			
			break
			
			case '24x48*':
			cfssunitprice = "18.00";			
			break
			
			case '30x30*':
			cfssunitprice = "16.00";			
			break
			
			case '30x36*':
			cfssunitprice = "18.00";			
			break
			
			case '30x40*':
			cfssunitprice = "20.00";			
			break
			
			case '36x48*':
			cfssunitprice = "25.00";			
			break
			
			case '48X60*':
			cfssunitprice = "00.00";			
			break
			
			case '48X72*':
			cfssunitprice = "00.00";			
			break
			
			case '48X96*':
			cfssunitprice = "00.00";			
			break
			
			case '60X84*':
			cfssunitprice = "00.00";			
			break
			
			case '60X96*':
			cfssunitprice = "00.00";			
			break
			
			case '72X96*':
			cfssunitprice = "00.00";			
			break
			
			case '72X120*':
			cfssunitprice = "00.00";			
			break
			
			case '72X144*':
			cfssunitprice = "00.00";			
			break
			
			
			
			
			
			
				}
			
			break
		

			}

	
	
document.getElementById(cfss_unit_price_id).value=cfssunitprice;
document.getElementById(cfss_unit_price_div_id).innerHTML=cfssunitprice;


}


/*---------------------------Sub Total--------------------------*/

var rownumbercfss;
function startCalcfss(rownumber){
rownumbercfss=rownumber;

interval = setInterval("subtotalcfss(rownumbercfss)",1);

 
}



function subtotalcfss(rownumbercfss){
	

	var unitpriceid="cfss_unit_price["+rownumbercfss+"]";
	var guantityid="cfss_quantity["+rownumbercfss+"]";
	var subtotalid="cfss_sub_total["+rownumbercfss+"]";
	var subtotaldivid="cfss_sub_total_div"+rownumbercfss;


var unitpricevalue=document.getElementById(unitpriceid).value;
var guantityvalue=document.getElementById(guantityid).value;

	
var subtotal = unitpricevalue*guantityvalue;
 subtotalcfssval=roundNumber(subtotal,2);




document.getElementById(subtotalid).value=subtotalcfssval;
document.getElementById(subtotaldivid).innerHTML=subtotalcfssval;

	

	}

	

function stopCalcfss(){
  clearInterval(interval);
}



/*--------------------CUSTOME SIZE---------------------*/



var rownumbercfss2;
function startcustomesizecfss(rownumber){
rownumbercfss2=rownumber;
intervalPortrait = setInterval("cfsscustomeSize(rownumbercfss2)",1);

}


function cfsscustomeSize(rownumbercfss2){


var cussize_id="cfss_cussize["+rownumbercfss2+"]";
var sizeid="cfss_size["+rownumbercfss2+"]";
var cfss_urice_id="cfss_unit_price["+rownumbercfss2+"]";
var cfss_uprice_div_id="cfss_unit_price_div"+rownumbercfss2;
var subtotalid="cfss_sub_total["+rownumbercfss2+"]";
var subtotaldivid="cfss_sub_total_div"+rownumbercfss2;


var customesize=document.getElementById(cussize_id).value;
var dppsizeobject=document.getElementById(sizeid);

if (customesize==""){	

dppsizeobject.disabled=false; 
document.getElementById(cfss_urice_id).value=cfssunitprice;
document.getElementById(cfss_uprice_div_id).innerHTML=cfssunitprice;

document.getElementById(subtotalid).value=subtotalcfssval;
document.getElementById(subtotaldivid).innerHTML=subtotalcfssval;

	}

	else{		

document.getElementById(cfss_urice_id).value=" ";
document.getElementById(cfss_uprice_div_id).innerHTML=" ";

document.getElementById(subtotalid).value=" ";
document.getElementById(subtotaldivid).innerHTML=" ";

dppsizeobject.disabled=true;



}	

	}

	


function stopcustomesizecfss(){

clearInterval(intervalPortrait);

}