window.name='main'; function change_credit_card(creditCardID){ if (creditCardID != null && creditCardID.length > 0){ document.payment.submit(); } } function MM_findObj(n, d) { //v4.0 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p); } if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i -1) && (currentForm.elements[i].type != 'hidden')){ // get the value of the corresponding ADDRESS field var fieldName = elementName.substring(elementName.indexOf(">")+1); var inputName = "ADDRESS<>"+fieldName; var inputValue = currentForm.elements[inputName].value; // set the SHIP_TO_ADDRESS field equal to the ADDRESS field value currentForm.elements[i].value = inputValue; currentForm.elements[i].disabled = true; } } else { if ((elementName.indexOf("SHIP_TO_ADDRESS") > -1) && (currentForm.elements[i].type != 'hidden')){ // set the SHIP_TO_ADDRESS field equal to the ADDRESS field value currentForm.elements[i].value = ''; currentForm.elements[i].disabled = false; } } } return true; } function enableShipToFields(formName) { var currentForm = document.forms[formName]; if (currentForm.elements['indSameAsBillTo'].checked) { for(i=0; i < currentForm.elements.length; i++){ currentForm.elements[i].disabled = false; } } return true; } function setLargeImage(newSrc){ var obj = document.getElementById("LARGE_PICTURE"); obj.src=newSrc; } function updateMessages(value1, value2, value3, value4) { document.getElementById("productDesc1").innerHTML = value1; document.getElementById("productDesc2").innerHTML = value2; document.getElementById("productDesc3").innerHTML = value3; if (!value4 == '') { document.getElementById("moreColors").src = value4; } } /************************************************************************* This code is from Dynamic Web Coding at http://www.dyn-web.com/ See Terms of Use at http://www.dyn-web.com/bus/terms.html regarding conditions under which you may use this code. This notice must be retained in the code as is! *************************************************************************/ var timer_id; function scroll_iframe(frm,inc,dir) { if (timer_id) clearTimeout(timer_id); if (window.frames[frm]) { if (dir == "v") window.frames[frm].scrollBy(0, inc); else window.frames[frm].scrollBy(inc, 0); timer_id = setTimeout("scroll_iframe('" + frm + "'," + inc + ",'" + dir + "')", 20); } } function stopScroll() { if (timer_id) clearTimeout(timer_id); } function openZoomWindow() { var destURL = document.getElementById("ZOOM_URL").value; // alert('Dest URL is ' + destURL ); window.open(destURL, '_new', 'toolbar=no, directories=no, location=no, status=yes, menubar=no, resizable=no, scrollbars=no, width=458, height=710, left=300, top=0'); } function loadIframe(iframeName, url) { if ( window.frames[iframeName] ) { window.frames[iframeName].location.href = url; return; } else return false; } /************************************************************************* This code is from Dynamic Web Coding at www.dyn-web.com Copyright 2001-4 by Sharon Paine See Terms of Use at www.dyn-web.com/bus/terms.html regarding conditions under which you may use this code. This notice must be retained in the code as is! *************************************************************************/ function initScrollLayer() { if( document.getElementById('wn') && document.getElementById('lyr1') ) { // arguments: id of layer containing scrolling layers (clipped layer), id of layer to scroll, // if horizontal scrolling, id of element containing scrolling content (table?) var wndo = new dw_scrollObj('wn', 'lyr1'); // bSizeDragBar set true by default (explained at www.dyn-web.com/dhtml/scroll/ ) // wndo.bSizeDragBar = false; // arguments: dragBar id, track id, axis ("v" or "h"), x offset, y offset // (x/y offsets of dragBar in track) //wndo.setUpScrollbar("dragBar", "track", "v", 1, 1); // pass id('s) of scroll area(s) if inside table(s) // i.e., if you have 3 (with id's wn1, wn2, wn3): dw_scrollObj.GeckoTableBugFix('wn1', 'wn2', 'wn3'); dw_scrollObj.GeckoTableBugFix('wn'); } } function initLookbookLayer(priority, secondLayerPresent) { // arguments: id of layer containing scrolling layers (clipped layer), id of layer to scroll, // if horizontal scrolling, id of element containing scrolling content (table?) var wndo = new dw_scrollObj('wnLook', 'lyrLook', 't1'); if (priority != null && priority != 1){ var temp = priority * 42; wndo.glideTo(temp, 0, 100); } if (secondLayerPresent){ var wndo2 = new dw_scrollObj('wn', 'lyr1'); } // bSizeDragBar set true by default (explained at www.dyn-web.com/dhtml/scroll/ ) // wndo.bSizeDragBar = false; // arguments: dragBar id, track id, axis ("v" or "h"), x offset, y offset // (x/y offsets of dragBar in track) // wndo.setUpScrollbar("dragBar", "track", "h", 50, 1); // pass id('s) of scroll area(s) if inside table(s) // i.e., if you have 3 (with id's wn1, wn2, wn3): dw_scrollObj.GeckoTableBugFix('wn1', 'wn2', 'wn3'); dw_scrollObj.GeckoTableBugFix('wnLook', 'wn'); }