function popup_image(image_url, title) { var winl = (screen.width - 200)/2; var wint = (screen.height - 300)/2; var settings ='top='+wint+','; settings +='left='+winl+','; settings +='width=200, '; settings +='height=300, '; settings +='scrollbars=no,'; settings +='resizable=yes'; title = title.replace(/\s/g, '%20'); win=window.open('/image_popup.php?image_url='+image_url+'&title='+title, 'image',settings); if(parseInt(navigator.appVersion) >= 4) { win.window.focus(); } } function popup_gallery(g, i, w, h) { var winl = (screen.width - 700)/2; var wint = (screen.height - 500)/2; var settings ='top='+wint+','; settings +='left='+winl+','; settings +='width=700, '; settings +='height=500, '; settings +='scrollbars=no,'; settings +='resizable=yes'; win=window.open('/gallery_popup.php?g='+g+'&i='+i+'&w='+w+'&h='+h, 'image',settings); if(parseInt(navigator.appVersion) >= 4) { win.window.focus(); } } /* preload images */ if (document.images) { var spacerOn = new Image(); spacerOn.src = "images/spacer.gif"; } function submitSearchForm(base, site_tree_id, product_group_id) { submitSearch(base, site_tree_id, product_group_id); return false; } function submitSearch(base, site_tree_id, product_group_id) { s = document.getElementById('search_str').value; b = document.getElementById('brand_id').value; if (s == 'Keywords') s = ''; window.location.replace(base+'/'+site_tree_id+'/group/'+product_group_id+'/search_str/'+escape(s)+'/brand/'+escape(b)+'/page/1/'); } function submitRegistrySearchForm(base, site_tree_id, product_group_id) { submitRegistrySearch(base, site_tree_id, product_group_id); return false; } function submitRegistrySearch(base, site_tree_id, product_group_id) { s = document.getElementById('registry_str').value; if (s == 'Registry Search') s = ''; window.location.replace('/'+site_tree_id+'/group/'+product_group_id+'/registry_str/'+escape(s)+'/'); } function newImage(arg) { if (document.images) { rslt = new Image(); rslt.src = arg; return rslt; } } function changeImages() { if (document.images && (preloadFlag == true)) { for (var i=0; i= 4) { win.window.focus(); } }