//<!--
//1@@m35

Search_Option="1";Excluded=0;Space=0;Valid=0;var JsSiteId=SiteId;var JsSearchFeature=SearchFeature;var JsSearchDescFeature=SearchDescFeature;var JsAdvancedSearchFeature=AdvancedSearchFeature;var JsItemSearchFeature=ItemSearchFeature;var JsSellerSearchFeature=SellerSearchFeature;var JsStoresSearchFeature=StoresSearchFeature;var JsBidderSearchFeature=BidderSearchFeature;var JsCompletedSearchFeature=CompletedSearchFeature;var JsRegionSearchFeature=RegionSearchFeature;var JsInternationalSearchFeature=InternationalSearchFeature;var JsSearchDescPath=SearchDescPath;var JsSearchCompletedPath=SearchCompletedPath;var JsCgiPath=CgiPath;if(JsSiteId==0){JsPagesPath="\${HTMLPATH}";}else if(JsSiteId==15){JsPagesPath="\${AUHTMLPATH}";}else if(JsSiteId==77){JsPagesPath="\${DEHTMLPATH}";}else if(JsSiteId==23){JsPagesPath="\${BEFRHTMLPATH}";}else if(JsSiteId==123){JsPagesPath="\${BENLHTMLPATH}";}else if(JsSiteId==2){JsPagesPath="\${CAHTMLPATH}";}else if(JsSiteId==71){JsPagesPath="\${FRHTMLPATH}";}else if(JsSiteId==186){JsPagesPath="\${ESHTMLPATH}";}else if(JsSiteId==3){JsPagesPath="\${UKHTMLPATH}";}else if(JsSiteId==101){JsPagesPath="\${ITHTMLPATH}";}else if(JsSiteId==196){JsPagesPath="\${TWHTMLPATH}";}else if(JsSiteId==146){JsPagesPath="\${NLHTMLPATH}";}
Valid_chars="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";function getFront(mainStr,searchStr){foundOffset=mainStr.indexOf(searchStr);if(foundOffset==-1){return null;}
return mainStr.substring(0,foundOffset)}
function getEnd(mainStr,searchStr){foundOffset=mainStr.indexOf(searchStr);if(foundOffset==-1){return null;}
return mainStr.substring(foundOffset+searchStr.length,mainStr.length)}
function insertString(mainStr,searchStr,insertStr){var front=getFront(mainStr,searchStr);var end=getEnd(mainStr,searchStr);if(front!=null&&end!=null){return front+insertStr+searchStr+end;}
return null;}
function deleteString(mainStr,deleteStr){return replaceString(mainStr,deleteStr,"");}
function replaceString(mainStr,searchStr,replaceStr,form){var front=getFront(mainStr,searchStr);var end=getEnd(mainStr,searchStr);if(front!=null&&end!=null){return front+replaceStr+end;}
return null;}
function checkOption(form){var selected=form.search_option.options[form.search_option.selectedIndex].value;if(selected=="1"){Search_Option="1";}
else if(selected=="2"){Search_Option="2";validate(form);}
else if(selected=="3"){Search_Option="3";validate(form);}
else{}}
function isSpace(sp){if(sp==" ")Space=1;else Space=0;}
function allOfThese(text){var output="";var quotesOn=false;text=formatExcludeStr(text);for(var i=0;i<text.length;i++){var ch=text.charAt(i);if(ch=="\""){if(quotesOn)
quotesOn=false;else
quotesOn=true;}
if(i==0){output+="-"+ch;}
else if(!quotesOn&&ch==" "&&text.charAt(i-1)!=","){output+=ch+"-";}
else if(!quotesOn&&ch==","){output+=ch+" -";}
else{output+=ch;}}
return output;}
function anyOfThese(temp,form,pExclude){var lp="\(";var rp="\)";var cm=",";var this_temp="";var openQuoteFound=false;for(var i=0;i<temp.length;i++){var ch=temp.charAt(i);if(pExclude){if(openQuoteFound||(ch=='"')){if(openQuoteFound){if(ch=='"')
openQuoteFound=false;}
else
openQuoteFound=true;this_temp+=ch;continue;}
var sp=temp.charAt(i-1);if((ch=='(')||(ch==')'))
continue;else if((ch==',')||((ch==' ')&&(sp!=','))){this_temp+=",";continue;}}
isSpace(sp);if(ch==" "){if((Space==1)||(i==0)||(i==(temp.length-1))){this_temp+=replaceString(ch,ch,'',form);}
else{this_temp+=replaceString(ch,ch,cm,form);}}
else{this_temp+=replaceString(ch,ch,ch,form);}}
temp=lp+this_temp+rp;return temp;}
function exactlyThese(temp){var qt="\"";temp=qt+temp+qt;return temp;}
function excluded(words,form){var temp=allOfThese(words,form);return temp;}
function whichOption(form){var temp=form.query2.value;var exclude_value="";if(typeof(form.exclude)!="undefined"){exclude_value=excluded(form.exclude.value,form);}
var this_temp="";var selected=form.search_option.options[form.search_option.selectedIndex].value;if(selected=="1"){Search_Option="1";}
else if(selected=="2"){Search_Option="2";}
else if(selected=="3"){Search_Option="3";}
if(Search_Option=="2"){temp=anyOfThese(temp);}
else if(Search_Option=="3"){temp=exactlyThese(temp,form);}
if((typeof(form.exclude)!="undefined")&&(form.exclude.value.length>"0")){form.query.value=temp+=(" "+exclude_value);}
else{form.query.value=temp;}}
function searchDescriptions(form){if(location.host.indexOf('ebay.com')>-1){if(form.srchdesc.checked==true){form.action=JsSearchDescPath+"search/search.dll";}}}
function searchCompleted(form){if(typeof(form.completedOnly)!='undefined'&&form.completedOnly.checked){form.action=JsSearchCompletedPath+"search/search.dll";}}
function realestatecheck(form){var data=document.search_form.query2.value;var loc=new String(window.location);var index=loc.indexOf('?');var catIndex=loc.lastIndexOf('=');if(document.search_form.category0.options[18].selected==true)
{window.location=JsPagesPath+"search/items/search.html"+"?query="+encodeURIComponent(data)+"&cat=18";}
else
{window.location=JsPagesPath+"search/items/search.html"+"?query="+encodeURIComponent(data)+"&cat="+document.search_form.category0.selectedIndex;}}
function changePayments(){var form=document.adv_search;if(form.pt1.checked&&form.pt2.checked){form.pt.value=3;}
else if(form.pt1.checked){form.pt.value=form.pt1.value;}
else if(form.pt2.checked){form.pt.value=form.pt2.value;}
else{form.pt.value=0;}}
function isItemNumber(){var form=document.adv_search;if(Number(form.query.value)){if(Number(form.query.value)>'99999999'){window.location=CgiPath+'eBayISAPI.dll?ViewItem&item='+form.query.value;return false;}
else{return true;}}
else{return true;}}
function setCurrencyToDefault(){var form=document.adv_search;form.ebaycurr.options[0].selected=true;}
function changeCurrencyNSite(){var form=document.adv_search;if(form.ebaycurr.selectedIndex!=0&form.worldlocation[0].checked==true){form.worldlocation[1].checked=true;}}
function setCountryToDefault(){form=document.adv_search;if(typeof(form.available_to.options)!='undefined'){for(var j=0;j<form.available_to.options.length;j++){if(form.available_to.options[j].defaultSelected==true){form.available_to.options[j].selected=true;}}}
if(typeof(form.located_in.options)!='undefined'){for(var i=0;i<form.located_in.options.length;i++){if(form.located_in.options[i].defaultSelected==true){form.located_in.options[i].selected=true;}}}
if(typeof(form.region.options)!='undefined'){for(var m=0;m<form.region.options.length;m++){if(form.region.options[m].defaultSelected==true){form.region.options[m].selected=true;}}}}
function checkSite(form){document.adv_search.siteid.value=SiteId;form.shortcut.value="";if(form.worldlocation[0].checked==true){form.ebaytag1code_tmp.value="";form.ebaytag1_tmp.value="";form.ebaytag1code.value="";form.ebaytag1.value="";if(SiteId==0){form.shortcut.value="";}
else if(SiteId==146||SiteId==23||SiteId==123||SiteId==16||SiteId==193){form.shortcut.value="5"
if(SiteId==77||SiteId==193||SiteId==16){form.ebaytag1code.value=SiteId;}}
else{form.shortcut.value="4"}}
else if(form.worldlocation[1].checked==true){form.ebaytag1code_tmp.value=form.available_to.options[form.available_to.selectedIndex].value;form.ebaytag1code.value=form.available_to.options[form.available_to.selectedIndex].value;form.ebaytag1_tmp.value="ebayavail";form.ebaytag1.value="ebayavail";form.region.value="0";}
else if(form.worldlocation[2].checked==true){form.ebaytag1code_tmp.value=form.located_in.options[form.located_in.selectedIndex].value;form.ebaytag1code.value=form.located_in.options[form.located_in.selectedIndex].value;form.ebaytag1_tmp.value="ebayctry";form.ebaytag1.value="ebayctry";form.region.value="0";}}
function init(){setCountryToDefault();}
var is=new Is()
function Is()
{var agt=navigator.userAgent.toLowerCase();this.major=parseInt(navigator.appVersion);this.opera=(agt.indexOf("opera")!=-1);this.nav=((agt.indexOf('mozilla')!=-1)&&((agt.indexOf('spoofer')==-1)&&(agt.indexOf('compatible')==-1)&&(agt.indexOf('WebTV')==-1)));this.nav3up=this.nav&&(this.major>=3);this.ie=(agt.indexOf("msie")!=-1);this.ie3=this.ie&&(this.major<=3);this.ie4up=this.ie&&(this.major>=4);this.eBayJSnotWebTV=(this.nav3up||this.ie4up);}
var countrySelectedIndex=1;var regionSelectedIndex=0;var currencySelectedIndex=0;var allowedCurrencySelection=new Array(0)
function revertCheckOn(form){form.ebaytag1code_tmp.selectedIndex=countrySelectedIndex;form.ebaytag1_tmp[0].checked=true;if(!checkCurrencies(form)){form.ebaycurr.selectedIndex=currencySelectedIndex;}
form.shortcut.checked=true;}
function setCountry(form){form.shortcut.checked=false;if(typeof(form.region.options)!='undefined'){form.region.selectedIndex=regionSelectedIndex;if(form.ebaytag1code_tmp.selectedIndex!=countrySelectedIndex){form.ebaytag1_tmp[1].checked=true;}}}
function changeCurrency(form){if(!checkCurrencies(form)){form.shortcut.checked=false;if(typeof(form.region.options)!='undefined'){form.region.selectedIndex=regionSelectedIndex;}}}
function checkCurrencies(form){selectedCurrency=form.ebaycurr.selectedIndex;var returnVal=false;for(i=0;i<allowedCurrencySelection.length;i++){if(allowedCurrencySelection[i]==selectedCurrency){returnVal=true;}}
return returnVal}
function removeNewLineComma(str){if(str!=""){replace=/[\n\r]/g
str=str.replace(replace," ");str=str.replace(/\s/g,",");str=str.replace(/,{2,}/g,",");return str.replace(/,$/g,"")}
return str}
function removeNewLineSpace(str){if(str!=""){replace=/[\n\r]/g
str=str.replace(replace," ");str=str.replace(/\s/g,",");str=str.replace(/,{2,}/g,",");return str.replace(/,$/g,"")}
return str}
function changeRegion(){setCurrencyToDefault();}
function searchSite(){if(document.search_form.shortcut.checked){document.search_form.ebaytag1code.value="0";document.search_form.ebaytag1.value="";}
else{document.search_form.ebaytag1code.value=document.search_form.ebaytag1code_tmp.options[document.search_form.ebaytag1code_tmp.selectedIndex].value;for(i=0;i<document.search_form.ebaytag1_tmp.length;i++){if(document.search_form.ebaytag1_tmp[i].checked){document.search_form.ebaytag1.value=document.search_form.ebaytag1_tmp[i].value;}}}}
function formatExcludeStr(str){var prevChar=" ";var currChar=" ";var outStr="";var cc="";for(i=0;i<str.length;i++){currChar=str.charAt(i);cc=currChar.charCodeAt(0);if((cc==10)||(cc==13)||(cc==44))
currChar=" ";if((currChar!=" "||(currChar==" "&&prevChar!=" "&&outStr.length!=0&&i!=str.length-1))){outStr+=currChar;}
prevChar=currChar;}
if(outStr.charAt(outStr.length-1)==" "){outStr=outStr.substring(0,outStr.length-1);}
return outStr;}
function setShortcut(form){if(document.location.href.toUpperCase().indexOf("BENL")>-1){form.shortcut.value="5";}
else if(form.worldlocation[0].checked){form.shortcut.value="5";}
else{form.shortcut.value="";}}
// b=10597871 -->