');	$("input:radio[id='r1']").click();	}else{	$('.assotedqtydisable').remove();	$("input:radio[id='r2']").removeAttr("disabled");	$("input:radio[id='r2']").removeClass("disabled");	$('.rdooptgroup label[for="r2"]').removeAttr( 'style' );	$('.rdooptgroup label[for="r2"]').css({'cursor' :"pointer"});	}}else{	$('.assotedqtydisable').remove();	$("input:radio[id='r2']").removeAttr("disabled");	$("input:radio[id='r2']").removeClass("disabled");	$('.rdooptgroup label[for="r2"]').css('opacity', '');	$('.rdooptgroup label[for="r2"]').removeAttr( 'style' );	$('.rdooptgroup label[for="r2"]').css({'cursor' :"pointer"});}}}function changeqty(val){var bfr_qty=document.getElementById('quantity' ).value; new_qty=0; var curqty=val; var blnk=0; var qty_remainder=0; if($("#blankchecked").length!=0) { if(document.getElementById("blankchecked").value==2){ blnk=1; } } var showincrument_stat=0; var incrument_val_match=0; if(0 == 1 && (84 > 0 || 60 > 0) && document.getElementById("blankchecked").value!=3 && curqty>0){ showincrument_stat=1; } if(showincrument_stat==1){ var blankrangeone_flag= 0; var offsetqty=0; if(blnk == 1){ if(curqty!=1){ var offsetqty=60; } var qty_increment = 60; if(blankrangeone_flag==1){ var qty_remainder = (curqty-offsetqty) % qty_increment; if(qty_remainder == 0 || curqty==1){ incrument_val_match=1;}}else{var qty_remainder = curqty % qty_increment;if(qty_remainder == 0){incrument_val_match=1;}}}else{ var imponlyprice=parseInt(0);var quantity_min=parseInt(84);var qty_increment = 84;var offsetqty=84;if(imponlyprice>0 && curqty<=imponlyprice){var qty_remainder = (curqty-offsetqty) % qty_increment;if(qty_remainder == 0){incrument_val_match=1;}}else{var qty_remainder = (curqty-offsetqty) % qty_increment;if(qty_remainder == 0){incrument_val_match=1;}}} if(incrument_val_match==0){ var new_curqty = curqty-offsetqty; if(qty_remainder!=0){ half = parseInt(qty_increment)/2; multiple = parseInt(new_curqty) / parseInt(qty_increment); if(qty_remainder < half){ new_qty = parseInt(qty_increment) * parseInt(multiple)+offsetqty; }else if(qty_remainder >= half){ multiple = parseInt(multiple) + 1; new_qty = parseInt(qty_increment) * multiple+offsetqty; }incrument_warning_msg='This item is only available in increments of '+qty_increment; } } }if(new_qty>0){ val=new_qty; } if(showincrument_stat==1 && parseInt($("#quantity option:last").val())=parseInt(quantity_range) ){pricechange(0,1);} else{pricechange();}disableassort();}function changeassortqty(val,id){ var blankchecked = $('#blankchecked').val(); var showincrument = 0; var blankdiscounts_rangeoneflag = 0; if(blankchecked==2){ var assortminqty=24; var assortincrument=12; }else{ var assortminqty=24; var assortincrument=12; } if($('#r2').is(':checked')) { var txtid=id; var qtycolor=document.getElementById(id).value; var nearno=0; var isassortenable=0;if(qtycolor >= 84){isassortenable=1;}var rem=qtycolor%assortincrument; var halfofassort=assortincrument/2; if(rem > halfofassort){ nearno= assortincrument*(Math.ceil(Math.abs(qtycolor/assortincrument))); }else if(rem < halfofassort){ nearno= assortincrument*(Math.floor(Math.abs(qtycolor/assortincrument))); }else if(rem==halfofassort){ nearno= assortincrument*(Math.ceil(Math.abs(qtycolor/assortincrument))); } if(qtycolor< 84 && isassortenable==1){nearno=nearno+12;}document.getElementById(id).value=nearno; var sum = 0; var numItems = $('.colorlargegroup .clsrsml:active').length; $(".colorwrap input[id*='qty']").each(function() { sum += Number($(this).val()); }); if(sum==0){ sum=""; } if(val!=nearno){ $('.newwarning').remove(); if(showincrument==1){ if(blankchecked==2){ if(blankdiscounts_rangeoneflag==1){ $('#quititydet').append('