'); setTimeout(function(){ $('.newwarning').remove(); }, 6000); } }	if(tot!=0){ if(parseInt($('#quantity option').last().val())<30 || $('#blankchecked').val()==2) || (val<84 || $('#blankchecked').val()==1)) && numItems==1){ if($('#blankchecked').val()==2){ nearno= '30'; }else{ nearno= '84'; }$(this).children("input[id='qty" + theID + "']").val(nearno); $(this).children("input[id='qty" + theID + "']").attr('data-value',nearno); }else{ $(this).children("input[id='qty" + theID + "']").val(assortminqty); $(this).children("input[id='qty" + theID + "']").attr('data-value',assortminqty);}} }tot+=parseInt($(this).children("input[id='qty" + theID + "']").val());	});	if(tot!=0){	if(parseInt($('#quantity option').last().val()) ');}else{$('#optioncolor' + theID).attr("name", "selectcolorbox[]");	}var $currItem = $(".clsrsml[data-id='" + theID + "']"); $(".clsrsml[data-id='" + theID + "']").removeClass('inactive'); $(".clsrsml[data-id='" + theID + "']").removeClass('edited'); $(".clsrsml[data-id='" + theID + "']").addClass('active');	var title=$(".clsrsml[data-id='" + theID + "']").title;$(".clsrsml[data-id='" + theID + "']").siblings().find('div');	$('div[class="img"]',".clsrsml[data-id='" + theID + "']").html('');	if($('#qty' + theID).length ==0 ) {	$($currItem).append(' ');}if(char_end == '+'){ document.getElementById("quantity").disabled=false; $('#quantity').change(); document.getElementById("quantity").disabled=true; }else{ $('#quantity').change();}}else if(theID=='r1'){	$('.assotedqtynote').remove();var theID = $(this).attr("data-id");$allItem = $('.clsrsml'); var qty_get = $('#quantity').val(); var qty=qty_get; var c=qty_get.length;var char_end=qty.charAt(c-1); if(char_end == '+'){if(document.getElementById("quantitytxt").value!=''){ qty = document.getElementById("quantitytxt").value; }else{ qty = qty.replace('+','');}}if($('#optioncolor' + theID).length ==0 ) {$(this).append(' ');}else{	$('#optioncolor' + theID).attr("name", "colorbox[]");	}document.getElementById('product_colordata' ).value=theID; document.getElementById('product_color' ).value=theID; var $currItem = $(".clsrsml[data-id='" + theID + "']");	$(".clsrsml[data-id='" + theID + "']").removeClass('inactive'); $(".clsrsml[data-id='" + theID + "']").addClass('active');var title=$(".clsrsml[data-id='" + theID + "']").title;$(".clsrsml[data-id='" + theID + "']").siblings().find('div');$('div[class="img"]',".clsrsml[data-id='" + theID + "']").html('');$allItem.not($currItem).removeClass('active').addClass('inactive');if($("#blankchecked").length!=0) {if(document.getElementById("blankchecked").value!=3){if($('#qty' + theID).length ==0 ) {$($currItem).append(' ');}	}else{if($('#qty' + theID).length ==0 ) {$($currItem).append(' 1 ');}	}	}$allItem.not($currItem).each(function() {	$(this).children(".colorwrap input[id*='qty']").remove();	$(this).children(".colorwrap label[id*='qty']").remove();$(this).children('div[class="img"]').html('');if($('#optioncolor' + theID).length ==0 ) {document.getElementById('optioncolor'+theID ).value='';	$('#optioncolor' + theID).remove();	}});	}	var sum = 0;$(".colorwrap input[id*='qty']").each(function() {sum += Number($(this).val());});	if(sum==0){ sum=""; } else {	if(document.getElementById("blankchecked").value!=3){if(0==1){if(char_end == '+'){$('#quantity option').last().prop('selected',true);document.getElementById("quantity").disabled=true; if(parseInt(qty_get) '); } var $currItem = $(".clsrsml[data-id='" + theID + "']"); var removedqty=$('#qty'+theID).val(); var qtymodul=document.getElementById('quantity' ).value%assortincrument; if($(".clsrsml[data-id='" + theID + "']").hasClass('edited') && qtymodul==0){ if(qty-parseInt(removedqty)!=0){ document.getElementById('quantity' ).value=qty-parseInt(removedqty); }else{ if(document.getElementById('blankchecked').value==2){ document.getElementById('quantity' ).value=30;}else{ document.getElementById('quantity' ).value=quantity_range; } } } $(".clsrsml[data-id='" + theID + "']").removeClass('active').addClass('inactive'); $(".clsrsml[data-id='" + theID + "']").removeClass('edited');	$(this).children(".colorwrap input[id*='qty']").remove();	$(this).children(".colorwrap label[id*='qty']").remove();	$('#assorted'+theID).remove();	document.getElementById('optioncolor'+theID ).value='';	$('#optioncolor' + theID).remove();	if(char_end == '+'){ document.getElementById("quantity").disabled=false; $('#quantity').change(); document.getElementById("quantity").disabled=true; }else{ $('#quantity').change(); }	}else if(theID=='r1'){var theID = $(this).attr("data-id"); $allItem = $('.clsrsml'); var qty_get = $('#quantity').val(); var qty=qty_get; var c=qty_get.length; var char_end=qty.charAt(c-1); if(char_end == '+'){ if(document.getElementById("quantitytxt").value!=''){ qty = document.getElementById("quantitytxt").value; }else{qty = qty.replace('+','');} }if($('#optioncolor' + theID).length ==0 ) {	$(this).append(' ');} document.getElementById('product_colordata' ).value=theID; document.getElementById('product_color' ).value=theID; var $currItem = $(".clsrsml[data-id='" + theID + "']"); $(".clsrsml[data-id='" + theID + "']").addClass('active');var title=$(".clsrsml[data-id='" + theID + "']").title;	$(".clsrsml[data-id='" + theID + "']").siblings().find('div');	$('div[class="img"]',".clsrsml[data-id='" + theID + "']").html(''); $allItem.not($currItem).removeClass('active');	$('#assorted'+theID).remove();	if($("#blankchecked").length!=0) {	if(document.getElementById("blankchecked").value!=3){if($('#qty' + theID).length ==0 ) {$($currItem).append(' ');}}else{if($('#qty' + theID).length ==0 ) {$($currItem).append(' 1 ');}}}$allItem.not($currItem).each(function() {$(this).children(".colorwrap input[id*='qty']").remove();$(this).children(".colorwrap label[id*='qty']").remove();$(this).children('div[class="img"]').html('');if($('#optioncolor' + theID).length ==0 ) {	document.getElementById('optioncolor'+theID ).value='';	$('#optioncolor' + theID).remove();	}});	}	var sum = 0;	$(".colorwrap input[id*='qty']").each(function(){	sum += Number($(this).val()); });	if(sum==0){	sum="";	} else {	if(char_end == '+'){ document.getElementById('quantitytxt').value=sum; }else{ document.getElementById('quantity').value=sum; }	$("#q_slider").slider('value',$('#quantity').val());$(".ui-slider-handle .tooltip").html($('#quantity').val());	}	}	if($("#blankchecked").length!=0) { if(document.getElementById("blankchecked").value!=3){ checkminimumqty(document.getElementById('quantity').value,1); } }	if(document.getElementById("blankchecked").value!=3){	pricechange();	}	productchangeimage(theID,1);	setTimeout(function(){quantityboxselect();},1000);checkoptionforprice();}});function disableassort(){if($("input:radio[id='r2']").length!=0){if(document.getElementById("blankchecked").value==1){	if(parseInt(document.getElementById('quantity').value) < 84){	$("input:radio[id='r2']").attr("disabled", "disabled");	$('.rdooptgroup label[for="r2"]').css('opacity', '.2');	$("input:radio[id='r2']").addClass("disabled");	$('.rdooptgroup label[for="r2"]').css({'cursor' :"default"});	if($('#r2').is(':checked')) {	dialogbox({ type:'alert', title: 'Alert!',content: 'Woops! Assorted colors are available only for quantity 84 and above' , scrollid: ''});	}	$('.assotedqtydisable').remove();	$('.colorlargegroup').prepend('