                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

if(!window.__td){window.__MT=100;window.__ti=0;window.__td=[];window.__td.length=__MT;window.__noTrace=false;}
vp.mpso=function mpso(){if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}};vp.mpso.FORM_NAME='frmPage';function setQuantity(qty)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
setQuantitySpecified('hdnSelectedQuantity',qty);}
function setQuantitySpecified(trackerId,qty)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
vp.ui.get(trackerId).value=qty;if(vp.ui.get('selectQuantityBoxDisclaimer'))
{vp.ui.get('selectQuantityBoxDisclaimer').style.display="none";}
if(vp&&vp.eoe&&vp.eoe.topEventManager)
{vp.eoe.updateIncomingProductQuantity(qty);}
if(vp.ui.get('bundle-price-grid'))
{var elements=document.getElementsByTagName("input");for(var i=0;i<elements.length;i++)
{if(elements[i].type=="radio"&&(elements[i].name=="radioQuantity"||elements[i].name=="radiobundleQuantity")&&elements[i].value==qty)
{elements[i].checked="checked";}}}}
function setSize(size)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
vp.ui.get('hdnSelectedSize').value=size;}
function dropDownQuantityChangeSpecifiedGeneric(radioName,hdnQtyId,quantitySelectorBoxId,radioButtonCount)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var objQtyDropDown=vp.ui.get(quantitySelectorBoxId);if(objQtyDropDown.selectedIndex===0)
{objQtyDropDown.selectedIndex=1;}
var intSelectedQty=objQtyDropDown.options[objQtyDropDown.selectedIndex].value;for(i=0;i<radioButtonCount;i++)
{if(vp.ui.get(radioName+i))
{vp.ui.get(radioName+i).checked=false;}}
if(vp.ui.get(radioName+radioButtonCount))
{vp.ui.get(radioName+radioButtonCount).checked=true;}
setQuantitySpecified(hdnQtyId,intSelectedQty);if(vp.ui.get('selectQuantityBoxDisclaimer'))
{vp.ui.get('selectQuantityBoxDisclaimer').style.display="inline";}
if(intSelectedQty==="vapor"){vp.mpso.vapor.showCalculateDialog();}}
function dropDownQuantityChangeSpecified(radioName,radioButtonCount)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
dropDownQuantityChangeSpecifiedGeneric(radioName,'hdnSelectedQuantity','selectQuantityBox',radioButtonCount);}
function dropDownQuantityChange(radioButtonCount)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
dropDownQuantityChangeSpecified('radioQuantity',radioButtonCount);}
function dropDownMultiProductQuantityChange(radioButtonCount,selectQuantityBox)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var objQtyDropDown=vp.ui.get(selectQuantityBox);if(objQtyDropDown.selectedIndex===0)
{objQtyDropDown.selectedIndex=1;}
var intSelectedQty=objQtyDropDown.options[objQtyDropDown.selectedIndex].value;for(i=0;i<radioButtonCount;i++)
{vp.ui.get('radioQuantity'+i).checked=false;}
if(vp.ui.get('radioQuantity'+radioButtonCount))
{vp.ui.get('radioQuantity'+radioButtonCount).checked=true;}
if(vp.ui.get('ckbox308')&&vp.ui.get('ckbox308').checked===false)
{intSelectedQty=0;}
setQuantity(intSelectedQty);if(vp.ui.get('selectQuantityBoxDisclaimer'))
{vp.ui.get('selectQuantityBoxDisclaimer').style.display="inline";}}
function switchStampImages(radioId,stampHousingImage,livePreviewURL)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(vp.ui.get(radioId).checked)
{vp.ui.get('imgStampHousing').src=stampHousingImage;vp.ui.get('imgStampPreview').src=livePreviewURL;}}
function setDestinationTab(tabType)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
vp.ui.get('hdnRequestedTabType').value=tabType;}
function setPostbackIsTabClick()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
vp.ui.get('hdnIsTabClick').value=1;}
function setIsContinueShopping()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
vp.ui.get('hdnIsContinueShopping').value=1;}
function moveToNextTab()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var nextTab=vp.ui.get('hdnNextTabType').value;setDestinationTabTypeAndSubmitForm(nextTab,false);}
function setDestinationTabTypeAndSubmitForm(destinationTabType,isTabClick,isContinueShopping)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(isContinueShopping===null)
{isContinueShopping=false;}
if(vp.mpso.saveDocumentBeforeAdvancing)
{var fnCallback=function pv_fnCallback()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
setDestinationTabTypeAndSubmitForm(destinationTabType,isTabClick);};vp.mpso.saveDocumentBeforeAdvancing=false;vp.studio.ui.save(fnCallback);return;}
setDestinationTab(destinationTabType);if(isTabClick)
{setPostbackIsTabClick();}
if(isContinueShopping)
{setIsContinueShopping();}
if(parseInt(vp.ui.get('hdnSubmitted').value)===0)
{disableForm();checkUrlLengthAndSubmitForm();}}
function checkUrlLengthAndSubmitForm()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
vp.forms.checkUrlLengthAndSubmitForm(vp.mpso.FORM_NAME,vp.mpso.logFormUrlTooLong);}
vp.mpso.logFormUrlTooLong=function mpso_logFormUrlTooLong()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
vp.spot.track('MPSOMaxUrlLengthExceeded:Posting');};function registerIfNeededAndSubmitForm(destinationTabType,isTabClick)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(parseInt(vp.ui.get('hdnSubmitted').value)===0)
{var vpOptIn=document[vp.mpso.FORM_NAME].VistaPrintOptIn;if(vpOptIn&&vpOptIn[0].checked)
{window.open('/vp/guest_signup.aspx?mpso=true&opt=true&dest='+destinationTabType+'&isTabClick='+isTabClick,'register','height=550,width=520,resizable=1,scrollbars=1');return false;}
setDestinationTabTypeAndSubmitForm(destinationTabType,isTabClick);}
return null;}
function saveForLater(destinationTabType,isGuest)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(vp.mpso.saveDocumentBeforeAdvancing)
{var fnCallback=function pv_fnCallback()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
saveForLater(destinationTabType,isGuest);};vp.mpso.saveDocumentBeforeAdvancing=false;vp.studio.ui.save(fnCallback);return null;}
setDestinationTab(destinationTabType);if(parseInt(vp.ui.get('hdnSubmitted').value)===0)
{disableForm();vp.ui.get('hdnSaveForLater').value=1;if(isGuest)
{window.open('/vp/guest_signup.aspx?mpso=true&isTabClick=false&dest='+destinationTabType,'register','height=550,width=520,resizable=1,scrollbars=1');enableForm();return false;}
else
{checkUrlLengthAndSubmitForm();}}
return null;}
function disableForm()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
vp.ui.get('hdnSubmitted').value=1;if(document.getElementById('aNextButton'))
{vp.ui.expandAndCollapse('imgNextButtonDisabled','aNextButton');}
if(document.getElementById('aNextButtonBottom'))
{vp.ui.expandAndCollapse('imgNextButtonDisabledBottom','aNextButtonBottom');}
if(document.getElementById('aSaveForLaterButton'))
{vp.ui.expandAndCollapse('imgSaveForLaterButtonDisabled','aSaveForLaterButton');}
if(document.getElementById('aSeeMoreMatchingButton'))
{vp.ui.expandAndCollapse('imgSeeMoreMatchingButtonDisabled','aSeeMoreMatchingButton');}
if(document.getElementById('aContinueShoppingButton'))
{vp.ui.expandAndCollapse('imgContinueShoppingButtonDisabled','aContinueShoppingButton');}}
function enableForm()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(vp.ui.get('hdnSubmitted'))
{vp.ui.get('hdnSubmitted').value=0;}
if(document.getElementById('aNextButton')&&document.getElementById('imgNextButtonDisabled'))
{vp.ui.expandAndCollapse('aNextButton','imgNextButtonDisabled');}
if(document.getElementById('aNextButtonBottom')&&document.getElementById('imgNextButtonDisabledBottom'))
{vp.ui.expandAndCollapse('aNextButtonBottom','imgNextButtonDisabledBottom');}
if(document.getElementById('aSaveForLaterButton')&&document.getElementById('imgSaveForLaterButtonDisabled'))
{vp.ui.expandAndCollapse('aSaveForLaterButton','imgSaveForLaterButtonDisabled');}
if(document.getElementById('aContinueShoppingButton')&&document.getElementById('imgContinueShoppingButtonDisabled'))
{vp.ui.expandAndCollapse('aContinueShoppingButton','imgContinueShoppingButtonDisabled');}}
vp.events.addToOnUnload(enableForm);vp.events.addToOnLoad(enableForm);function updatePricing()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
vp.ui.get('hdnUpdatedPricing').value=1;setDestinationTabTypeAndSubmitForm('Shipping');}
function processSelectedVaporTests()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var offers=vp.ui.get('xsOffers');var count=0;if(offers)
{offers=offers.value.split(';');for(i=0;i<offers.length;i++)
{var vaporField=vp.ui.get('vtocsid_'+offers[i]);if(vaporField)
{var vaporId=vaporField.value;vaporField=vp.ui.get('xsVapor_'+vaporId);if(vaporField&&vaporField.checked)
{vaporField.checked=false;vp.ui.get('vtSelected_'+vaporId).value='True';count++;}}}}
return count;}
function accessoriesTabValidate()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(processSelectedVaporTests()!==0)
{setDestinationTabTypeAndSubmitForm('Accessories');return 0;}
else
{return 1;}}
function businessCardHolderTabValidate()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(processSelectedVaporTests()!==0)
{setDestinationTabTypeAndSubmitForm('VaporTestOfferTab');return 0;}
else
{return 1;}}
function tShirtStockTabValidate()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(document.getElementById("tsheavyweight")&&document.getElementById("tsheavyweight").checked)
{recordVapor("213");ShowOutOfStockMessage();return 0;}
else
{return 1;}}
function lawnSignStandTabValidate()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
dropDownMultiProductQuantityChange(0,'selectQuantityBox308');if(document.getElementById("ckbox305")&&document.getElementById("ckbox305").checked||document.getElementById("ckbox306")&&document.getElementById("ckbox306").checked||document.getElementById("ckbox307")&&document.getElementById("ckbox307").checked)
{if(document.getElementById("ckbox305").checked)
{recordVapor("305");}
else if(document.getElementById("ckbox306").checked)
{recordVapor("306");}
else if(document.getElementById("ckbox307").checked)
{recordVapor("307");}
ShowOutOfStockMessage();document.getElementById("psoffer305").style.display='none';document.getElementById("psoffer306").style.display='none';document.getElementById("psoffer307").style.display='none';document.getElementById("unav305").style.display='inline';document.getElementById("unav306").style.display='inline';document.getElementById("unav307").style.display='inline';}}
function hideTshirtVaporOffer()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
vp.ui.get("tslightweight").checked=true;vp.ui.get('tsheavyweight').disabled=true;vp.ui.get('tsheavyweight').style.display='none';vp.ui.get('tsIndTextArea').style.display='none';}
function matchingTabValidate()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var checkbox=null;for(var id=1;(checkbox=vp.ui.get('xs_'+id));id++)
{var docSignatureElement=vp.ui.get('xsCreatedDocId_'+id);var designManager=getDesignManager(id);if(designManager)
{var signatures=new Array();for(var designId=0;designId<designManager.designs.length;designId++)
{if(designManager.isDesignSelected(designId))
{signatures.push(designManager.getDocIdForDesign(designId));}}
docSignatureElement.value=signatures.join(';');checkbox.checked=signatures.length>0;}
if(!checkbox.checked&&docSignatureElement)
{docSignatureElement.value='';}}
if(processSelectedVaporTests()!==0)
{setDestinationTabTypeAndSubmitForm('Matching');return 0;}
else
{return 1;}}
vp.mpso.showCalendarPreviewPopup=function mpso_showCalendarPreviewPopup(oLink,sComboHash,sUrl)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var iWidth=138;var iHeight=104;var sImgSrc="/vp/ns/livepreview.aspx?Log=0&combo="+sComboHash+"&width="+iWidth+"&height="+iHeight+"&imagegrid=1&nossr=1";var iLeft=vp.ui.getLeft(oLink)+vp.ui.getWidth(oLink);var iTop=vp.ui.getTop(oLink);vp.uilib.showImagePopup(sImgSrc,iLeft,iTop,iWidth,iHeight,sUrl);};vp.mpso.hideCustomEnvelopesMiniEditor=function mpso_hideCustomEnvelopesMiniEditor()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
try
{document.getElementById('divEnvEditor').style.display="none";document.getElementById('divCustomEnvelopeSeeMoreDesigns2968').style.display="none";var nextButtonElem=document.getElementById('aNextButtonBottom');nextButtonElem.style.position='';if(nextButtonElem.currentStyle)
{nextButtonElem.style.position=nextButtonElem.currentStyle.position;}
try
{document.getElementById('frontSideBackSideToggle').style.display="none";document.getElementById('proofreadDisclaimer').style.display="none";document.getElementById('viewLargerLink').style.display="none";document.getElementById('combinedTintContainer').style.display="none";}
catch(err){}}
catch(err)
{}};vp.mpso.showCustomEnvelopesMiniEditor=function mpso_showCustomEnvelopesMiniEditor()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
try
{document.getElementById('divEnvEditor').style.display="block";document.getElementById('divCustomEnvelopeSeeMoreDesigns2968').style.display="block";var nextButtonElem=document.getElementById('aNextButtonBottom');nextButtonElem.style.position='';if(nextButtonElem.currentStyle)
{nextButtonElem.style.position=nextButtonElem.currentStyle.position;}
try
{document.getElementById('frontSideBackSideToggle').style.display="block";document.getElementById('proofreadDisclaimer').style.display="block";document.getElementById('viewLargerLink').style.display="block";document.getElementById('combinedTintContainer').style.display="block";}
catch(err){}}
catch(err)
{}};var previewUrl="";vp.mpso.updateEnvelopeInsidePreview=function mpso_updateEnvelopeInsidePreview(previewImageId)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var previewImage=document.getElementById(previewImageId);if(previewUrl.length===0)
{previewUrl=previewImage.src;}
var text=document.forms[0].CustomText.value;text=text.replace(/^\s+|\s+$/g,'');if(!text)
{previewImage.src="/vp/images/nns/order_pipeline/env_inside_blank.jpg";}
else
{var imageUrl=new vp.web.URL(previewUrl);imageUrl.setItem('text',text);previewImage.src=imageUrl.toString();}};vp.mpso.securityTintKeyDown=function mpso_securityTintKeyDown(e,previewImageId)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(e.keyCode)
{keyCode=e.keyCode;}
else
{keyCode=e.which;}
if(keyCode==13)
{vp.mpso.updateEnvelopeInsidePreview(previewImageId);return false;}
else
{return true;}};vp.mpso.switchArrivalDateSelection=function mpso_switchArrivalDateSelection(postageOption,printSpeedProductId)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
vp.ui.get('hdnPostageOption').value=postageOption;vp.ui.get('hdnPrintingOption').value=printSpeedProductId;checkUrlLengthAndSubmitForm();};function toggleInfo(toggleStyle)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(toggleStyle=='hide')
{document.getElementById('visibleContent').style.display='none';document.getElementById('hideContent').style.display='block';}
else
{document.getElementById('visibleContent').style.display='block';document.getElementById('hideContent').style.display='none';}
return true;};vp.mpso.retrieveBacksideDocument=function mpso_retrieveBacksideDocument(backsideOptionKeyId,docId,sHtmlNamespace,page)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var oHiddenDocIdInput=vp.ui.get("backsideDocId"+sHtmlNamespace);var documentId=-1;if(oHiddenDocIdInput.value&&oHiddenDocIdInput.value!="0")
{documentId=oHiddenDocIdInput.value;}
else
{var rndNumber;rndNumber=Math.round(Math.random()*10000);var url;url='/vp/ns/get_doc_from_signature.aspx?random='+rndNumber+'&fast_path_user=true&create_backside=true&bs_key_id='+backsideOptionKeyId+'&frontside_doc_id='+docId;if(page)
{url+="&page="+page;}
documentId=vp.http.get(url);oHiddenDocIdInput.value=documentId;}
return documentId;};vp.mpso.redirectToProductPage=function mpso_redirectToProductPage()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
vp.ui.get("hdnUseNewDocument").value="1";setDestinationTabTypeAndSubmitForm('Quantity',false);};vp.mpso.populateHiddenValuesForStudio=function mpso_populateHiddenValuesForStudio()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var inputs=document.getElementsByTagName('INPUT');var qsElements=new Array();var qsString="";for(var i=0;i<inputs.length;i++)
{var inputElement=inputs[i];if(inputElement.type=="hidden")
{qsElements[inputElement.name]=inputElement.value;qsString=qsString+"&"+inputElement.name+"="+inputElement.value;}}
return qsString;};vp.mpso.selectQuantityAndPaperStock=function mpso_selectQuantityAndPaperStock(qty,paperStockPfId)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
vp.ui.get('hdnSelectedQuantity').value=qty;vp.ui.get('hdnSelectedPaperStock').value=paperStockPfId;};function paperStockTabValidate()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(vp.ui.get('rvps')&&vp.ui.get('rvps').checked&&vp.ui.get('lsvr').value!=vp.ui.get('rvps').value)
{var vaporSelect=vp.ui.get('rvps').value;vp.ui.get('lsvr').value=vaporSelect;vp.ui.get('svt').value=vp.ui.get(vaporSelect+'_vtid').value;vp.ui.get('svo').value=vp.ui.get(vaporSelect+'_offerid').value;setDestinationTabTypeAndSubmitForm('PaperStock');}
return 1;}
function productOfferVaporTestTabValidate()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var vaporTestOfferCheckboxName='productOfferCheckbox';if(vp.ui.get(vaporTestOfferCheckboxName)&&vp.ui.get(vaporTestOfferCheckboxName).checked)
{vp.ui.get('vt_accepted').value=1;setDestinationTabTypeAndSubmitForm('VaporTestOfferTab');return 0;}
else
{return 1;}}
function clearChecked(frmElementName)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
for(i=0;i<document[vp.mpso.FORM_NAME].elements.length;i++)
{if(document[vp.mpso.FORM_NAME].elements[i].name==frmElementName)
{document[vp.mpso.FORM_NAME].elements[i].checked=false;}}}
vp.mpso.saveDocumentBeforeAdvancing=false;function showFoilMsg()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(document.getElementById("radioQuantity0").checked||document.getElementById("radioQuantity1").checked)
{if(document.getElementById("noboxmsg"))
{document.getElementById("noboxmsg").style.display="block";}}
else
{if(document.getElementById("noboxmsg"))
{document.getElementById("noboxmsg").style.display="none";}}}
function RadioSelect(val){if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
try{for(i=0;i<document[vp.mpso.FORM_NAME].BackSideDocID.length;i++)
{if(document[vp.mpso.FORM_NAME].BackSideDocID[i].value==val)
{document[vp.mpso.FORM_NAME].BackSideDocID[i].checked=true;}}}catch(error){}}
function RadioSelectTshirtBackside(val){if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
try{document.getElementById('ss'+DocIDShowing).style.display='none';DocIDShowing=val;document.getElementById('ss'+DocIDShowing).style.display='';}catch(error){}}
function EditDocPopUp(docid,imgid)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var currentPreviewUri=new vp.web.URL(vp.ui.get(imgid).src);var tsv=currentPreviewUri.getItem('tsv');var color=currentPreviewUri.getItem('color');if(!color)
{color='';}
if(typeof(tsv)=='undefined')
{tsv='1';}
var l_lngTop=window.screenTop+20;var l_lngLeft=window.screenLeft+30;var l_wndDrillDown=window.open("/vp/ns/cart/edit_matching_popup.aspx?doc_id="+docid+"&imgid="+imgid+"&tsv="+tsv+"&color="+color,"wndEditRal","top="+l_lngTop+", left="+l_lngLeft+", height=400, width=360, menubar=no, status=no, resizable=yes, scrollbars=yes");l_wndDrillDown.focus();}
function PopulateSizingDropDowns()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var s=document.getElementsByTagName("select");for(x=0;x<s.length;x++)
{if(s[x].id.substring(0,6)=="ddSize")
{AddLargerShirtSizes(s[x].id);s[x].onchange=null;var f=function pv_f(oElt){if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
return function(){HandleShirtSizeSelection(oElt.id);};};s[x].onchange=f(s[x]);}}}
function AddLargerShirtSizes(dropDownId)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var ddl=vp.ui.get(dropDownId);var xxxl=new Option(ThreeXLName,"177",false,false);var xxxxl=new Option(FourXLName,"178",false,false);if(ddl!==null)
{ddl.options[ddl.options.length]=xxxl;ddl.options[ddl.options.length]=xxxxl;}}
function RemoveOutOfStockProducts(dropDownId)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var s=document.getElementsByTagName("select");for(x=0;x<s.length;x++)
{if(s[x].id.substring(0,6)=="ddSize")
{s[x].options[s[x].options.length-1]=null;s[x].options[s[x].options.length-1]=null;}}}
function HandleShirtSizeSelection(dropDownId)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var ddl=vp.ui.get(dropDownId);if(ddl!==null)
{var selectedSize=ddl.value;if(selectedSize=="177")
{ShowOutOfStockMessage();document[vp.mpso.FORM_NAME].rtvt.value=1;RemoveOutOfStockProducts(dropDownId);}
else if(selectedSize=="178")
{ShowOutOfStockMessage();document[vp.mpso.FORM_NAME].rtvt.value=2;RemoveOutOfStockProducts(dropDownId);}
else
{checkUrlLengthAndSubmitForm();}}}
vp.mpso.addGarmentSize=function mpso_addGarmentSize()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
vp.ui.get('hdnAddSize').value='1';disableForm();checkUrlLengthAndSubmitForm();};vp.mpso.changeGarmentSize=function mpso_changeGarmentSize()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
vp.ui.get('hdnChangeSize').value='1';disableForm();checkUrlLengthAndSubmitForm();};vp.mpso.priceGrid={};vp.mpso.priceGrid.ShowMoreQty=function mpso_priceGrid_ShowMoreQty(){if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var hiddenRows=vp.ui.getBySelector(".price-grid-hidden");for(var i=0;i<hiddenRows.length;i++)
{hiddenRows[i].className=hiddenRows[i].className.toString().replace(/price-grid-hidden/,"");}
var viewMore=document.getElementById("price-grid-view-more");viewMore.className=viewMore.toString()+" price-grid-hidden";if(vp.ui.get("bundleprice-grid-view-more"))
{var bundleViewMore=document.getElementById("bundleprice-grid-view-more");bundleViewMore.className=viewMore.toString()+" price-grid-hidden";}};var scrolling=false;var xs_checkboxes=new Array();function ScrollingEnabled()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var maxIndexDisplayed=parseInt(vp.ui.get('MaxIndexDisplayed').value);var minIndexDisplayed=parseInt(vp.ui.get('MinIndexDisplayed').value);var totalOffersGiven=parseInt(vp.ui.get('totalOffersGiven').value);if(minIndexDisplayed>maxIndexDisplayed)
{maxIndexDisplayed+=totalOffersGiven;}
var offersDisplayed=maxIndexDisplayed-minIndexDisplayed+1;return!scrolling&&offersDisplayed!=totalOffersGiven;}
function LeftScroll(elementId)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var elem=vp.ui.get(elementId);if(elem&&ScrollingEnabled())
{VS_logEvent('cross_sell_container_scrolled','left');scrolling=true;var maxIndexDisplayed=parseInt(vp.ui.get('MaxIndexDisplayed').value);var minIndexDisplayed=parseInt(vp.ui.get('MinIndexDisplayed').value);var totalOffersGiven=parseInt(vp.ui.get('totalOffersGiven').value);var offersToDisplay=parseInt(vp.ui.get('offersToDisplay').value);var roundedOffersGiven=totalOffersGiven;if(roundedOffersGiven%offersToDisplay!==0)
{roundedOffersGiven+=offersToDisplay-(totalOffersGiven%offersToDisplay);}
var newMaxIndex=minIndexDisplayed-1;var newMinIndex=minIndexDisplayed-offersToDisplay;var oldElements=new Array();var n=0;var realIndex;for(var i=minIndexDisplayed;i<minIndexDisplayed+offersToDisplay;i++,n++)
{realIndex=i-1;if(realIndex<0)
{realIndex+=roundedOffersGiven;}
var oldNode=vp.ui.get('tdOffer'+realIndex);oldElements[n]=oldNode;xsOfferHtml[realIndex]=oldNode;}
var count=0;for(var p=0;p<document[vp.mpso.FORM_NAME].elements.length;p++)
{if(document[vp.mpso.FORM_NAME].elements[p].type=="checkbox"&&document[vp.mpso.FORM_NAME].elements[p].checked)
{xs_checkboxes[count]=document[vp.mpso.FORM_NAME].elements[p].id;count++;}}
var rowElement=vp.ui.get('trOfferContainerRow');var realIndex2;var foundChild=false;for(var j=newMaxIndex;j>=newMinIndex;j--)
{realIndex2=j-1;if(realIndex2<0)
{realIndex2+=roundedOffersGiven;}
foundChild=false;for(p=0;p<rowElement.childNodes.length;p++)
{if(rowElement.childNodes[p].id==xsOfferHtml[realIndex2].id)
{rowElement.childNodes[p].style.display='';xsOfferHtml[realIndex2]=rowElement.childNodes[p];rowElement.removeChild(rowElement.childNodes[p]);foundChild=true;break;}}
if(!foundChild)
{if(!xsOfferHtml[realIndex2].innerHTML)
{xsOfferHtml[realIndex2].innerHTML=xsOfferInnerHtml[realIndex2];xsOfferHtml[realIndex2].normalize();}}
vp.ui.insertFirstElement(rowElement,xsOfferHtml[realIndex2]);}
for(p=0;p<xs_checkboxes.length;p++)
{vp.ui.get(xs_checkboxes[p]).checked=true;}
elem.scrollLeft=elem.parentNode.offsetWidth;if(newMaxIndex<=0)
{newMaxIndex+=roundedOffersGiven;}
if(newMinIndex<=0)
{newMinIndex+=roundedOffersGiven;}
UpdateDisplayedIndexValues(newMinIndex,newMaxIndex);var k=0;var timeStep=30;var numberOfSteps=25;var scrollStep=elem.parentNode.offsetWidth/numberOfSteps;var FnScrollElem=function pv_FnScrollElem()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
elem.scrollLeft-=scrollStep;k++;if(k<numberOfSteps)
{setTimeout(FnScrollElem,timeStep);}
else
{RemoveOldElements();scrolling=false;}};var RemoveOldElements=function pv_RemoveOldElements()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
for(var l=0;oldElements[l];l++)
{oldElements[l].style.display='none';}
elem.scrollLeft=0;};FnScrollElem();}}
function RightScroll(elementId)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var elem=vp.ui.get(elementId);if(elem&&ScrollingEnabled())
{VS_logEvent('cross_sell_container_scrolled','right');scrolling=true;var maxIndexDisplayed=parseInt(vp.ui.get('MaxIndexDisplayed').value);var minIndexDisplayed=parseInt(vp.ui.get('MinIndexDisplayed').value);var totalOffersGiven=parseInt(vp.ui.get('totalOffersGiven').value);var offersToDisplay=parseInt(vp.ui.get('offersToDisplay').value);var roundedOffersGiven=totalOffersGiven;if(roundedOffersGiven%offersToDisplay!==0)
{roundedOffersGiven+=offersToDisplay-(totalOffersGiven%offersToDisplay);}
var newMaxIndex=maxIndexDisplayed+offersToDisplay;var newMinIndex=maxIndexDisplayed+1;var oldElements=new Array();var n=0;var realIndex;for(var i=minIndexDisplayed;i<minIndexDisplayed+offersToDisplay;i++,n++)
{realIndex=(i-1)%roundedOffersGiven;var oldNode=vp.ui.get('tdOffer'+realIndex);oldElements[n]=oldNode;xsOfferHtml[realIndex]=oldNode;}
var count=0;for(var p=0;p<document[vp.mpso.FORM_NAME].elements.length;p++)
{if(document[vp.mpso.FORM_NAME].elements[p].type=="checkbox"&&document[vp.mpso.FORM_NAME].elements[p].checked)
{xs_checkboxes[count]=document[vp.mpso.FORM_NAME].elements[p].id;count++;}}
var rowElement=vp.ui.get('trOfferContainerRow');var realIndex2;var foundChild=false;for(var j=newMinIndex;j<=newMaxIndex;j++)
{realIndex2=(j-1)%roundedOffersGiven;foundChild=false;for(p=0;p<rowElement.childNodes.length;p++)
{if(rowElement.childNodes[p].id==xsOfferHtml[realIndex2].id)
{rowElement.childNodes[p].style.display='';xsOfferHtml[realIndex2]=rowElement.childNodes[p];rowElement.removeChild(rowElement.childNodes[p]);foundChild=true;break;}}
if(!foundChild)
{if(!xsOfferHtml[realIndex2].innerHTML)
{xsOfferHtml[realIndex2].innerHTML=xsOfferInnerHtml[realIndex2];xsOfferHtml[realIndex2].normalize();}}
rowElement.appendChild(xsOfferHtml[realIndex2]);}
for(p=0;p<xs_checkboxes.length;p++)
{vp.ui.get(xs_checkboxes[p]).checked=true;}
if(newMaxIndex>roundedOffersGiven)
{newMaxIndex=newMaxIndex%roundedOffersGiven;}
if(newMinIndex>roundedOffersGiven)
{newMinIndex=newMinIndex%roundedOffersGiven;}
UpdateDisplayedIndexValues(newMinIndex,newMaxIndex);var k=0;var timeStep=30;var numberOfSteps=25;var scrollStep=elem.parentNode.offsetWidth/numberOfSteps;var FnScrollElem=function pv_FnScrollElem()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
elem.scrollLeft+=scrollStep;k++;if(k<numberOfSteps)
{setTimeout(FnScrollElem,timeStep);}
else
{RemoveOldElements();scrolling=false;}};var RemoveOldElements=function pv_RemoveOldElements()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
for(var l=0;oldElements[l];l++)
{oldElements[l].style.display='none';}
elem.scrollLeft=0;};FnScrollElem();}}
function UpdateDisplayedIndexValues(minIndex,maxIndex)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var totalOffersGiven=parseInt(vp.ui.get('totalOffersGiven').value);vp.ui.get('MaxIndexDisplayed').value=maxIndex;vp.ui.get('MinIndexDisplayed').value=minIndex;if(maxIndex>totalOffersGiven)
{maxIndex=totalOffersGiven;}
vp.ui.get('lblCurrentlyDisplayed').innerHTML=minIndex+"-"+maxIndex;}
function InitializeEOEPaginator(pages,currentPageNumber)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var oPaginator=new vp.widget.Paginator(document.getElementById("oe-paginator"),pages,GoToEOEPage);oPaginator.selectedPageNumber=currentPageNumber;oPaginator.render();}
function GoToEOEPage(pageNumber)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
vp.ui.get("pgnbr").value=pageNumber;moveToNextTab();}
function SeeMoreMatchingEOE()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
VS_logEvent('cross_sell_container_expanded','true');vp.ui.get("seeMore").value=1;moveToNextTab();}
function SeeMoreMatching()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(xsOfferHTML)
{for(i=4;xsOfferHTML[i];i++)
{var offerElem=vp.ui.get('tdOffer'+i);offerElem.innerHTML=xsOfferHTML[i];offerElem.normalize();var parentElem=offerElem.parentNode;if(parentElem.style.display=='none')
{parentElem.style.display='';var sibling=parentElem.previousSibling;while(sibling.tagName!="TR")
{sibling=sibling.previousSibling;}
if(sibling.style.display=='none')
{sibling.style.display='';}}}}}
function DisableMoreMatching()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(vp.ui.get('aSeeMoreMatchingButton'))
{vp.ui.hide('aSeeMoreMatchingButton');vp.ui.show('imgSeeMoreMatchingButtonDisabled');}
else if(vp.ui.get('divSeeMoreMatchingLink'))
{vp.ui.hide('divSeeMoreMatchingLink');}}
function setCDMVTselected()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
vp.ui.get('svoCDMVT').value=1;vp.ui.get('svtCDMVT').value=74;vp.ui.get('cdmhighstrength').checked=true;vp.ui.get('cdmindustrial').disabled=true;vp.ui.get('cdmindustrial').style.display='none';vp.ui.get('cdmIndTextArea').style.display='none';vp.ui.get('cdmVTDescript').style.display='none';}
function letterheadVTAction()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
vp.ui.get('radioPaperStock0').checked=true;vp.ui.get('rvps0').disabled=true;vp.ui.get('rvps1').disabled=true;vp.ui.get('stockName0').style.color='#C0C0C0';vp.ui.get('stockName1').style.color='#C0C0C0';vp.ui.get('stockVTPrice0').style.color='#C0C0C0';vp.ui.get('stockVTPrice1').style.color='#C0C0C0';vp.ui.get('spnUnavailable0').style.display='inline';vp.ui.get('spnUnavailable1').style.display='inline';}
function shapedBCVTAction(v)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
vp.ui.get('radioBC0').checked=true;vp.ui.get('radioBC1').disabled=true;if(v==1)
{vp.ui.get('radioBC2').disabled=true;vp.ui.get('radioBC3').disabled=true;vp.ui.get('radioBC4').disabled=true;vp.ui.get('radioBC5').disabled=true;}}
var openViewLargerPopup=function pv_openViewLargerPopup(documentId)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
vp.dialog.IFrameDialog.open("_blank","",'/vp/ns/cart/viewlargerdoc.aspx?width=600&doc_id='+documentId,vp.dialog.chrome.Primary,625,700);};var openAboutSizingPopup=function pv_openAboutSizingPopup()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
vp.dialog.IFrameDialog.open("_blank","",'/vp/ns/about_sizing.aspx',vp.dialog.chrome.Primary,520,520);};var imageIdUpdateList=[];function AddImageIdToUpdateList(imageId)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
imageIdUpdateList.push(imageId);};function UpdateImagePreviews()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
for(i=0;i<imageIdUpdateList.length;i++)
{if(vp.ui.get(imageIdUpdateList[i]))
{vp.web.refreshImage(imageIdUpdateList[i]);}}}
function UpdateImageColor()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var imageElement=vp.ui.get('imgCurrentDocumentBackSidePreview');var leftImageElement=vp.ui.get('imgBacksideCurrent');var blankImageElement=vp.ui.get('imgBlankBackSidePreview');var freeImageElement=vp.ui.get('imgFreeBackSidePreview');var renderMode=3;var imageUrl;var galleryColor="Color";if(imageElement)
{imageUrl=new vp.web.URL(imageElement.src);var leftImageUrl;if(leftImageElement)
{leftImageUrl=new vp.web.URL(leftImageElement.src);}
if(vp.ui.get("radioColorFree")&&vp.ui.get("radioColorFree").checked)
{if(freeImageElement){freeImageElement.style.display='';}
if(blankImageElement){blankImageElement.style.display='none';}
if(imageElement){imageElement.style.display='none';}}
if(vp.ui.get("radioColor0")&&vp.ui.get("radioColor0").checked)
{if(blankImageElement){blankImageElement.style.display='';}
if(freeImageElement){freeImageElement.style.display='none';}
imageElement.style.display='none';galleryColor="blank";}
if(vp.ui.get("radioColor1")&&vp.ui.get("radioColor1").checked)
{if(blankImageElement){blankImageElement.style.display='none';}
if(freeImageElement){freeImageElement.style.display='none';}
imageElement.style.display='';imageUrl.setItem("renderMode",1);imageElement.src=imageUrl.toString();if(leftImageElement)
{leftImageUrl.setItem("renderMode",1);leftImageElement.src=leftImageUrl.toString();}
renderMode=1;galleryColor="grayscale";}
if(vp.ui.get("radioColor2")&&vp.ui.get("radioColor2").checked)
{if(blankImageElement){blankImageElement.style.display='none';}
if(freeImageElement){freeImageElement.style.display='none';}
imageElement.style.display='';imageUrl.setItem("renderMode",3);imageElement.src=imageUrl.toString();if(leftImageElement)
{leftImageUrl.setItem("renderMode",3);leftImageElement.src=leftImageUrl.toString();}
galleryColor="color";}
if(popup_render_mode)
{for(var i in popup_render_mode)
{popup_render_mode[i]=renderMode;}}}
var index=1000000;var oPreviewImage;do
{oPreviewImage=document.getElementById("imgPreview"+index);if(oPreviewImage)
{imageUrl=new vp.web.URL(oPreviewImage.src);if(vp.ui.get("radioColor1")&&vp.ui.get("radioColor1").checked)
{imageUrl.setItem("renderMode",1);oPreviewImage.src=imageUrl.toString();}
if(vp.ui.get("radioColor2")&&vp.ui.get("radioColor2").checked)
{imageUrl.setItem("renderMode",3);oPreviewImage.src=imageUrl.toString();}}
index++;}while(oPreviewImage);if(DefaultBlankBackside&&vp.ui.get("radioColor0")&&!vp.ui.get("radioColor0").checked)
{SelectMatchingCombo();DefaultBlankBackside=false;}
var oViewBacksideOptionsLink=vp.ui.get("aShowMoreBacksideOptions");if(oViewBacksideOptionsLink)
{var linkUrl=new vp.web.URL(BacksideGalleryUrl);linkUrl.setItem("color_options",galleryColor);BacksideGalleryUrl=linkUrl.toString();}}
function UpdateCategoryName(categoryName)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(vp.ui.get("hdnCategoryName"))
{vp.ui.get("hdnCategoryName").value=categoryName;}}
function UpdateBacksideTabContentEx(strColorRadioName,strBlankRadioName,strBacksideRecommended,strBacksideCurrent)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
UpdateBacksideTabContentExWithFreeOption(strColorRadioName,strBlankRadioName,"radioColorFree",strBacksideRecommended,strBacksideCurrent);}
function UpdateBacksideTabContentExWithFreeOption(strColorRadioName,strBlankRadioName,strFreeRadioName,strBacksideRecommended,strBacksideCurrent)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
UpdateImagePreviews();var recommendation=vp.ui.get(strBacksideRecommended);var current=vp.ui.get(strBacksideCurrent);var category=vp.ui.get("hdnCategoryName").value;var updateCombo=vp.ui.get("updateCombo");var updateComboHash=vp.ui.get("updateComboHash");var colorRadio=vp.ui.get(strColorRadioName);var blankRadio=vp.ui.get(strBlankRadioName);var freeRadio=vp.ui.get(strFreeRadioName);if(updateCombo)
{updateCombo.value=0;}
if(updateComboHash)
{updateComboHash.value='';}
if(recommendation)
{recommendation.style.display='none';}
if(current)
{current.style.display='';}
if(category)
{for(i=1;vp.ui.get('categoryName'+i);i++)
{vp.ui.get('categoryName'+i).innerHTML=category;}}
if(colorRadio&&((blankRadio&&blankRadio.checked)||(freeRadio&&freeRadio.checked)))
{colorRadio.click();}}
function UpdateBacksideTabContent()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
DefaultBlankBackside=false;UpdateBacksideTabContentExWithFreeOption("radioColor2","radioColor0","radioColorFree","divBacksideRecommendation","divBacksideCurrent");}
function expandMatchingSetProgressBar()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var tblElement=vp.ui.get("tblMatchingSetProgressBar");var link=vp.ui.get("aViewAllLink");for(var i=0;i<tblElement.rows.length;i++)
{var row=tblElement.rows[i];row.style.display='block';}
link.style.display='none';}
function SelectBackside(sComboHash,iComboId,sPreviewUrl,sColor,iDocumentPage)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
popup_new_combo_hashes['divStudioContainercategory'+DYNAMIC_STUDIO_POP_ID+'pop']=sComboHash;var isBlank=false;if(sColor.toLowerCase()=="blank")
{isBlank=true;if(vp.ui.get("radioColor0"))
{vp.ui.get("radioColor0").checked=true;}}
else if(sColor.toLowerCase()=="gray")
{if(vp.ui.get("radioColor1"))
{vp.ui.get("radioColor1").checked=true;}}
else
{if(vp.ui.get("radioColor2"))
{vp.ui.get("radioColor2").checked=true;}}
DefaultBlankBackside=false;if(isBlank)
{UpdateImageColor();}
else
{UpdateBacksideTabContent();UpdateImageColor();ShowDynamicPopupStudio();}}