/* START Volusion JavaScript, cleaned up */ function ClearForm() { var FieldType; for (var i = 0; i < document.EditForm.length; i++) { FieldType = document.EditForm.elements[i].type; if ('text' == FieldType || 'textarea' == FieldType) { document.EditForm.elements[i].value = ''; } if ('select-one' == FieldType) { document.EditForm.elements[i].options.selectedIndex = 0; } } } function OpenNewWindow(url, width, height) { var randomNumber = Math.floor(Math.random() * 5001); window.open(url, randomNumber, 'top=10,left=10,menubar=0,resizable=1,scrollbars=1,width=' + width + ',height=' + height); } function OpenWindowNoScroll(url, width, height) { window.open(url, 'popup_noscroll', 'top=10,left=10,menubar=0,resizable=0,scrollbars=0,width=' + width + ',height=' + height); } function protect_images2(e) { } function protect_images1() { } function OpenSideWindow(url) { var windowHeight; var rightWidth = 300; var leftWidth; var SideWindow; if (document.all) { windowHeight = screen.availHeight; leftWidth = screen.availWidth - rightWidth - 11; SideWindow = window.open(url, 'SideWindow', 'width=' + rightWidth + ',height=' + (windowHeight - 60) + ',screenX=' + leftWidth + ',screenY=0,top=0,left=' + leftWidth + ',toolbar=0,location=0,status=1,menubar=0,resizable=1'); SideWindow.focus(); } else { SideWindow = window.open(url,'','width=280,height=480,toolbar=0,location=0,status=1,menubar=0,resizable=1'); } } /* END Volusion JavaScript, cleaned up */ /* START Custom JavaScript */ function clearSearchBox(searchbox) { if ('enter description or item #' == searchbox.value) { searchbox.value = ''; } } function refillSearchBox(searchbox) { if ('' == searchbox.value) { searchbox.value = 'enter description or item #'; } } function clearNewsletterSignupBox(newslettersignupbox) { if ('enter your e-mail address' == newslettersignupbox.value) { newslettersignupbox.value = ''; } } function refillNewsletterSignupBox(newslettersignupbox) { if ('' == newslettersignupbox.value) { newslettersignupbox.value = 'enter your e-mail address'; } } /* END Custom JavaScript */