$(document).ready(function(){if(ccoStrResources.IsCartView==="true"){try{AddCCOPopup()}catch(a){}}else{AddOrderProjectEvent()}});function hidePopUp(){tb_remove()}function SubmitButtonClicked(){if(document.getElementById("ctl00_ContentMain_hidMouseReelRequest")!=null&&document.getElementById("ctl00_ContentMain_hidMouseReelRequest").value=="False"){if((typeof $("input[id$=radMouseReel]")!="undefined"&&$("input[id$=radMouseReel]").is(":checked"))||(typeof $("input[id$=radFullNMouseReel]")!="undefined"&&$("input[id$=radFullNMouseReel]").is(":checked"))){return true }else{hidePopUp();return false}}else{if((typeof $("input[id$=radCutTape]")!="undefined"&&$("input[id$=radCutTape]").is(":checked"))||(typeof $("input[id$=radFullNMouseReel]")!="undefined"&&$("input[id$=radFullNCutTape]").is(":checked"))){return true}else{hidePopUp();return false}}}function OpenMouserReelPopUP(b,c,d,a){if(document.getElementById("ctl00_ContentMain_hidProductID")!=null){document.getElementById("ctl00_ContentMain_hidProductID").value=b}if(document.getElementById("ctl00_ContentMain_hidMouseReelRequest")!=null){document.getElementById("ctl00_ContentMain_hidMouseReelRequest").value=a }if(a=="False"){SelectRadioButton(d,c)}else{SelectRadioButtonWithMouseReel(d,c)}tb_show("MouseReel","#TB_inline?height=480&width=633&inlineId=divMousReel&modal=false","")}function SelectRadioButtonWithMouseReel(b,a){if(typeof $("input[id$=radMouseReel]")!="undefined"){$("input[id$=radStandarReel]").attr("disabled",true)}if(parseInt(a)b?a:b}function AddOrderProjectEvent(){$("input.btn-Checkout").click(function(){var a=GetOrderMultiplier();GaEvent("Project Manager Order","Project Order","Merge with Cart",a);return true})}function OrderCartMergeEvent(){var a=GetOrderMultiplier(); GaEvent("Project Manager Order","Saved Cart Order","Merge with Cart",a);return true}function OrderCartMakeActiveEvent(){var a=GetOrderMultiplier();GaEvent("Project Manager Order","Saved Cart Order","Make Active",a);return true}function AddCCOPopup(){$("input.btn-Checkout").click(function(){CCOPopup();return false})}function CCOPopup(){var a=$('
'+$("#divCcoDialog").html()+"
");a.dialog({title:ccoStrResources.ChooseCartOption,closeOnEscape:false,resizable:false,modal:true,width:440,maxHeight:550,appendTo:"form#aspnetForm"}) };