﻿function selectgo(x){var a=document.getElementById(x);var b=a.options[a.selectedIndex].value;if(b)location.href=b}function itemView(a){var b=document.getElementById(a);var c=b.value.toUpperCase();if(c!="")location.href='/item/'+c+'.aspx'}function atc(a){var b='1';var c=document.getElementById('atc_'+a.replace("%2f","_"));if(c!=null){b=c.value}location.href='/addtocart.aspx?prodid='+a+'&qt='+b}function etf(a){location.href='/etf.aspx?prodid='+a}function checkout(){location.href='/checkout/'}function search(a){var b=document.getElementById(a);var c=escape(b.value);location.href='/pl.aspx?t=s&v='+c+'&page=1'}function searchCat(a,b){var c=document.getElementById(a);var d=document.getElementById(b);var e=d.options[d.selectedIndex].value;var f=escape(c.value);if(e==-1&&f==''){location.href='/a/b/i/page1.aspx'}else if(e==-1){location.href='/pl.aspx?t=s&v='+f+'&page=1'}else if(f==''){location.href='/c/'+e+'/i/page1.aspx'}else{location.href='/pl.aspx?t=s&v='+f+'&page=1&cat='+e}}function searchA(a,b,c){var d=document.getElementById(a);var e=document.getElementById(b);var f=document.getElementById(c);var g=escape(d.value);var h=escape(e.value);var i=escape(f.value);location.href='/pl.aspx?t=t&v='+g+':'+h+':'+i+'&page=1'}function clickButton(e,a){var b=document.getElementById(a);if(typeof b=='object'){if(navigator.appName.indexOf("Netscape")>(-1)){if(e.keyCode==13){b.click();return false}}if(navigator.appName.indexOf("Microsoft Internet Explorer")>(-1)){if(event.keyCode==13){b.click();return false}}}}function faq(a){location.href='/faq.aspx?prodid='+a}function faq_voting(a,b,c){location.href='/voting.aspx?id='+a+'&useful='+b+'&prodid='+c}function faq_show(a){var b=document.getElementById(a);if(b.style.display!='inline')b.style.display='inline';else b.style.display='none'}