onerror=handleErrors;var aftercallback_buildimage="";var aftercallback_buildpart="";var aftercallback_prebuilt="";var HelperPositionX=0;var HelperPositionY=0;var overmenu=0;var HelperAfterCallback=true;var msg=null;var ie=document.all;var ns6=document.getElementById&& !document.all;var dragapproved=false;var z,x,y;var temp1;var temp2;var selectedshipmethod;function enableconfigitemsave(){document.getElementById('uploadimages').disabled='disabled';document.getElementById('ci_save').disabled='';};function createcustomitem(){var re=new RegExp("\\x2B","g");dealercustomitemloading();document.getElementById('uploadimages').disabled='';DealerConfigureItem.SaveDealerConfigureItem('CreateCustomItem')};function deletecustomitem(){var re=new RegExp("\\x2B","g");dealercustomitemloading();document.getElementById('uploadimages').disabled='';DealerConfigureItem.SaveDealerConfigureItem('DeleteCustomItem',document.getElementById('ci_guid').value.replace(re,"%2B"))};function savecustomitem(){var re=new RegExp("\\x2B","g");dealercustomitemloading();document.getElementById('uploadimages').disabled='';DealerConfigureItem.SaveDealerConfigureItem('SaveCustomItem',document.getElementById('ci_guid').value.replace(re,"%2B"),document.getElementById('ci_number').value.replace(re,"%2B"),document.getElementById('ci_isactive').checked,document.getElementById('ci_name').value.replace(re,"%2B"),document.getElementById('ci_description').value.replace(re,"%2B"),document.getElementById('dropci_parttype').options[document.getElementById('dropci_parttype').selectedIndex].value.replace(re,"%2B"),document.getElementById('dropci_gender').options[document.getElementById('dropci_gender').selectedIndex].value.replace(re,"%2B"),document.getElementById('ci_partgroup').value.replace(re,"%2B"),document.getElementById('ci_color').value.replace(re,"%2B"),document.getElementById('ci_height').value.replace(re,"%2B"),document.getElementById('ci_width').value.replace(re,"%2B"),document.getElementById('ci_depth').value.replace(re,"%2B"),document.getElementById('ci_weight').value.replace(re,"%2B"),document.getElementById('ci_volume').value.replace(re,"%2B"),document.getElementById('ci_pricecode').value.replace(re,"%2B"),document.getElementById('ci_price').value.replace(re,"%2B"),document.getElementById('ci_isonsale').checked,document.getElementById('ci_engravingplatewidth').value.replace(re,"%2B"),document.getElementById('ci_engravingplateheight').value.replace(re,"%2B"),document.getElementById('ci_pagenumber').value.replace(re,"%2B"),document.getElementById('ci_standardpack').value.replace(re,"%2B"),document.getElementById('ci_casequantity').value.replace(re,"%2B"),document.getElementById('ci_unitofmeasure').value.replace(re,"%2B"),document.getElementById('ci_combinationcode').value.replace(re,"%2B"),document.getElementById('ci_incrementquantity').value.replace(re,"%2B"),document.getElementById('ci_sequence').value.replace(re,"%2B"),document.getElementById('ci_imagebuildguid').value.replace(re,"%2B"),document.getElementById('ci_imagesmallguid').value.replace(re,"%2B"),document.getElementById('ci_imagemediumguid').value.replace(re,"%2B"),document.getElementById('ci_imagelargeguid').value.replace(re,"%2B"),document.getElementById('dropci_sportgroupparttype').options[document.getElementById('dropci_sportgroupparttype').selectedIndex].value.replace(re,"%2B"))};function setcustomitem(){var re=new RegExp("\\x2B","g");dealercustomitemloading();document.getElementById('uploadimages').disabled='';DealerConfigureItem.SaveDealerConfigureItem('SetCustomItem',document.getElementById('dropcustomitem').options[document.getElementById('dropcustomitem').selectedIndex].value.replace(re,"%2B"))};function buildposition(){var buildimage=document.getElementById('divBuildImage1');var footer=document.getElementById('divFooter');var shop=document.getElementById('tblShop');var part=document.getElementById('divPartMain');var element=document.body;if(buildimage!=null&&footer!=null&&shop!=null&&part!=null&&element!=null){var adder=part.offsetHeight+buildimage.offsetHeight-200;if(adder>0){shop.style.height=adder;}var footertop=findPosY(footer);var buildimageheight=buildimage.offsetHeight;var topposition=element.scrollTop-122;if(topposition>=0){if((topposition+buildimageheight+146)<=footertop){buildimage.style.top=topposition+'px';}else{buildimage.style.top=footertop-buildimageheight-146+'px';}}else{buildimage.style.top=0+'px';}}};function menuin(){overmenu=1;};function menuout(){overmenu=0;setTimeout("menuclose()",1000);};function menuclose(){if(overmenu==0){overlib(EXCLUSIVEOVERRIDE);nd();}};function toggleengraving(){if(document.getElementById('row_engraving').style.display=='none'){document.getElementById('row_engraving').style.display='block';document.getElementById('btn_engraving_disp').value='HIDE Engraving Summary';document.getElementById('btn_engraving').style.pageBreakBefore='always';}else{document.getElementById('row_engraving').style.display='none';document.getElementById('btn_engraving_disp').value='SHOW Engraving Summary';document.getElementById('btn_engraving').style.pageBreakBefore='';}};function toggleorderbom(){if(document.getElementById('row_bom').style.display=='none'){document.getElementById('row_bom_head').style.display='block';document.getElementById('row_bom').style.display='block';document.getElementById('btn_bom_disp').value='HIDE Order Bill Of Materials';}else{document.getElementById('row_bom_head').style.display='none';document.getElementById('row_bom').style.display='none';document.getElementById('btn_bom_disp').value='SHOW Order Bill Of Materials';}};function toggleorderid(id){if(document.getElementById('row_'+id).style.display=='none'){document.getElementById('row_'+id).style.display='block';document.getElementById('btn_disp_'+id).value='HIDE Order Item #'+id;document.getElementById('btn_'+id).style.pageBreakBefore='always';}else{document.getElementById('row_'+id).style.display='none';document.getElementById('btn_disp_'+id).value='SHOW Order Item #'+id;document.getElementById('btn_'+id).style.pageBreakBefore='';}};function cookietest(e){var tmpcookie=new Date();chkcookie=(tmpcookie.getTime()+'');document.cookie="chkcookie="+chkcookie+"; path=/";if(document.cookie.indexOf(chkcookie,0)<0){alert('Your browser cookies are not enabled.\r\n\r\nWe require that cookies are enabled in order to use our site.\r\n\r\nPlease enable your browser cookies and then close and restart your browser');}};function prebuiltdirect(prebuiltnumber,pageparent){pageloading();setTimeout("refreshloadingimage()",100);PageHeader.EditPreBuilt('PreBuiltItemDirect',prebuiltnumber,getEngravingHtml('RadEditor1'),getEngravingText('RadEditor1'),getEngravingHtml('RadEditor2'),getEngravingText('RadEditor2'));location.href=pageparent;};function sethelpmode(mode){Helper.SetMovie('SetHelpMode',mode);};function showcalendar(anchor,mydate){dp_cal.setTarget(anchor);try{var datearray=mydate.split('/');var day=eval(datearray[1]);var month=eval(datearray[0]-1);var year=eval(datearray[2]);dp_cal.selectedDates[0]=new Date(year,month,day);dp_cal.goToMonth(year,month);}catch(e){}};function showeventcalendar(anchor){var dp_cal2=new Epoch('epoch_popup','popup',document.getElementById(anchor));dp_cal2.setTarget(document.getElementById(anchor));try{var currentTime=new Date();var month=currentTime.getMonth();var day=currentTime.getDate();var year=currentTime.getFullYear();dp_cal2.selectedDates[0]=new Date(year,month,day);dp_cal2.goToMonth(year,month);}catch(e){}};function hideeditors(){var editor1=GetRadEditor('RadEditor1');if(editor1!=null){editor1.SetVisible(false);}var editor2=GetRadEditor('RadEditor2');if(editor2!=null){editor2.SetVisible(false);}};function getFlashMovieObject(movieName){if(window.document[movieName]){return window.document[movieName];}if(navigator.appName.indexOf("Microsoft Internet")== -1){if(document.embeds&&document.embeds[movieName])return document.embeds[movieName];}else{return document.getElementById(movieName);}};function removecartitemcheckout(cartitemguid){var result=confirm("Is it OK to delete this item from your shopping cart?");if(result==true){ShoppingCartDetails.SetCart('RemoveFromCart',cartitemguid);}};function removecartitem(cartitemguid){var result=confirm("Is it OK to delete this item from your shopping cart?");if(result==true){BuildImage.SetCart('RemoveFromCart',cartitemguid);}};function updateincart(cartitemguid){var textlines='';var textlinesraw='';var line1=document.getElementById('engravetext1');if(line1!=null){textlines=textlines+line1.value+'amp;lt;bramp;gt;';textlinesraw=textlinesraw+line1.value;}var line2=document.getElementById('engravetext2');if(line2!=null){textlines=textlines+line2.value+'amp;lt;bramp;gt;';textlinesraw=textlinesraw+line2.value;}var line3=document.getElementById('engravetext3');if(line3!=null){textlines=textlines+line3.value+'amp;lt;bramp;gt;';textlinesraw=textlinesraw+line3.value;}var line4=document.getElementById('engravetext4');if(line4!=null){textlines=textlines+line4.value+'amp;lt;bramp;gt;';textlinesraw=textlinesraw+line4.value;}var line5=document.getElementById('engravetext5');if(line5!=null){textlines=textlines+line5.value+'amp;lt;bramp;gt;';textlinesraw=textlinesraw+line5.value;}var line6=document.getElementById('engravetext6');if(line6!=null){textlines=textlines+line6.value+'amp;lt;bramp;gt;';textlinesraw=textlinesraw+line6.value;}var line7=document.getElementById('engravetext7');if(line7!=null){textlines=textlines+line7.value+'amp;lt;bramp;gt;';textlinesraw=textlinesraw+line7.value;}var line8=document.getElementById('engravetext8');if(line8!=null){textlines=textlines+line8.value+'amp;lt;bramp;gt;';textlinesraw=textlinesraw+line8.value;}var line9=document.getElementById('engravetext9');if(line9!=null){textlines=textlines+line9.value+'amp;lt;bramp;gt;';textlinesraw=textlinesraw+line9.value;}var line10=document.getElementById('engravetext10');if(line10!=null){textlines=textlines+line10.value+'amp;lt;bramp;gt;';textlinesraw=textlinesraw+line10.value;}if(textlinesraw==''){var result=confirm("This item does not have any engraving information.  Is it OK to update it to your shopping cart?");if(result==true){buildimagebusy();BuildImage.SetCart('UpdateInCart',cartitemguid,document.getElementById('ImageQuantity').value,textlines,getEngravingText(),getEngravingHtml('RadEditor2'),getEngravingText('RadEditor2'));UpdateImageQuantity();}}else{buildimagebusy();BuildImage.SetCart('UpdateInCart',cartitemguid,document.getElementById('ImageQuantity').value,textlines,getEngravingText(),getEngravingHtml('RadEditor2'),getEngravingText('RadEditor2'));UpdateImageQuantity();}};function addtocart(buildimageguid){var textlines='';var textlinesraw='';var line1=document.getElementById('engravetext1');if(line1!=null){textlines=textlines+line1.value+'amp;lt;bramp;gt;';textlinesraw=textlinesraw+line1.value;}var line2=document.getElementById('engravetext2');if(line2!=null){textlines=textlines+line2.value+'amp;lt;bramp;gt;';textlinesraw=textlinesraw+line2.value;}var line3=document.getElementById('engravetext3');if(line3!=null){textlines=textlines+line3.value+'amp;lt;bramp;gt;';textlinesraw=textlinesraw+line3.value;}var line4=document.getElementById('engravetext4');if(line4!=null){textlines=textlines+line4.value+'amp;lt;bramp;gt;';textlinesraw=textlinesraw+line4.value;}var line5=document.getElementById('engravetext5');if(line5!=null){textlines=textlines+line5.value+'amp;lt;bramp;gt;';textlinesraw=textlinesraw+line5.value;}var line6=document.getElementById('engravetext6');if(line6!=null){textlines=textlines+line6.value+'amp;lt;bramp;gt;';textlinesraw=textlinesraw+line6.value;}var line7=document.getElementById('engravetext7');if(line7!=null){textlines=textlines+line7.value+'amp;lt;bramp;gt;';textlinesraw=textlinesraw+line7.value;}var line8=document.getElementById('engravetext8');if(line8!=null){textlines=textlines+line8.value+'amp;lt;bramp;gt;';textlinesraw=textlinesraw+line8.value;}var line9=document.getElementById('engravetext9');if(line9!=null){textlines=textlines+line9.value+'amp;lt;bramp;gt;';textlinesraw=textlinesraw+line9.value;}var line10=document.getElementById('engravetext10');if(line10!=null){textlines=textlines+line10.value+'amp;lt;bramp;gt;';textlinesraw=textlinesraw+line10.value;}if(textlinesraw==''){var result=confirm("This item does not have any engraving information.  Is it OK to add it to your shopping cart?");if(result==true){buildimagebusy();BuildImage.SetCart('AddToCart',buildimageguid,document.getElementById('ImageQuantity').value,textlines,getEngravingText(),getEngravingHtml('RadEditor2'),getEngravingText('RadEditor2'));UpdateImageQuantity();}}else{buildimagebusy();BuildImage.SetCart('AddToCart',buildimageguid,document.getElementById('ImageQuantity').value,textlines,getEngravingText(),getEngravingHtml('RadEditor2'),getEngravingText('RadEditor2'));UpdateImageQuantity();}};function getcombinedbom(ordercount){var ordernumbers='';dealerordersloading();for(var orderindex=1;orderindex<=ordercount;orderindex++){if(document.getElementById('sel_'+orderindex).checked){if(ordernumbers!=''){ordernumbers=ordernumbers+', '+document.getElementById('ord_'+orderindex).value;}else{ordernumbers=document.getElementById('ord_'+orderindex).value;}}}DealerOrders.SaveDealerOrders('CreateCombinedBOM',ordernumbers);};function orderselectedall(ordercount){var allchecked=document.getElementById('sel_all').checked;for(var orderindex=1;orderindex<=ordercount;orderindex++){document.getElementById('sel_'+orderindex).checked=allchecked;}};function displaysavebannertext(textid){document.getElementById(textid).disabled='';};function displaysavetrackingcode(btnid){document.getElementById(btnid).disabled='';};function displaysaveawardssections(textid){document.getElementById(textid).disabled='';};function displaysavedealeractivation(textid){document.getElementById(textid).disabled='';};function displaysavedealerinformation(textid){document.getElementById(textid).disabled='';};function displaysavewebaddressinformation(textid){document.getElementById(textid).disabled='';};function displaysavestorefrontinformation(textid){document.getElementById(textid).disabled='';};function displaysavecontactinformation(textid){document.getElementById(textid).disabled='';};function displaysaveshippinginformation(textid){document.getElementById(textid).disabled='';};function displaysavetaxinformation(textid){document.getElementById(textid).disabled='';};function displaysavediscountinformation(textid){document.getElementById(textid).disabled='';};function saveordertrackingcode(orderguid,trackingcodeid){var re=new RegExp("\\x2B","g");dealerordersloading();DealerOrders.SaveDealerOrders('UpdateOrderTrackingCode',orderguid,document.getElementById(trackingcodeid).value.replace(re,"%2B"));};function saveorderpaymentdate(orderguid,paid){dealerordersloading();DealerOrders.SaveDealerOrders('UpdateOrderPaymentDate',orderguid,paid);};function saveordershipped(orderguid,shippingdate){dealerordersloading();DealerOrders.SaveDealerOrders('UpdateOrderShippedDate',orderguid,shippingdate);};function saveordershipping(orderguid,shippingdate){dealerordersloading();DealerOrders.SaveDealerOrders('UpdateOrderShippingDate',orderguid,shippingdate);};function saveorderstatus(orderguid,statusguid){dealerordersloading();DealerOrders.SaveDealerOrders('UpdateOrderStatus',orderguid,statusguid);};function activeshippingdata(questionname){var re=new RegExp("\\x2B","g");if(document.getElementById('ShippingPickUpFromStore').checked||document.getElementById('ShippingUSPS').checked||document.getElementById('ShippingUPS').checked||document.getElementById('ShippingFedEx').checked||document.getElementById('ShippingStoreDelivery').checked){document.getElementById('btn_saveshippinginformation').disabled='';}else{alert('At least one shipping method must be selected.  Please select another choice before un-selecting this method.');document.getElementById(questionname).checked=true;}};function savepaymentinformation(){var re=new RegExp("\\x2B","g");dealerhomeloading();DealerHome.SaveDealerHome('SavePaymentInformation',document.getElementById('PaymentPayWhenPickingUpFromStore').checked,document.getElementById('PaymentMailCheckOrMoneyOrder').checked,document.getElementById('PaymentCreditCardOverThePhone').checked,document.getElementById('PaymentCreditCardOnlineUsingPayPal').checked,document.getElementById('PaymentCreditCardOnline').checked,document.getElementById('PaymentPayPal').checked,document.getElementById('PaymentPurchaseOrder').checked,document.getElementById('PaymentRequestQuote').checked,document.getElementById('PaymentPayPalEmail').value.replace(re,"%2B"),document.getElementById('PaymentCreditCardVisa').checked,document.getElementById('PaymentCreditCardMasterCard').checked,document.getElementById('PaymentCreditCardDiscover').checked,document.getElementById('PaymentCreditCardAmericanExpress').checked,document.getElementById('dropProcessorType').options[document.getElementById('dropProcessorType').selectedIndex].value.replace(re,"%2B"),document.getElementById('PaymentLogin').value.replace(re,"%2B"),document.getElementById('PaymentPassword').value.replace(re,"%2B"),document.getElementById('PaymentTransactionKey').value.replace(re,"%2B"))};function configuremystore(page){dealeractivateloading();DealerActivate.SaveDealerActivate('ConfigureMyStore');location.href=page;};function signintostore(page){location.href=page;};function savedealeractivation(page){var re=new RegExp("\\x2B","g");document.getElementById('btn_savedealeractivation').disabled='disabled';dealeractivateloading();DealerActivate.SaveDealerActivate('SaveDealerActivation',document.getElementById('DealerActivationCodeSubmitted').value,document.getElementById('DealerContactFirstName').value,document.getElementById('DealerContactLastName').value,document.getElementById('DealerContactEmail').value,document.getElementById('DealerContactPhone').value,document.getElementById('confirmVerification').value);location.href=page;};function saveshippinginformation(){var re=new RegExp("\\x2B","g");if((isNaN(document.getElementById('ShippingRateAdjustment').value)==true)||(document.getElementById('ShippingRateAdjustment').value=='')){alert('Please enter a valid SHIPPING RATE ADJUSTMENT number. Enter 0 for no adjustment.');return;}if((isNaN(document.getElementById('ShippingFreeShippingSubTotalAmount').value)==true)||(document.getElementById('ShippingFreeShippingSubTotalAmount').value=='')){alert('Please enter a valid FREE SHIPPING OVER AMOUNT number.');return;}dealerhomeloading();DealerHome.SaveDealerHome('SaveShippingInformation',document.getElementById('ShippingPickUpFromStore').checked,document.getElementById('ShippingUSPS').checked,document.getElementById('ShippingUPS').checked,document.getElementById('ShippingFedEx').checked,document.getElementById('ShippingStoreDelivery').checked,document.getElementById('ShippingRateAdjustment').value,document.getElementById('ShippingFreeShippingOverAmount').checked,document.getElementById('ShippingFreeShippingSubTotalAmount').value)};function activepaymentdata(questionname){var re=new RegExp("\\x2B","g");if(document.getElementById('PaymentPayWhenPickingUpFromStore').checked||document.getElementById('PaymentMailCheckOrMoneyOrder').checked||document.getElementById('PaymentCreditCardOverThePhone').checked||document.getElementById('PaymentCreditCardOnlineUsingPayPal').checked||document.getElementById('PaymentCreditCardOnline').checked||document.getElementById('PaymentPayPal').checked||document.getElementById('PaymentPurchaseOrder').checked||document.getElementById('PaymentRequestQuote').checked){document.getElementById('btn_savepaymentinformation').disabled='';}else{alert('At least one payment method must be selected.  Please select another choice before un-selecting this method.');document.getElementById(questionname).checked=true;}};function savecontactinformation(){var re=new RegExp("\\x2B","g");dealerhomeloading();DealerHome.SaveDealerHome('SaveContactInformation',document.getElementById('DealerContactFirstName').value.replace(re,"%2B"),document.getElementById('DealerContactLastName').value.replace(re,"%2B"),document.getElementById('DealerContactEmail').value.replace(re,"%2B"),document.getElementById('DealerContactPhone').value.replace(re,"%2B"))};function savediscountinformation(){var re=new RegExp("\\x2B","g");dealerhomeloading();DealerHome.SaveDealerHome('SaveDiscountInformation',document.getElementById('DiscountsActive').checked,document.getElementById('DiscountQuantity1').value.replace(re,"%2B"),document.getElementById('DiscountPercentage1').value.replace(re,"%2B"),document.getElementById('DiscountQuantity2').value.replace(re,"%2B"),document.getElementById('DiscountPercentage2').value.replace(re,"%2B"),document.getElementById('DiscountQuantity3').value.replace(re,"%2B"),document.getElementById('DiscountPercentage3').value.replace(re,"%2B"),document.getElementById('DiscountQuantity4').value.replace(re,"%2B"),document.getElementById('DiscountPercentage4').value.replace(re,"%2B"))};function savewebaddressinformation(){var re=new RegExp("\\x2B","g");dealerhomeloading();DealerHome.SaveDealerHome('SaveWebAddressInformation',document.getElementById('DealerDomainNameOwned').value.replace(re,"%2B"),document.getElementById('DealerDomainNameChoice1').value.replace(re,"%2B"),document.getElementById('DealerDomainNameChoice2').value.replace(re,"%2B"),document.getElementById('DealerDomainNameChoice3').value.replace(re,"%2B"),document.getElementById('DealerDomainNameChoice4').value.replace(re,"%2B"),document.getElementById('DealerDomainNameChoice5').value.replace(re,"%2B"))};function savetaxinformation(){var re=new RegExp("\\x2B","g");if((isNaN(document.getElementById('DealerTaxCity').value)==true)||(document.getElementById('DealerTaxCity').value=='')){alert('Please enter a valid CITY TAX percentage omitting the % sign. Enter 0 for no tax.');return;}if((isNaN(document.getElementById('DealerTaxCounty').value)==true)||(document.getElementById('DealerTaxCounty').value=='')){alert('Please enter a valid COUNTY TAX percentage omitting the % sign. Enter 0 for no tax.');return;}if((isNaN(document.getElementById('DealerTaxLocal').value)==true)||(document.getElementById('DealerTaxLocal').value=='')){alert('Please enter a valid LOCAL TAX percentage omitting the % sign. Enter 0 for no tax.');return;}if((isNaN(document.getElementById('DealerTaxState').value)==true)||(document.getElementById('DealerTaxState').value=='')){alert('Please enter a valid STATE TAX percentage omitting the % sign. Enter 0 for no tax.');return;}if((isNaN(document.getElementById('DealerTaxCountry').value)==true)||(document.getElementById('DealerTaxCountry').value=='')){alert('Please enter a valid COUNTRY TAX percentage omitting the % sign. Enter 0 for no tax.');return;}dealerhomeloading();DealerHome.SaveDealerHome('SaveTaxInformation',document.getElementById('DealerTaxCity').value.replace(re,"%2B"),document.getElementById('DealerTaxCounty').value.replace(re,"%2B"),document.getElementById('DealerTaxLocal').value.replace(re,"%2B"),document.getElementById('DealerTaxState').value.replace(re,"%2B"),document.getElementById('DealerTaxCountry').value.replace(re,"%2B"),document.getElementById('DealerTaxOnDestination').checked)};function saveawardssections(){dealerappearanceloading();DealerAppearance.SaveDealerAppearance('SaveAwardsSections',document.getElementById('HomeAwardsSignatureResins').checked,document.getElementById('HomeAwardsMedals').checked,document.getElementById('HomeAwardsSportBanks').checked,document.getElementById('HomeAwardsBobbleHeads').checked,document.getElementById('HomeAwardsDogTags').checked,document.getElementById('HomeAwardsMascots').checked,document.getElementById('HomeAwardsBronzeResins').checked,document.getElementById('HomeAwardsEagles').checked,document.getElementById('HomeAwardsBobbleTwists').checked)};function savedealerinformation(){var re=new RegExp("\\x2B","g");if((isNaN(document.getElementById('DealerBuildDaysFrom').value)==true)||(document.getElementById('DealerBuildDaysFrom').value=='')){alert('Please enter a valid BUILD DAYS FROM number.');return;}if((isNaN(document.getElementById('DealerBuildDaysTo').value)==true)||(document.getElementById('DealerBuildDaysTo').value=='')){alert('Please enter a valid BUILD DAYS TO number.');return;}dealerhomeloading();DealerHome.SaveDealerHome('SaveDealerInformation',document.getElementById('DealerCompanyName').value.replace(re,"%2B").replace(new RegExp(/&/g),"amp;amp;"),document.getElementById('DealerAddressLine1').value.replace(re,"%2B"),document.getElementById('DealerAddressLine2').value.replace(re,"%2B"),document.getElementById('DealerSuite').value.replace(re,"%2B"),document.getElementById('DealerCity').value.replace(re,"%2B"),document.getElementById('DealerCounty').value.replace(re,"%2B"),document.getElementById('dropDealerState').options[document.getElementById('dropDealerState').selectedIndex].value.replace(re,"%2B"),document.getElementById('DealerZip').value.replace(re,"%2B"),document.getElementById('DealerCountry').value.replace(re,"%2B"),document.getElementById('DealerPhone').value.replace(re,"%2B"),document.getElementById('DealerPhoneTollFree').value.replace(re,"%2B"),document.getElementById('DealerFax').value.replace(re,"%2B"),document.getElementById('DealerGeneralEmail').value.replace(re,"%2B"),document.getElementById('DealerSalesEmail').value.replace(re,"%2B"),document.getElementById('DealerSupportEmail').value.replace(re,"%2B"),document.getElementById('DealerBuildDaysFrom').value.replace(re,"%2B"),document.getElementById('DealerBuildDaysTo').value.replace(re,"%2B"),document.getElementById('DealerAutoActivateNewParts').checked,document.getElementById('DealerARAMember').checked,document.getElementById('DealerSiteDown').checked,document.getElementById('DealerCustomerRegistrationEmail').checked,document.getElementById('DealerSendEmailAfterOrderComplete').checked)};function savestorefrontinformation(){var re=new RegExp("\\x2B","g");dealerhomeloading();DealerHome.SaveDealerHome('SaveStorefrontInformation',document.getElementById('DealerStorefront').checked,document.getElementById('DealerHoursMondayFrom').value.replace(re,"%2B"),document.getElementById('DealerHoursMondayTo').value.replace(re,"%2B"),document.getElementById('DealerHoursTuesdayFrom').value.replace(re,"%2B"),document.getElementById('DealerHoursTuesdayTo').value.replace(re,"%2B"),document.getElementById('DealerHoursWednesdayFrom').value.replace(re,"%2B"),document.getElementById('DealerHoursWednesdayTo').value.replace(re,"%2B"),document.getElementById('DealerHoursThursdayFrom').value.replace(re,"%2B"),document.getElementById('DealerHoursThursdayTo').value.replace(re,"%2B"),document.getElementById('DealerHoursFridayFrom').value.replace(re,"%2B"),document.getElementById('DealerHoursFridayTo').value.replace(re,"%2B"),document.getElementById('DealerHoursSaturdayFrom').value.replace(re,"%2B"),document.getElementById('DealerHoursSaturdayTo').value.replace(re,"%2B"),document.getElementById('DealerHoursSundayFrom').value.replace(re,"%2B"),document.getElementById('DealerHoursSundayTo').value.replace(re,"%2B"))};function bannertext(textid1,textid2,textid3){var re=new RegExp("\\x2B","g");dealerappearanceloading();DealerAppearance.SaveDealerAppearance('SaveBannerText',document.getElementById(textid1).value.replace(re,"%2B").replace(new RegExp(/&/g),"amp;amp;"),document.getElementById(textid2).value.replace(re,"%2B").replace(new RegExp(/&/g),"amp;amp;"),document.getElementById(textid3).value.replace(re,"%2B").replace(new RegExp(/&/g),"amp;amp;"));PageHeader.Refresh();};function logochoiceupperleft(dealeranswerguid,choice){var re=new RegExp("\\x2B","g");dealerappearanceloading();DealerAppearance.SaveDealerAppearance('SaveLogoChoiceUpperLeft',dealeranswerguid,choice);PageHeader.Refresh();};function assistantchoice(dealeranswerguid,choice){var re=new RegExp("\\x2B","g");dealerappearanceloading();DealerAppearance.SaveDealerAppearance('SaveAssistantChoice',dealeranswerguid,choice);Helper.SetMovie('SetByName','DealerAssistantChoice');};function homepagetextposition(dealeranswerguid,position){var re=new RegExp("\\x2B","g");dealerappearanceloading();DealerAppearance.SaveDealerAppearance('SavePosition',dealeranswerguid,position)};function displaysaveawarddetails(dealerbuildstyleid){document.getElementById('spc_'+dealerbuildstyleid).disabled='';};function saveallawarddetails(){var re=new RegExp("\\x2B","g");if((isNaN(document.getElementById('asy_all').value)==true)){alert('Please enter a valid ASSEMBLY PRICE number.');return;}if((isNaN(document.getElementById('hdw_all').value)==true)){alert('Please enter a valid HARDWARE PRICE number.');return;}if((isNaN(document.getElementById('eng_all').value)==true)){alert('Please enter a valid ENGRAVING PRICE number.');return;}if((isNaN(document.getElementById('epl_all').value)==true)){alert('Please enter a valid ENGRAVING PRICE PER LETTER number.');return;}if((isNaN(document.getElementById('flt_all').value)==true)){alert('Please enter a valid FREE LETTERS number.');return;}if((isNaN(document.getElementById('pck_all').value)==true)){alert('Please enter a valid PACKAGING PRICE number.');return;}if((isNaN(document.getElementById('hnd_all').value)==true)){alert('Please enter a valid HANDLING PRICE number.');return;}dealerpricingupdating();DealerPricing.SaveDealerPricing('SaveAllAwardPricing','',document.getElementById('asy_all').value.replace(re,"%2B"),document.getElementById('hdw_all').value.replace(re,"%2B"),document.getElementById('eng_all').value.replace(re,"%2B"),document.getElementById('epl_all').value.replace(re,"%2B"),document.getElementById('flt_all').value.replace(re,"%2B"),document.getElementById('pck_all').value.replace(re,"%2B"),document.getElementById('hnd_all').value.replace(re,"%2B"))};function saveawarddetails(dealerbuildstyleguid,dealerbuildstyleid){var re=new RegExp("\\x2B","g");if((isNaN(document.getElementById('asy_'+dealerbuildstyleid).value)==true)||(document.getElementById('asy_'+dealerbuildstyleid).value=='')){alert('Please enter a valid ASSEMBLY PRICE number.');return;}if((isNaN(document.getElementById('hdw_'+dealerbuildstyleid).value)==true)||(document.getElementById('hdw_'+dealerbuildstyleid).value=='')){alert('Please enter a valid HARDWARE PRICE number.');return;}if((isNaN(document.getElementById('eng_'+dealerbuildstyleid).value)==true)||(document.getElementById('eng_'+dealerbuildstyleid).value=='')){alert('Please enter a valid ENGRAVING PRICE number.');return;}if((isNaN(document.getElementById('epl_'+dealerbuildstyleid).value)==true)||(document.getElementById('epl_'+dealerbuildstyleid).value=='')){alert('Please enter a valid ENGRAVING PRICE PER LETTER number.');return;}if((isNaN(document.getElementById('flt_'+dealerbuildstyleid).value)==true)||(document.getElementById('flt_'+dealerbuildstyleid).value=='')){alert('Please enter a valid FREE LETTERS number.');return;}if((isNaN(document.getElementById('pck_'+dealerbuildstyleid).value)==true)||(document.getElementById('pck_'+dealerbuildstyleid).value=='')){alert('Please enter a valid PACKAGING PRICE number.');return;}if((isNaN(document.getElementById('hnd_'+dealerbuildstyleid).value)==true)||(document.getElementById('hnd_'+dealerbuildstyleid).value=='')){alert('Please enter a valid HANDLING PRICE number.');return;}dealerpricingupdating();DealerPricing.SaveDealerPricing('SaveAwardPricing',dealerbuildstyleguid,document.getElementById('asy_'+dealerbuildstyleid).value.replace(re,"%2B"),document.getElementById('hdw_'+dealerbuildstyleid).value.replace(re,"%2B"),document.getElementById('eng_'+dealerbuildstyleid).value.replace(re,"%2B"),document.getElementById('epl_'+dealerbuildstyleid).value.replace(re,"%2B"),document.getElementById('flt_'+dealerbuildstyleid).value.replace(re,"%2B"),document.getElementById('pck_'+dealerbuildstyleid).value.replace(re,"%2B"),document.getElementById('hnd_'+dealerbuildstyleid).value.replace(re,"%2B"));document.getElementById('spc_'+dealerbuildstyleid).disabled='disabled';};function UpdateImageQuantity(){var quantity=document.getElementById('ImageQuantity');if(quantity!=null){quantity.value=1;}};function saveeditordata(){var re=new RegExp("\\x2B","g");var editor=GetRadEditor("RadEditor1");editor.Submit();editor.Submit();DealerPages.SaveDealerPages('SaveCurrentPage',document.getElementById('Pe_Title').value.replace(re,"%2B"));};function savesitepricingdata(){var re=new RegExp("\\x2B","g");if((isNaN(document.getElementById('sitemarkup').value)==true)||(document.getElementById('sitemarkup').value=='')){alert('Please enter a valid SITE WIDE MARKUP number omitting the % sign.');return;}dealerpricingupdating();DealerPricing.SaveDealerPricing('SaveSitePricing',document.getElementById('sitemarkup').value.replace(re,"%2B"),document.getElementById('dropsitediscount').options[document.getElementById('dropsitediscount').selectedIndex].value.replace(re,"%2B"))};function savepartgrouppricingdata(){var re=new RegExp("\\x2B","g");if((isNaN(document.getElementById('PartGroupMarkup').value)==true)||(document.getElementById('PartGroupMarkup').value=='')){alert('Please enter a valid PART GROUP MARKUP number omitting the % sign.');return;}dealerpricingupdating();DealerPricing.SaveDealerPricing('SavePartGroupPricing',document.getElementById('dropPartGroupGuid').options[document.getElementById('dropPartGroupGuid').selectedIndex].value.replace(re,"%2B"),document.getElementById('PartGroupMarkup').value.replace(re,"%2B"),document.getElementById('dropPartGroupDiscount').options[document.getElementById('dropPartGroupDiscount').selectedIndex].value.replace(re,"%2B"))};function savebuildtypeorder(buildtypeguid,orderid){var re=new RegExp("\\x2B","g");dealerawardsloading();DealerAwards.SaveDealerAwards('SaveBuildTypeOrder',buildtypeguid,document.getElementById(orderid).options[document.getElementById(orderid).selectedIndex].value.replace(re,"%2B"))};function savebuildstyleorder(buildstyleguid,orderid){var re=new RegExp("\\x2B","g");dealerawardsloading();DealerAwards.SaveDealerAwards('SaveBuildStyleOrder',buildstyleguid,document.getElementById(orderid).options[document.getElementById(orderid).selectedIndex].value.replace(re,"%2B"))};function activepartdata(dealerpartstyleguid,dealerpartstyleid){var re=new RegExp("\\x2B","g");DealerParts.SaveDealerParts('ActivePart',dealerpartstyleguid,document.getElementById('act_'+dealerpartstyleid).checked);document.getElementById('acttext_'+dealerpartstyleid).style.display='none';};function displaysavemyprice(dealerpartstyleid){if(document.getElementById('mp_'+dealerpartstyleid).style.fontWeight=='bold'){document.getElementById('up_'+dealerpartstyleid).style.display='block';document.getElementById('smp_'+dealerpartstyleid).style.display='block';}};function usemypricepartdata(dealerpartstyleguid,partnumber,dealerpartstyleid){var re=new RegExp("\\x2B","g");if((isNaN(document.getElementById('mp_'+dealerpartstyleid).value)==true)||(document.getElementById('mp_'+dealerpartstyleid).value=='')){alert('Please enter a valid NEW PRICE number.');return;}DealerParts.SaveDealerParts('SavePart',dealerpartstyleguid,document.getElementById('mp_'+dealerpartstyleid).value.replace(re,"%2B"));document.getElementById('mp_'+dealerpartstyleid).style.fontWeight='bold';document.getElementById('mpl_'+dealerpartstyleid).style.backgroundColor="#a1c7d4";document.getElementById('p_'+dealerpartstyleid).style.fontWeight='normal';document.getElementById('pl_'+dealerpartstyleid).style.backgroundColor='#ffffff';var myprice=document.getElementById('mp_'+dealerpartstyleid).value;document.getElementById('mp_'+dealerpartstyleid).value=formatmoney(myprice);document.getElementById('ump_'+dealerpartstyleid).style.display='none';document.getElementById('smp_'+dealerpartstyleid).style.display='none';document.getElementById('up_'+dealerpartstyleid).style.display='block';};function formatmoney(amount){amount-=0;amount=(Math.round(amount*100))/100;return(amount==Math.floor(amount))?amount+'.00':((amount*10==Math.floor(amount*10))?amount+'0':amount);};function savemypricepartdata(dealerpartstyleguid,partnumber,dealerpartstyleid){var re=new RegExp("\\x2B","g");if((isNaN(document.getElementById('mp_'+dealerpartstyleid).value)==true)||(document.getElementById('mp_'+dealerpartstyleid).value=='')){alert('Please enter a valid NEW PRICE number.');return;}DealerParts.SaveDealerParts('SavePart',dealerpartstyleguid,document.getElementById('mp_'+dealerpartstyleid).value.replace(re,"%2B"));var myprice=document.getElementById('mp_'+dealerpartstyleid).value;document.getElementById('mp_'+dealerpartstyleid).value=formatmoney(myprice);document.getElementById('smp_'+dealerpartstyleid).style.display='none';};function usepricepartdata(dealerpartstyleguid,partnumber,dealerpartstyleid){var re=new RegExp("\\x2B","g");DealerParts.SaveDealerParts('SavePart',dealerpartstyleguid,-1);document.getElementById('mp_'+dealerpartstyleid).value=document.getElementById('p_'+dealerpartstyleid).value;document.getElementById('mp_'+dealerpartstyleid).style.fontWeight='normal';document.getElementById('mpl_'+dealerpartstyleid).style.backgroundColor='#ffffff';document.getElementById('p_'+dealerpartstyleid).style.fontWeight='bold';document.getElementById('pl_'+dealerpartstyleid).style.backgroundColor='#a1c7d4';document.getElementById('ump_'+dealerpartstyleid).style.display='block';document.getElementById('smp_'+dealerpartstyleid).style.display='none';document.getElementById('up_'+dealerpartstyleid).style.display='none';};function getorders(pagenumber){var re=new RegExp("\\x2B","g");DealerOrders.SaveDealerOrders('GetOrders',document.getElementById('OrderStartingDate').value,document.getElementById('OrderEndingDate').value,document.getElementById('dropOrderStatusGuid').options[document.getElementById('dropOrderStatusGuid').selectedIndex].value.replace(re,"%2B"),pagenumber,document.getElementById('OrderNumbers').value.replace(re,"%2B"));};function activateallparts(){var re=new RegExp("\\x2B","g");DealerParts.SaveDealerParts('ActivateAllParts',document.getElementById('dropActivatePartGroupGuid').options[document.getElementById('dropActivatePartGroupGuid').selectedIndex].value.replace(re,"%2B"),'Y');};function deactivateallparts(){var re=new RegExp("\\x2B","g");DealerParts.SaveDealerParts('ActivateAllParts',document.getElementById('dropDeactivatePartGroupGuid').options[document.getElementById('dropDeactivatePartGroupGuid').selectedIndex].value.replace(re,"%2B"),'N');};function getparts(pagenumber){var re=new RegExp("\\x2B","g");DealerParts.SaveDealerParts('GetParts',document.getElementById('PartNumber').value,document.getElementById('dropPartGroupGuid').options[document.getElementById('dropPartGroupGuid').selectedIndex].value.replace(re,"%2B"),document.getElementById('Filter').value.replace(re,"%2B"),pagenumber);};function getpart(){var re=new RegExp("\\x2B","g");DealerParts.SaveDealerParts('GetPart',document.getElementById('PartNumber').value,'','');};function savedefaultbuildstyledata(buildstyleguid){var re=new RegExp("\\x2B","g");dealerawardsloading();DealerAwards.SaveDealerAwards('SaveDefaultBuildStyle',buildstyleguid)};function activatebuildtype(buildtypeguid){var re=new RegExp("\\x2B","g");dealerawardsloading();DealerAwards.SaveDealerAwards('ActivateBuildType',buildtypeguid)};function deactivatebuildtype(buildtypeguid){var re=new RegExp("\\x2B","g");dealerawardsloading();DealerAwards.SaveDealerAwards('DeactivateBuildType',buildtypeguid)};function activatebuildstyle(buildstyleguid){var re=new RegExp("\\x2B","g");dealerawardsloading();DealerAwards.SaveDealerAwards('ActivateBuildStyle',buildstyleguid)};function deactivatebuildstyle(buildstyleguid){var re=new RegExp("\\x2B","g");dealerawardsloading();DealerAwards.SaveDealerAwards('DeactivateBuildStyle',buildstyleguid)};function savedefaultbuilditemdata(builditemguid){var re=new RegExp("\\x2B","g");dealerawardsloading();DealerAwards.SaveDealerAwards('SaveDefault',builditemguid);document.getElementById('award').style.display='block';document.getElementById('awardconfig').style.display='none';};function sendprebuiltdata(){var re=new RegExp("\\x2B","g");buildpartbusy();BuildImage.SavePreBuilt('Save',document.getElementById('PreBuiltName').value.replace(re,"%2B"),document.getElementById('dropPreBuiltPartType').options[document.getElementById('dropPreBuiltPartType').selectedIndex].value.replace(re,"%2B"),document.getElementById('PreBuiltNumber').value.replace(re,"%2B"));BuildPart.SetBuild('PreBuilts','Y',true,'','',getEngravingHtml('RadEditor1'),getEngravingText('RadEditor1'),getEngravingHtml('RadEditor2'),getEngravingText('RadEditor2'));BuildPart.Refresh();};function showprebuilts(){var re=new RegExp("\\x2B","g");DealerAwards.SaveDealerAwards('ShowPrebuilts');BuildPart.Refresh();};function showparts(){var re=new RegExp("\\x2B","g");DealerAwards.SaveDealerAwards('ShowParts');BuildPart.Refresh();};function deleteprebuiltdata(prebuiltguid){var re=new RegExp("\\x2B","g");buildpartbusy();BuildImage.SavePreBuilt('Delete',document.getElementById('PreBuiltName').value.replace(re,"%2B"),document.getElementById('dropPreBuiltPartType').options[document.getElementById('dropPreBuiltPartType').selectedIndex].value.replace(re,"%2B"),document.getElementById('PreBuiltNumber').value.replace(re,"%2B"));BuildPart.Refresh();};function sameascontact(){if(document.getElementById('billingSameAsAccount').checked){document.getElementById('billingFirstName').value=document.getElementById('accountFirstName').value;document.getElementById('billingLastName').value=document.getElementById('accountLastName').value;document.getElementById('billingPhone').value=document.getElementById('accountPhone').value;}else{document.getElementById('billingFirstName').value='';document.getElementById('billingLastName').value='';document.getElementById('billingPhone').value='';document.getElementById('billingFirstName').value='';document.getElementById('billingLastName').value='';document.getElementById('billingPhone').value='';document.getElementById('billingCompany').value='';document.getElementById('dropbillingAddressType').selectedIndex=0;document.getElementById('billingAddress1').value='';document.getElementById('billingAddress2').value='';document.getElementById('billingSuite').value='';document.getElementById('billingCity').value='';document.getElementById('billingCounty').value='';document.getElementById('dropbillingState').selectedIndex=0;document.getElementById('billingZip').value='';document.getElementById('dropbillingCountry').selectedIndex=0;}};function sameasbilling(){if(document.getElementById('shippingSameAsBilling').checked){document.getElementById('shippingFirstName').value=document.getElementById('billingFirstName').value;document.getElementById('shippingLastName').value=document.getElementById('billingLastName').value;document.getElementById('shippingPhone').value=document.getElementById('billingPhone').value;document.getElementById('shippingCompany').value=document.getElementById('billingCompany').value;document.getElementById('dropshippingAddressType').selectedIndex=document.getElementById('dropbillingAddressType').selectedIndex;document.getElementById('shippingAddress1').value=document.getElementById('billingAddress1').value;document.getElementById('shippingAddress2').value=document.getElementById('billingAddress2').value;document.getElementById('shippingSuite').value=document.getElementById('billingSuite').value;document.getElementById('shippingCity').value=document.getElementById('billingCity').value;document.getElementById('shippingCounty').value=document.getElementById('billingCounty').value;document.getElementById('dropshippingState').selectedIndex=document.getElementById('dropbillingState').selectedIndex;document.getElementById('shippingZip').value=document.getElementById('billingZip').value;document.getElementById('dropshippingCountry').selectedIndex=document.getElementById('dropbillingCountry').selectedIndex;document.getElementById('dropshippingState').selectedIndex=document.getElementById('dropbillingState').selectedIndex;}else{document.getElementById('shippingFirstName').value='';document.getElementById('shippingLastName').value='';document.getElementById('shippingPhone').value='';document.getElementById('shippingCompany').value='';document.getElementById('dropshippingAddressType').selectedIndex=0;document.getElementById('shippingAddress1').value='';document.getElementById('shippingAddress2').value='';document.getElementById('shippingSuite').value='';document.getElementById('shippingCity').value='';document.getElementById('shippingCounty').value='';document.getElementById('dropshippingState').selectedIndex=0;document.getElementById('shippingZip').value='';document.getElementById('dropshippingCountry').selectedIndex=0;}};function accountchanged(){if(document.getElementById('billingSameAsAccount').checked){document.getElementById('billingFirstName').value=document.getElementById('accountFirstName').value;document.getElementById('billingLastName').value=document.getElementById('accountLastName').value;document.getElementById('billingPhone').value=document.getElementById('accountPhone').value;}};function billingchanged(){if(document.getElementById('shippingSameAsBilling').checked){document.getElementById('shippingFirstName').value=document.getElementById('billingFirstName').value;document.getElementById('shippingLastName').value=document.getElementById('billingLastName').value;document.getElementById('shippingPhone').value=document.getElementById('billingPhone').value;document.getElementById('shippingCompany').value=document.getElementById('billingCompany').value;document.getElementById('dropshippingAddressType').selectedIndex=document.getElementById('dropbillingAddressType').selectedIndex;document.getElementById('shippingAddress1').value=document.getElementById('billingAddress1').value;document.getElementById('shippingAddress2').value=document.getElementById('billingAddress2').value;document.getElementById('shippingSuite').value=document.getElementById('billingSuite').value;document.getElementById('shippingCity').value=document.getElementById('billingCity').value;document.getElementById('shippingCounty').value=document.getElementById('billingCounty').value;document.getElementById('dropshippingState').selectedIndex=document.getElementById('dropbillingState').selectedIndex;document.getElementById('shippingZip').value=document.getElementById('billingZip').value;document.getElementById('dropshippingCountry').selectedIndex=document.getElementById('dropbillingCountry').selectedIndex;}};function billingstatechanged(){if(document.getElementById('shippingSameAsBilling').checked){document.getElementById('dropshippingState').selectedIndex=document.getElementById('dropbillingState').selectedIndex;}};function accountpassword(){var re=new RegExp("\\x2B","g");Order.EmailAccount(document.getElementById('RequestPasswordEmail').value.replace(re,"%2B"));};function useraccountpassword(){var re=new RegExp("\\x2B","g");UserAccount.EmailAccount(document.getElementById('RequestPasswordEmail').value.replace(re,"%2B"));};function useraccountsignin(){var re=new RegExp("\\x2B","g");var usesavedcart=document.getElementById('accountUseSavedCart');var usesavedcartchecked=true;if(usesavedcart!=null){usesavedcartchecked=document.getElementById('accountUseSavedCart').checked;}UserAccount.SignInAccount(document.getElementById('accountEmail').value.replace(re,"%2B"),document.getElementById('accountPassword').value.replace(re,"%2B"),usesavedcartchecked,document.getElementById('confirmVerification').value);PageHeader.Refresh();PageFooter.Refresh();var shoppingcart=document.getElementById('divShoppingCart');if(shoppingcart!=null){ShoppingCart.Refresh();}var shoppingcartdetails=document.getElementById('divShoppingCartDetails');if(shoppingcartdetails!=null){ShoppingCartDetails.Refresh();}var ordersummarydetails=document.getElementById('divOrderSummaryDetails');if(ordersummarydetails!=null){OrderSummaryDetails.Refresh();}};function useraccountsignout(customerguid){PageHeader.SignOutAccount(customerguid);var shoppingcart=document.getElementById('divShoppingCart');if(shoppingcart!=null){ShoppingCart.Refresh();}var shoppingcartdetails=document.getElementById('divShoppingCartDetails');if(shoppingcartdetails!=null){ShoppingCartDetails.Refresh();}var ordersummarydetails=document.getElementById('divOrderSummaryDetails');if(ordersummarydetails!=null){OrderSummaryDetails.Refresh();}PageHeader.Refresh();PageFooter.Refresh();};function accountsignin(){var re=new RegExp("\\x2B","g");var usesavedcart=document.getElementById('accountUseSavedCart');var usesavedcartchecked=true;if(usesavedcart!=null){usesavedcartchecked=document.getElementById('accountUseSavedCart').checked;}Order.SignInAccount(document.getElementById('accountEmail').value.replace(re,"%2B"),document.getElementById('accountPassword').value.replace(re,"%2B"),usesavedcartchecked,document.getElementById('confirmVerification').value);PageHeader.Refresh();PageFooter.Refresh();var shoppingcart=document.getElementById('divShoppingCart');if(shoppingcart!=null){ShoppingCart.Refresh();}var shoppingcartdetails=document.getElementById('divShoppingCartDetails');if(shoppingcartdetails!=null){ShoppingCartDetails.Refresh();}var ordersummarydetails=document.getElementById('divOrderSummaryDetails');if(ordersummarydetails!=null){OrderSummaryDetails.Refresh();}};function accountsignout(customerguid){PageHeader.SignOutAccount(customerguid);PageFooter.Refresh();var shoppingcart=document.getElementById('divShoppingCart');if(shoppingcart!=null){ShoppingCart.Refresh();}var shoppingcartdetails=document.getElementById('divShoppingCartDetails');if(shoppingcartdetails!=null){ShoppingCartDetails.Refresh();}var ordersummarydetails=document.getElementById('divOrderSummaryDetails');if(ordersummarydetails!=null){OrderSummaryDetails.Refresh();}};function senduseraccountdata(command,nextstep){var re=new RegExp("\\x2B","g");UserAccount.SetAccount(nextstep,document.getElementById('accountFirstName').value.replace(re,"%2B"),document.getElementById('accountLastName').value.replace(re,"%2B"),document.getElementById('accountEmail').value.replace(re,"%2B"),document.getElementById('accountPassword').value.replace(re,"%2B"),document.getElementById('accountPasswordVerify').value.replace(re,"%2B"),document.getElementById('accountPhone').value.replace(re,"%2B"),document.getElementById('accountMiscInfo').value.replace(re,"%2B"),document.getElementById('accountOkToEmail').checked,document.getElementById('accountTaxExempt').checked,document.getElementById('billingSameAsAccount').checked,"billing",document.getElementById('billingFirstName').value.replace(re,"%2B"),document.getElementById('billingLastName').value.replace(re,"%2B"),document.getElementById('billingPhone').value.replace(re,"%2B"),document.getElementById('billingCompany').value.replace(re,"%2B"),document.getElementById('dropbillingAddressType').options[document.getElementById('dropbillingAddressType').selectedIndex].value.replace(re,"%2B"),document.getElementById('billingAddress1').value.replace(re,"%2B"),document.getElementById('billingAddress2').value.replace(re,"%2B"),document.getElementById('billingSuite').value.replace(re,"%2B"),document.getElementById('billingCity').value.replace(re,"%2B"),document.getElementById('billingCounty').value.replace(re,"%2B"),document.getElementById('dropbillingState').options[document.getElementById('dropbillingState').selectedIndex].value.replace(re,"%2B"),document.getElementById('billingZip').value.replace(re,"%2B"),document.getElementById('dropbillingCountry').options[document.getElementById('dropbillingCountry').selectedIndex].value.replace(re,"%2B"),document.getElementById('shippingSameAsBilling').checked,"shipping",document.getElementById('shippingFirstName').value.replace(re,"%2B"),document.getElementById('shippingLastName').value.replace(re,"%2B"),document.getElementById('shippingPhone').value.replace(re,"%2B"),document.getElementById('shippingCompany').value.replace(re,"%2B"),document.getElementById('dropshippingAddressType').options[document.getElementById('dropshippingAddressType').selectedIndex].value.replace(re,"%2B"),document.getElementById('shippingAddress1').value.replace(re,"%2B"),document.getElementById('shippingAddress2').value.replace(re,"%2B"),document.getElementById('shippingSuite').value.replace(re,"%2B"),document.getElementById('shippingCity').value.replace(re,"%2B"),document.getElementById('shippingCounty').value.replace(re,"%2B"),document.getElementById('dropshippingState').options[document.getElementById('dropshippingState').selectedIndex].value.replace(re,"%2B"),document.getElementById('shippingZip').value.replace(re,"%2B"),document.getElementById('dropshippingCountry').options[document.getElementById('dropshippingCountry').selectedIndex].value.replace(re,"%2B"),command);if(command=="create"){PageHeader.Refresh();PageFooter.Refresh();}if(command=="set"){}};function sendpaymentdata(){var re=new RegExp("\\x2B","g");var elementexists;var creditNameOnCard='';elementexists=document.getElementById('creditNameOnCard');if(elementexists!=null){creditNameOnCard=elementexists.value.replace(re,"%2B");}var creditCardNumber='';elementexists=document.getElementById('creditCardNumber');if(elementexists!=null){creditCardNumber=elementexists.value.replace(re,"%2B");}var creditCardVerificationCode='';elementexists=document.getElementById('creditCardVerificationCode');if(elementexists!=null){creditCardVerificationCode=elementexists.value.replace(re,"%2B");}var creditCardType='';elementexists=document.getElementById('dropcreditCardType');if(elementexists!=null){creditCardType=document.getElementById('dropcreditCardType').options[document.getElementById('dropcreditCardType').selectedIndex].value.replace(re,"%2B");}var creditExpirationMonth='';elementexists=document.getElementById('dropcreditExpirationMonth');if(elementexists!=null){creditExpirationMonth=document.getElementById('dropcreditExpirationMonth').options[document.getElementById('dropcreditExpirationMonth').selectedIndex].value.replace(re,"%2B");}var creditExpirationYear='';elementexists=document.getElementById('dropcreditExpirationYear');if(elementexists!=null){creditExpirationYear=document.getElementById('dropcreditExpirationYear').options[document.getElementById('dropcreditExpirationYear').selectedIndex].value.replace(re,"%2B");}var poNumber='';elementexists=document.getElementById('poNumber');if(elementexists!=null){poNumber=elementexists.value.replace(re,"%2B");}Order.SetPayment(creditNameOnCard,creditCardNumber,creditCardVerificationCode,creditCardType,creditExpirationMonth,creditExpirationYear,poNumber);};function sendaccountdata(command,nextstep){var re=new RegExp("\\x2B","g");Order.SetAccount(nextstep,document.getElementById('accountFirstName').value.replace(re,"%2B"),document.getElementById('accountLastName').value.replace(re,"%2B"),document.getElementById('accountEmail').value.replace(re,"%2B"),document.getElementById('accountPassword').value.replace(re,"%2B"),document.getElementById('accountPasswordVerify').value.replace(re,"%2B"),document.getElementById('accountPhone').value.replace(re,"%2B"),document.getElementById('accountMiscInfo').value.replace(re,"%2B"),document.getElementById('accountOkToEmail').checked,document.getElementById('accountTaxExempt').checked,document.getElementById('billingSameAsAccount').checked,"billing",document.getElementById('billingFirstName').value.replace(re,"%2B"),document.getElementById('billingLastName').value.replace(re,"%2B"),document.getElementById('billingPhone').value.replace(re,"%2B"),document.getElementById('billingCompany').value.replace(re,"%2B"),document.getElementById('dropbillingAddressType').options[document.getElementById('dropbillingAddressType').selectedIndex].value.replace(re,"%2B"),document.getElementById('billingAddress1').value.replace(re,"%2B"),document.getElementById('billingAddress2').value.replace(re,"%2B"),document.getElementById('billingSuite').value.replace(re,"%2B"),document.getElementById('billingCity').value.replace(re,"%2B"),document.getElementById('billingCounty').value.replace(re,"%2B"),document.getElementById('dropbillingState').options[document.getElementById('dropbillingState').selectedIndex].value.replace(re,"%2B"),document.getElementById('billingZip').value.replace(re,"%2B"),document.getElementById('dropbillingCountry').options[document.getElementById('dropbillingCountry').selectedIndex].value.replace(re,"%2B"),document.getElementById('shippingSameAsBilling').checked,"shipping",document.getElementById('shippingFirstName').value.replace(re,"%2B"),document.getElementById('shippingLastName').value.replace(re,"%2B"),document.getElementById('shippingPhone').value.replace(re,"%2B"),document.getElementById('shippingCompany').value.replace(re,"%2B"),document.getElementById('dropshippingAddressType').options[document.getElementById('dropshippingAddressType').selectedIndex].value.replace(re,"%2B"),document.getElementById('shippingAddress1').value.replace(re,"%2B"),document.getElementById('shippingAddress2').value.replace(re,"%2B"),document.getElementById('shippingSuite').value.replace(re,"%2B"),document.getElementById('shippingCity').value.replace(re,"%2B"),document.getElementById('shippingCounty').value.replace(re,"%2B"),document.getElementById('dropshippingState').options[document.getElementById('dropshippingState').selectedIndex].value.replace(re,"%2B"),document.getElementById('shippingZip').value.replace(re,"%2B"),document.getElementById('dropshippingCountry').options[document.getElementById('dropshippingCountry').selectedIndex].value.replace(re,"%2B"),command);if(command=="create"){Order.SetOrder('Create','','true');PageHeader.Refresh();PageFooter.Refresh();var shoppingcart=document.getElementById('divShoppingCart');if(shoppingcart!=null){ShoppingCart.Refresh();}var shoppingcartdetails=document.getElementById('divShoppingCartDetails');if(shoppingcartdetails!=null){ShoppingCartDetails.Refresh();}var ordersummarydetails=document.getElementById('divOrderSummaryDetails');if(ordersummarydetails!=null){OrderSummaryDetails.Refresh();}}if(command=="set"){Order.SetOrder('Create');}};function changepagefooter(pageguid,pageparent,object,buildtypeguid){if(location.href.toLowerCase().indexOf(pageparent)== -1){pageloading();setTimeout("refreshloadingimage()",100);PageFooter.SetPage(pageguid,false,buildtypeguid);location.href=pageparent;}else{pagecontentbusy();PageContent.SetPage(pageguid,true,buildtypeguid);object.style.cursor='pointer';}};function changepageheader(pageguid,pageparent,object){pageloading();setTimeout("refreshloadingimage()",100);PageHeader.SetPage(pageguid,false);location.href=pageparent;};function changepagebuild(buildtypeguid,pageparent,object,norefresh,buildstyleguid){if(location.href.toLowerCase().indexOf(pageparent)== -1){pageloading();setTimeout("refreshloadingimage()",100);if(buildtypeguid!=''){if(buildstyleguid!=''){PageHeader.SetBuild('BuildTypeBuildStyle',buildtypeguid,false,false,buildstyleguid,getEngravingHtml('RadEditor1'),getEngravingText('RadEditor1'),getEngravingHtml('RadEditor2'),getEngravingText('RadEditor2'));}PageHeader.SetBuild('BuildType',buildtypeguid,false,true,buildstyleguid,getEngravingHtml('RadEditor1'),getEngravingText('RadEditor1'),getEngravingHtml('RadEditor2'),getEngravingText('RadEditor2'));}location.href=pageparent;}else{buildpartbusy();if(!norefresh){buildimagebusy();}if(buildstyleguid!=''){BuildPart.SetBuild('BuildTypeBuildStyle',buildtypeguid,false,false,buildstyleguid,getEngravingHtml('RadEditor1'),getEngravingText('RadEditor1'),getEngravingHtml('RadEditor2'),getEngravingText('RadEditor2'));}BuildPart.SetBuild('BuildType',buildtypeguid,true,'',buildstyleguid,getEngravingHtml('RadEditor1'),getEngravingText('RadEditor1'),getEngravingHtml('RadEditor2'),getEngravingText('RadEditor2'));if(!norefresh){aftercallback_buildpart=String(BuildImage.CreateImage('Rebuild'));}object.style.cursor='pointer';}};function refreshloadingimage(){var imageloading=document.getElementById("loadingcircle");if(imageloading!=null){imageloading.src="images/loading.gif";}};function changedealerpagestatistics(pageparent,object,norefresh){if(location.href.toLowerCase().indexOf(pageparent)== -1){pageloading();setTimeout("refreshloadingimage()",100);location.href=pageparent;}else{dealerstatisticsloading();DealerStatistics.Refresh();object.style.cursor='pointer';}};function changedealerpagecoupons(pageparent,object,norefresh){if(location.href.toLowerCase().indexOf(pageparent)== -1){pageloading();setTimeout("refreshloadingimage()",100);location.href=pageparent;}else{dealercouponsloading();DealerCoupons.Refresh();object.style.cursor='pointer';}};function changedealerpagecustomers(pageparent,object,norefresh){if(location.href.toLowerCase().indexOf(pageparent)== -1){pageloading();setTimeout("refreshloadingimage()",100);location.href=pageparent;}else{dealercustomersloading();DealerCustomers.Refresh();object.style.cursor='pointer';}};function changedealerpagehome(pageparent,object,norefresh){if(location.href.toLowerCase().indexOf(pageparent)== -1){pageloading();setTimeout("refreshloadingimage()",100);location.href=pageparent;}else{dealerhomeloading();DealerHome.Refresh();object.style.cursor='pointer';}};function changedealerpageappearance(pageparent,object,norefresh){if(location.href.toLowerCase().indexOf(pageparent)== -1){pageloading();setTimeout("refreshloadingimage()",100);location.href=pageparent;}else{dealerappearanceloading();DealerAppearance.Refresh();object.style.cursor='pointer';}};function changedealerpageawards(pageparent,object,norefresh){if(location.href.toLowerCase().indexOf(pageparent)== -1){pageloading();setTimeout("refreshloadingimage()",100);location.href=pageparent;}else{dealerawardsloading();document.getElementById('awardconfig').style.display='none';document.getElementById('award').style.display='block';DealerAwards.Refresh();object.style.cursor='pointer';}};function changedealerpageorders(pageparent,object,norefresh){if(location.href.toLowerCase().indexOf(pageparent)== -1){pageloading();setTimeout("refreshloadingimage()",100);location.href=pageparent;}else{dealerordersloading();DealerOrders.Refresh();object.style.cursor='pointer';}};function changedealerpagepages(pageparent,object,norefresh){if(location.href.toLowerCase().indexOf(pageparent)== -1){pageloading();setTimeout("refreshloadingimage()",100);location.href=pageparent;}else{dealerpagesloading();DealerPages.Refresh();object.style.cursor='pointer';}};function changedealerpageprebuilts(pageparent,object,norefresh){if(location.href.toLowerCase().indexOf(pageparent)== -1){pageloading();setTimeout("refreshloadingimage()",100);location.href=pageparent;}else{dealerprebuiltsloading();DealerPrebuilts.Refresh();object.style.cursor='pointer';}};function changedealerpagesupport(pageparent,object,norefresh){if(location.href.toLowerCase().indexOf(pageparent)== -1){pageloading();setTimeout("refreshloadingimage()",100);location.href=pageparent;}else{dealersupportloading();DealerSupport.Refresh();object.style.cursor='pointer';}};function changedealerpageforums(pageparent,object,norefresh){if(location.href.toLowerCase().indexOf(pageparent)== -1){pageloading();setTimeout("refreshloadingimage()",100);location.href=pageparent;}else{dealerforumsloading();DealerForums.Refresh();object.style.cursor='pointer';}};function changedealerpagepricing(pageparent,object,norefresh){if(location.href.toLowerCase().indexOf(pageparent)== -1){pageloading();setTimeout("refreshloadingimage()",100);location.href=pageparent;}else{dealerpricingloading();DealerPricing.Refresh();object.style.cursor='pointer';}};function changedealerpageparts(pageparent,object,norefresh){if(location.href.toLowerCase().indexOf(pageparent)== -1){pageloading();setTimeout("refreshloadingimage()",100);location.href=pageparent;}else{dealerpartsloading();DealerParts.Refresh();object.style.cursor='pointer';}};function changepageprebuilts(pageparent,object,norefresh){if(location.href.toLowerCase().indexOf(pageparent)== -1){pageloading();setTimeout("refreshloadingimage()",100);PageHeader.SetBuild('PreBuilts','Y',false,true,'',getEngravingHtml('RadEditor1'),getEngravingText('RadEditor1'),getEngravingHtml('RadEditor2'),getEngravingText('RadEditor2'));location.href=pageparent;}else{buildpartbusy();BuildPart.SetBuild('PreBuilts','Y',true,'','',getEngravingHtml('RadEditor1'),getEngravingText('RadEditor1'),getEngravingHtml('RadEditor2'),getEngravingText('RadEditor2'));object.style.cursor='pointer';}};function changepageorder(orderstepguid,pageparent,object){if(location.href.toLowerCase().indexOf(pageparent)== -1){pageloading();setTimeout("refreshloadingimage()",100);PageHeader.SetOrder('NextStep',orderstepguid,false);location.href=pageparent;}else{Order.SetOrder('NextStep',orderstepguid,true);object.style.cursor='pointer';var shoppingcart=document.getElementById('divShoppingCart');if(shoppingcart!=null){ShoppingCart.Refresh();}var shoppingcartdetails=document.getElementById('divShoppingCartDetails');if(shoppingcartdetails!=null){ShoppingCartDetails.Refresh();}var ordersummarydetails=document.getElementById('divOrderSummaryDetails');if(ordersummarydetails!=null){OrderSummaryDetails.Refresh();}}};function changepageaccount(accountstepguid,pageparent,object){if(location.href.toLowerCase().indexOf(pageparent)== -1){pageloading();setTimeout("refreshloadingimage()",100);PageHeader.SetAccountStatus('NextStep',accountstepguid,false);PageFooter.Refresh();location.href=pageparent;}else{UserAccount.SetAccountStatus('NextStep',accountstepguid,true);PageFooter.Refresh();object.style.cursor='pointer';}};function pageloading(){var pageloading=document.getElementById('divPageLoading');if(pageloading!=null){var element=document.body;if(element!=null){pageloading.style.width=element.clientWidth+'px';pageloading.style.height=element.clientHeight+'px';pageloading.style.left=element.scrollLeft+'px';pageloading.style.top=element.scrollTop+'px';pageloading.style.visibility='visible';}}};function pageloadingold(){var logo=document.getElementById('headerleftlogo');if(logo!=null){var logopositionX=findPosX(document.getElementById('headerleftlogo'));var pageloading=document.getElementById('divPageLoading');if(pageloading!=null){document.getElementById('divPageLoading').style.left=logopositionX+'px';document.getElementById('divPageLoading').style.visibility='visible';}}};function dealeractivateloading(){var loading=document.getElementById('divDealerActivateLoading');if(loading!=null){document.getElementById('divDealerActivateLoading').style.visibility='visible';}};function dealerhomeloading(){var loading=document.getElementById('divDealerHomeLoading');if(loading!=null){document.getElementById('divDealerHomeLoading').style.visibility='visible';}};function dealercustomitemloading(){var loading=document.getElementById('divDealerCustomItemLoading');if(loading!=null){document.getElementById('divDealerCustomItemLoading').style.visibility='visible';}};function dealerstatisticsloading(){var loading=document.getElementById('divDealerStatisticsLoading');if(loading!=null){document.getElementById('divDealerStatisticsLoading').style.visibility='visible';}};function dealercouponsloading(){var loading=document.getElementById('divDealerCouponsLoading');if(loading!=null){document.getElementById('divDealerCouponsLoading').style.visibility='visible';}};function dealercustomersloading(){var loading=document.getElementById('divDealerCustomersLoading');if(loading!=null){document.getElementById('divDealerCustomersLoading').style.visibility='visible';}};function dealerappearanceloading(){var loading=document.getElementById('divDealerAppearanceLoading');if(loading!=null){document.getElementById('divDealerAppearanceLoading').style.visibility='visible';}};function dealerawardsloading(){var loading=document.getElementById('divDealerAwardsLoading');if(loading!=null){document.getElementById('divDealerAwardsLoading').style.visibility='visible';}};function dealerprebuiltsloading(){var loading=document.getElementById('divDealerPrebuiltsLoading');if(loading!=null){document.getElementById('divDealerPrebuiltsLoading').style.visibility='visible';}};function dealerordersloading(){var loading=document.getElementById('divDealerOrdersLoading');if(loading!=null){document.getElementById('divDealerOrdersLoading').style.visibility='visible';}};function dealersupportloading(){var loading=document.getElementById('divDealerSupportLoading');if(loading!=null){document.getElementById('divDealerSupportLoading').style.visibility='visible';}};function dealerpricingloading(){var loading=document.getElementById('divDealerPricingLoading');if(loading!=null){document.getElementById('divDealerPricingLoading').style.visibility='visible';}};function dealerpricingupdating(){var loading=document.getElementById('divDealerPricingUpdating');if(loading!=null){document.getElementById('divDealerPricingUpdating').style.visibility='visible';}};function dealerpartsloading(){var loading=document.getElementById('divDealerPartsLoading');if(loading!=null){document.getElementById('divDealerPartsLoading').style.visibility='visible';}};function dealerpagesloading(){var loading=document.getElementById('divDealerPagesLoading');if(loading!=null){document.getElementById('divDealerPagesLoading').style.visibility='visible';}};function buildpartbusy(){var loading=document.getElementById('divBuildPartBusy');if(loading!=null){document.getElementById('divBuildPartBusy').style.visibility='visible';}};function buildimagebusy(){var loading=document.getElementById('divBuildImageBusy');var buildimage=document.getElementById('divBuildImage1');if(loading!=null&&buildimage!=null){loading.style.top=buildimage.style.top;loading.style.visibility='visible';}};function shoppingcartbusy(){var loading=document.getElementById('divShoppingCartBusy');if(loading!=null){document.getElementById('divShoppingCartBusy').style.visibility='visible';}};function shipratesbusy(){var loading=document.getElementById('divShipRatesBusy');if(loading!=null){document.getElementById('divShipRatesBusy').style.visibility='visible';}};function pagecontentbusy(){var loading=document.getElementById('divPageContentLoading');if(loading!=null){document.getElementById('divPageContentLoading').style.visibility='visible';}};function move(e){if(dragapproved){z.style.left=ns6?temp1+e.clientX-x:temp1+event.clientX-x;z.style.top=ns6?temp2+e.clientY-y:temp2+event.clientY-y;HelperPositionX=parseInt(z.style.left+0);HelperPositionY=parseInt(z.style.top+0);return false;}};function drags(e){if(!ie&& !ns6)return;var firedobj=ns6?e.target:event.srcElement;var topelement=ns6?"HTML":"BODY";while(firedobj.tagName!=topelement&&firedobj.className!="drag"){firedobj=ns6?firedobj.parentNode:firedobj.parentElement;}if(firedobj.className=="drag"){dragapproved=true;z=firedobj;temp1=parseInt(z.style.left+0);temp2=parseInt(z.style.top+0);x=ns6?e.clientX:event.clientX;y=ns6?e.clientY:event.clientY;document.onmousemove=move;return false;}};function getEngravingHtml(editorid){var text='';var textlines='';var line1=document.getElementById('engravetext1');if(line1!=null){textlines=textlines+line1.value+'amp;lt;bramp;gt;';}var line2=document.getElementById('engravetext2');if(line2!=null){textlines=textlines+line2.value+'amp;lt;bramp;gt;';}var line3=document.getElementById('engravetext3');if(line3!=null){textlines=textlines+line3.value+'amp;lt;bramp;gt;';}var line4=document.getElementById('engravetext4');if(line4!=null){textlines=textlines+line4.value+'amp;lt;bramp;gt;';}var line5=document.getElementById('engravetext5');if(line5!=null){textlines=textlines+line5.value+'amp;lt;bramp;gt;';}var line6=document.getElementById('engravetext6');if(line6!=null){textlines=textlines+line6.value+'amp;lt;bramp;gt;';}var line7=document.getElementById('engravetext7');if(line7!=null){textlines=textlines+line7.value+'amp;lt;bramp;gt;';}var line8=document.getElementById('engravetext8');if(line8!=null){textlines=textlines+line8.value+'amp;lt;bramp;gt;';}var line9=document.getElementById('engravetext9');if(line9!=null){textlines=textlines+line9.value+'amp;lt;bramp;gt;';}var line10=document.getElementById('engravetext10');if(line10!=null){textlines=textlines+line10.value+'amp;lt;bramp;gt;';}text=textlines.replace(new RegExp(/\r\n/g),"amp;lt;bramp;gt;").replace(new RegExp(/</g),"amp;lt;").replace(new RegExp(/>/g),"amp;gt;").replace(String.fromCharCode(160)," ");;return text.toString();};function getEngravingText(editorid){var notes='';var textarea=document.getElementById('itemnotes');if(textarea!=null){notes=textarea.value;}return notes.toString();var text='';var textlines='';var line1=document.getElementById('engravetext1');if(line1!=null){textlines=textlines+line1.value+'amp;lt;bramp;gt;';}var line2=document.getElementById('engravetext2');if(line2!=null){textlines=textlines+line2.value+'amp;lt;bramp;gt;';}var line3=document.getElementById('engravetext3');if(line3!=null){textlines=textlines+line3.value+'amp;lt;bramp;gt;';}var line4=document.getElementById('engravetext4');if(line4!=null){textlines=textlines+line4.value+'amp;lt;bramp;gt;';}var line5=document.getElementById('engravetext5');if(line5!=null){textlines=textlines+line5.value+'amp;lt;bramp;gt;';}var line6=document.getElementById('engravetext6');if(line6!=null){textlines=textlines+line6.value+'amp;lt;bramp;gt;';}var line7=document.getElementById('engravetext7');if(line7!=null){textlines=textlines+line7.value+'amp;lt;bramp;gt;';}var line8=document.getElementById('engravetext8');if(line8!=null){textlines=textlines+line8.value+'amp;lt;bramp;gt;';}var line9=document.getElementById('engravetext9');if(line9!=null){textlines=textlines+line9.value+'amp;lt;bramp;gt;';}var line10=document.getElementById('engravetext10');if(line10!=null){textlines=textlines+line10.value+'amp;lt;bramp;gt;';}text=textlines.replace(new RegExp(/\r\n/g),"amp;lt;bramp;gt;").replace(new RegExp(/</g),"amp;lt;").replace(new RegExp(/>/g),"amp;gt;").replace(String.fromCharCode(160)," ");;return text.toString();};function getEngravingHtmlold(editorid){var text1='';if(window.GetRadEditor){var editor1=GetRadEditor(editorid.toString());if(editor1!=null){var text=editor1.GetHtml(true);var text1=text.replace(new RegExp(/</g),"amp;lt;").replace(new RegExp(/>/g),"amp;gt;").replace(String.fromCharCode(160)," ");;}}return text1.toString();};function getEngravingTextold(editorid){var text1='';if(window.GetRadEditor){var editor1=GetRadEditor(editorid.toString());if(editor1!=null){var text=editor1.GetText();text1=text.replace(new RegExp(/\r\n/g),"amp;lt;bramp;gt;");}}return text1.toString();};function setengrave(editorid){var editor1=GetRadEditor(editorid.toString());editor1.SetHtml(document.getElementById('BaseEngraving').value);};function movemainengravingeditor(xoffset,yoffset){return;try{var engrave=document.getElementById('divMainEngraving');if(engrave!=null){var editor1=GetRadEditor('RadEditor1');if(editor1!=null){if(ie){editor1.SetSize(eval(engrave.offsetWidth+0),eval(engrave.offsetHeight-0));}if(ns6){var HtmlArea=document.getElementById('RadEWrapperRadEditor1');HtmlArea.style.width=eval(engrave.offsetWidth+6)+'px';HtmlArea.style.height=eval(engrave.offsetHeight-14+10)+'px';var HtmlArea2=document.getElementById('RadEContentIframeRadEditor1');HtmlArea2.style.height=eval(engrave.offsetHeight-14-20+10)+'px';}}var internal_xoffset=0;var internal_yoffset=0;if(ns6){internal_xoffset= -3;internal_yoffset=0;}else{internal_xoffset=0;internal_yoffset=0;}var diveditor=document.getElementById('divEditor');if(diveditor!=null){diveditor.style.left=eval(findPosX(engrave)+xoffset+internal_xoffset)+'px';diveditor.style.top=eval(findPosY(engrave)+yoffset+internal_yoffset)+'px';diveditor.style.visibility='visible';}}else{var editor1=GetRadEditor('RadEditor1');if(editor1!=null){editor1.SetVisible(false);}var diveditor=document.getElementById('divEditor');diveditor.style.visibility='hidden';}}catch(er){alert('movemainengravingeditor: '+er.description+' '+error);}};function moveengravingeditor(xoffset,yoffset){return;try{var engrave=document.getElementById('divEngraving');if(engrave!=null){var editor2=GetRadEditor('RadEditor2');if(editor2!=null){if(ie){editor2.SetSize(eval(engrave.offsetWidth-17),eval(engrave.offsetHeight-40));}if(ns6){var HtmlArea=document.getElementById('RadEWrapperRadEditor2');HtmlArea.style.width=eval(engrave.offsetWidth-12)+'px';HtmlArea.style.height=eval(engrave.offsetHeight-51)+'px';var HtmlArea2=document.getElementById('RadEContentIframeRadEditor2');HtmlArea2.style.height=eval(engrave.offsetHeight-51-20)+'px';}}var internal_xoffset=0;var internal_yoffset=0;if(ns6){internal_xoffset=8;internal_yoffset= -3;}else{internal_xoffset=10;internal_yoffset=0;}var diveditor2=document.getElementById('divSecondaryEditor');if(diveditor2!=null){diveditor2.style.left=eval(findPosX(engrave)+xoffset+internal_xoffset)+'px';diveditor2.style.top=eval(findPosY(engrave)+33+yoffset+internal_yoffset)+'px';diveditor2.style.visibility='visible';}}else{var editor2=GetRadEditor('RadEditor2');if(editor2!=null){editor2.SetVisible(false);}var diveditor2=document.getElementById('divSecondaryEditor');diveditor2.style.visibility='hidden';}}catch(er){alert('moveengravingeditor: '+er.description+' '+error);}};function findPosX(obj){try{var curleft=0;if(obj.offsetParent){while(obj.offsetParent){curleft+=obj.offsetLeft;obj=obj.offsetParent;}}else if(obj.x)curleft+=obj.x;return curleft;}catch(er){alert('findPosX: '+er.description);}};function findPosY(obj){try{var curtop=0;if(obj.offsetParent){while(obj.offsetParent){curtop+=obj.offsetTop;obj=obj.offsetParent;}}else if(obj.y)curtop+=obj.y;return curtop;}catch(er){alert('findPosY: '+er.description);}};function partrolecallback(partroleguid,buildtypeguid){try{buildpartbusy();var callback="BuildPart.SetPartRole('"+partroleguid+"','"+buildtypeguid+"',getEngravingHtml('RadEditor1'),getEngravingText('RadEditor1'),getEngravingHtml('RadEditor2'),getEngravingText('RadEditor2'))";overlib('',EXCLUSIVEOVERRIDE);nd();setTimeout(callback,10);}catch(er){alert('partrolecallback: '+er.description);}};function overlibPartPricing(anchor,sellprice,mycost,markup,pricecode,discount,quantity,description,weight){try{var xoffset=0;var yoffset=0;if(ie){xoffset= -249;yoffset= -41;}if(ns6){xoffset= -249+7;yoffset= -41-1;}var overlibcommand="overlib('Part Details<br><br><br>Sell Price : $"+sellprice+"<br>My Cost : $"+mycost+"<br>Cost Markup : $"+markup+"<br>Price Code : "+pricecode+"<br><br>Discount Group : "+discount+"<br>Quantity : "+quantity+"<br>"+description+"<br><br>(To change this part, just click it)',WRAP,BUBBLE,BUBBLETYPE,'partdetails',ANCHOR,'"+anchor+"',ANCHORALIGN,'ul','ul',ANCHORX,"+xoffset+",ANCHORY,"+yoffset+",DELAY,300,TEXTCOLOR,'#000000');";eval(overlibcommand);}catch(er){alert('overlibPart: '+er.description);}};function overlibPart(mapimage,part,number,type,style,gender,height,width,weight,image,imageheight,imagewidth,textcolor,backgroundcolor){try{document.getElementById('ancPartMap').style.cursor='pointer';var point=mapimage.coords.split(',');var xoffset=0;var yoffset=0;if(ie){xoffset=eval(point[0])-20;yoffset=eval(point[1])+eval((point[3]-point[1])/2)-1;}if(ns6){xoffset=eval(point[0])-249+7;yoffset=eval(point[1])+eval((point[3]-point[1])/2)-41-1;}var isnumber=false;var character;var validnumbers="0123456789";for(i=0;i<number.length&&isnumber==false;i++){character=number.charAt(i);if(validnumbers.indexOf(character)> -1){isnumber=true;}}if(isnumber==false){number='';}else{number='#'+number;}if(height!=0){if(height!=24){if(width!=0){var overlibcommand="overlib('<div><table style=width:100%;background-color:#ffffff cellpadding=4><tr><td valign=middle align=center style=background-image:url(images/loading.gif);background-repeat:no-repeat;background-position:50% 50%;><img style=background-color:#ffffff; height="+imageheight+"px width="+imagewidth+"px valign=top src="+image+" /></td><td valign=top><table style=font:11px tahoma,verdana,arial;color:#000000;><tr><td>PART: <strong>"+part+"</strong></td></tr><tr><td>NUMBER: "+number+"</td></tr><tr><td>TYPE: "+type+"</td></tr><tr><td>STYLE: "+style+"</td></tr><tr><td>GENDER: "+gender+"</td></tr><tr><td>HEIGHT: "+height+" inches</td></tr><tr><td>WIDTH: "+width+" inches</td></tr><tr><td>WEIGHT: "+weight+" pounds</td></tr></table></td></tr></table>',WRAP,ANCHOR,'ancPartMap',ANCHORALIGN,'ul','ur',ANCHORX,"+xoffset+",ANCHORY,"+yoffset+",DELAY,300,TEXTCOLOR,'#000000',CAPTION,' CLICK your mouse to show item choices! ',BGCOLOR,'"+backgroundcolor+"',FGCOLOR,'"+backgroundcolor+"',CAPCOLOR,'"+textcolor+"');";}else{var overlibcommand="overlib('<div><table style=width:100%;background-color:#ffffff cellpadding=4><tr><td valign=middle align=center style=background-image:url(images/loading.gif);background-repeat:no-repeat;background-position:50% 50%;><img style=background-color:#ffffff; height="+imageheight+"px width="+imagewidth+"px valign=top src="+image+" /></td><td valign=top><table style=font:11px tahoma,verdana,arial;color:#000000;><tr><td>PART: <strong>"+part+"</strong></td></tr><tr><td>NUMBER: "+number+"</td></tr><tr><td>TYPE: "+type+"</td></tr><tr><td>STYLE: "+style+"</td></tr><tr><td>GENDER: "+gender+"</td></tr><tr><td>HEIGHT: "+height+" inches</td></tr><tr><td>WEIGHT: "+weight+" pounds</td></tr></table></td></tr></table>',WRAP,ANCHOR,'ancPartMap',ANCHORALIGN,'ul','ur',ANCHORX,"+xoffset+",ANCHORY,"+yoffset+",DELAY,300,TEXTCOLOR,'#000000',CAPTION,' CLICK your mouse to show item choices! ',BGCOLOR,'"+backgroundcolor+"',FGCOLOR,'"+backgroundcolor+"',CAPCOLOR,'"+textcolor+"');";}}else{var overlibcommand="overlib('<div><table style=width:100%;background-color:#ffffff cellpadding=4><tr><td valign=middle align=center style=background-image:url(images/loading.gif);background-repeat:no-repeat;background-position:50% 50%;><img style=background-color:#ffffff; height="+imageheight+"px width="+imagewidth+"px valign=top src="+image+" /></td><td valign=top><table style=font:11px tahoma,verdana,arial;color:#000000;><tr><td>PART: <strong>"+part+"</strong></td></tr><tr><td>NUMBER: "+number+"</td></tr><tr><td>TYPE: "+type+"</td></tr><tr><td>STYLE: "+style+"</td></tr><tr><td>GENDER: "+gender+"</td></tr></table></td></tr></table>',WRAP,ANCHOR,'ancPartMap',ANCHORALIGN,'ul','ur',ANCHORX,"+xoffset+",ANCHORY,"+yoffset+",DELAY,300,TEXTCOLOR,'#000000',CAPTION,' CLICK your mouse to show item choices! ',BGCOLOR,'"+backgroundcolor+"',FGCOLOR,'"+backgroundcolor+"',CAPCOLOR,'"+textcolor+"');";}}else{if(width!=0){var overlibcommand="overlib('<div><table style=width:100%;background-color:#ffffff cellpadding=4><tr><td valign=middle align=center style=background-image:url(images/loading.gif);background-repeat:no-repeat;background-position:50% 50%;><img style=background-color:#ffffff; height="+imageheight+"px width="+imagewidth+"px valign=top src="+image+" /></td><td valign=top><table style=font:11px tahoma,verdana,arial;color:#000000;><tr><td>PART: <strong>"+part+"</strong></td></tr><tr><td>NUMBER: "+number+"</td></tr><tr><td>TYPE: "+type+"</td></tr><tr><td>STYLE: "+style+"</td></tr><tr><td>GENDER: "+gender+"</td></tr><tr><td>WIDTH: "+width+" inches</td></tr><tr><td>WEIGHT: "+weight+" pounds</td></tr></table></td></tr></table>',WRAP,ANCHOR,'ancPartMap',ANCHORALIGN,'ul','ur',ANCHORX,"+xoffset+",ANCHORY,"+yoffset+",DELAY,300,TEXTCOLOR,'#000000',CAPTION,' CLICK your mouse to show item choices! ',BGCOLOR,'"+backgroundcolor+"',FGCOLOR,'"+backgroundcolor+"',CAPCOLOR,'"+textcolor+"');";}else{var overlibcommand="overlib('<div><table style=width:100%;background-color:#ffffff cellpadding=4><tr><td valign=middle align=center style=background-image:url(images/loading.gif);background-repeat:no-repeat;background-position:50% 50%;><img style=background-color:#ffffff; height="+imageheight+"px width="+imagewidth+"px valign=top src="+image+" /></td><td valign=top><table style=font:11px tahoma,verdana,arial;color:#000000;><tr><td>PART: <strong>"+part+"</strong></td></tr><tr><td>NUMBER: "+number+"</td></tr><tr><td>TYPE: "+type+"</td></tr><tr><td>STYLE: "+style+"</td></tr><tr><td>GENDER: "+gender+"</td></tr></table></td></tr></table>',WRAP,ANCHOR,'ancPartMap',ANCHORALIGN,'ul','ur',ANCHORX,"+xoffset+",ANCHORY,"+yoffset+",DELAY,300,TEXTCOLOR,'#000000',CAPTION,' CLICK your mouse to show item choices! ',BGCOLOR,'"+backgroundcolor+"',FGCOLOR,'"+backgroundcolor+"',CAPCOLOR,'"+textcolor+"');";}}eval(overlibcommand);}catch(er){alert('overlibPart: '+er.description);}};function handleErrors(errorMessage,url,line){msg="There was an error on this page.\n\n";msg+="An internal programming error may keep\n";msg+="this page from displaying properly.\n";msg+="Click OK to continue.\n\n";msg+="Error message: "+errorMessage+"\n";msg+="URL: "+url+"\n";msg+="Line #: "+line;alert(msg);return true};function cellborderon(tablename,cellvalue,cellid){try{var ac=document.getElementById(tablename).getElementsByTagName('td');if(ac!=null){for(var j=0;j<ac.length;j++){if(ac[j].value==cellvalue){ac[j].style.border='1px solid #ffffff';}}}var borderon=document.getElementById(cellid);if(borderon!=null){borderon.style.border='1px solid red';}}catch(er){alert('cellborderon: '+er.description);}};function scrollselect(scrollwindow,scrollwindowid){try{var ar=document.getElementById(scrollwindowid+'Table').getElementsByTagName('tr');for(var i=0;i<ar.length;i++){var ac=ar[i].getElementsByTagName('td');for(var j=0;j<ac.length;j++){if(ac[j].value==scrollwindowid){ac[j].style.border='2px solid #E3E3E3';}}}scrollwindow.style.border='2px solid #E3E3E3';}catch(er){alert('scrollselect: '+er.description);}};function droplistselect(droplistrowid,droplistid){try{var ar=document.getElementById(droplistid).getElementsByTagName('tr');for(var i=0;i<ar.length;i++){var ac=ar[i].getElementsByTagName('table');for(var j=0;j<ac.length;j++){if(ac[j].value==droplistid){ac[j].style.border='2px solid #E3E3E3';}}}var sel=document.getElementById(droplistrowid);sel.style.border='2px solid #E3E3E3';}catch(er){alert('scrollselect: '+er.description);}};function scrolltoselect(scrollwindowid){try{var ar=document.getElementById(scrollwindowid+'Table').getElementsByTagName('tr');for(var i=0;i<ar.length;i++){var ac=ar[i].getElementsByTagName('input');for(var j=0;j<ac.length;j++){if(ac[j].type=='hidden'){eval(ac[j].value);break;}}}}catch(er){alert('scrolltoselect: '+er.description);}};function scrollcount(scrollwindowid,viewerwidth,direction){try{var xPos=dw_scrollObjs['Viewer'+scrollwindowid].x;var xMax=dw_scrollObjs['Viewer'+scrollwindowid].maxX;var xWd=dw_scrollObjs['Viewer'+scrollwindowid].wd;var maxindex=Math.round(xMax/(viewerwidth))+1;if(document.getElementById(scrollwindowid+'Empty')!=null){var scrollPos=document.getElementById('scrollbartext_'+scrollwindowid);scrollPos.value='0 of 0';return;}var scrollindex=1;if(direction=='right'){if(-xPos+viewerwidth<xMax){scrollindex=Math.round((-xPos+viewerwidth)/viewerwidth)+1;}else{scrollindex=maxindex;}}else if(direction=='left'){if(-xPos>0){scrollindex=Math.round(-xPos/viewerwidth);}else{scrollindex=1;}}else{if(-xPos>0){scrollindex=Math.round((-xPos)/viewerwidth)+1;}else{scrollindex=1;}}var scrollPos=document.getElementById('scrollbartext_'+scrollwindowid);if(scrollPos!=null){scrollPos.value=scrollindex+' of '+maxindex;}}catch(er){alert('scrollcount: '+er.description);}};function scrollcountlimit(scrollwindowid,viewerwidth,direction){try{if(document.getElementById(scrollwindowid+'Empty')!=null){return;}var xPos=dw_scrollObjs['Viewer'+scrollwindowid].x;var xMax=dw_scrollObjs['Viewer'+scrollwindowid].maxX;var maxindex=Math.round(xMax/(viewerwidth))+1;if(direction=='right'){var scrollindex=maxindex;}else{var scrollindex=1;}var scrollPos=document.getElementById('scrollbartext_'+scrollwindowid);if(scrollPos!=null){scrollPos.value=scrollindex+' of '+maxindex;}}catch(er){alert('scrollcountlimit: '+er.description);}};function scrollstyle(scroll,backgroundcolor,bordercolor){try{scroll.style.backgroundColor=backgroundcolor;scroll.style.borderColor=bordercolor;}catch(er){alert('scrollstyle: '+er.description);}};function dropdowndisplay(dropdownid,additionalxoffset){try{if(document.getElementById('div'+dropdownid+'DropInner').name!='div'+dropdownid+'DropInnerVisible'){overlib(EXCLUSIVEOVERRIDE);nd();var xoffset=0;if(ns6){xoffset=1+additionalxoffset;}else{xoffset=2+additionalxoffset;}overlib(EXCLUSIVE,DELAY,0,USECONTENTS,'div'+dropdownid+'Drop',STICKY,ANCHOR,'drop'+dropdownid,ANCHORALIGN,'LL','UL',ANCHORX,xoffset,ANCHORY,-2);document.getElementById('div'+dropdownid+'DropInner').scrollTop=document.getElementById('row'+dropdownid+'DropSelected').offsetTop;document.getElementById('div'+dropdownid+'DropInner').name='div'+dropdownid+'DropInnerVisible';}else{document.getElementById('div'+dropdownid+'DropInner').name='div'+dropdownid+'DropInnerHidden';overlib(EXCLUSIVEOVERRIDE);nd();}}catch(er){alert('dropdowndisplay: '+er.description);}};function dropdownrow(dropdownid,table,row,selbackcolor,seltextcolor,backcolor,textcolor){try{var ar=document.getElementById(table).getElementsByTagName('tr');for(var i=0;i<ar.length;i++){ar[i].style.backgroundColor=backcolor;ar[i].style.color=textcolor;}row.style.backgroundColor=selbackcolor;row.style.color=seltextcolor;}catch(er){alert('dropdownrow: '+er.description);}};var messageDiv=document.getElementById("CommandMessage");function OnClientLoad(editor){setTimeout('movemainengravingeditor(0,0)',1000);};function OnClientCommandExecuting(editor,commandName,oTool){var selValue=(oTool&&oTool.GetSelectedValue)?oTool.GetSelectedValue():"none";};function OnClientCommandExecuted(editor,commandName,oTool){var selValue=(oTool&&oTool.GetSelectedValue)?oTool.GetSelectedValue():"none";};function OnClientModeChange(editor){};function OnClientSubmit(editor){var toCancel=confirm("Are you sure, you want to submit?");if(!toCancel)return false;};function OnClientCancel(editor){var toCancel=confirm("Are you sure, you want to cancel your changes?");if(!toCancel)return false;};function SetButtons(){var editor1=GetRadEditor('RadEditor1');if(editor1!=null){editor1.Fire("Bold");editor1.Fire("Underline");}};function movehelper(xposition,yposition){try{var helper=document.getElementById('divHelperMain');if(helper!=null){helper.style.left=xposition+'px';helper.style.top=yposition+'px';helper.style.visibility='visible';}}catch(er){alert('movehelper: '+er.description);}};function movehelperoffset(elementname,xoffset,yoffset){try{var element=document.getElementById(elementname);if(element!=null){var helper=document.getElementById('divHelperMain');helper.style.left=eval(findPosX(element)+xoffset)+'px';helper.style.top=eval(findPosY(element)+yoffset)+'px';helper.style.visibility='visible';}}catch(er){alert('movehelperoffset: '+er.description);}};function hideDropList(e){var srcElement;if(e&&e.target){srcElement=e.target;if(srcElement.nodeType!=1){srcElement=srcElement.parentNode;}}else if(window.event){srcElement=window.event.srcElement;}var elementid=srcElement.id;if(elementid.length>=4){if(elementid.substring(0,4)!='drop'&&elementid.substring(0,4)!='eanc'&&elementid.substring(0,4)!='ancC'&&elementid.substring(0,4)!='ianc'){overlib(EXCLUSIVEOVERRIDE);nd();}}else{overlib(EXCLUSIVEOVERRIDE);nd();}}