//<!--
// \include\lib\_global\_ui\_base\anchor.js@@\main\6 

function EbayHTMLAnchor(pParent,pName,pDisabled,pCfg)
{if(!this.objType)
this.objType="EbayHTMLAnchor";this.base=EbayHTML;this.base(pParent,pName,pName,pDisabled,pCfg);this.getElem=ebHTMLAnchorGetElem;this.enableBase=this.enable;this.enable=ebHTMLAnchorEnable;this.subscribeEvents("onclick");}
function ebHTMLAnchorGetElem(pName)
{var d=this.oDocument.doc,l=null;l=d.links[pName];if(l)return l;if(d.all)
l=d.all[pName];if(l)return l;if(d.getElementById)
l=d.getElementById(pName);if(l)return l;if(d.layers)
{var lyrs=d.layers;var len=lyrs.length;for(var i=0;i<len;i++)
{l=this.getElem(lyrs[i].document,pName);if(l)
return l;}}
for(var j=0;j<d.links.length;j++)
{l=d.links[j];if(typeof(l.name)=="undefined")
{if(l.onclick)
{var oc=l.onclick.toString();if(oc.indexOf("{#"+pName+"#}")!=-1)
return l;}}
else
{if(l.name==pName)
return l;}
l=null;}
return l;}
function ebHTMLAnchorEnable(pEnable)
{var cur=(pEnable)?"hand":"default";var el=this.eElem;if(el&&el.style)
el.style.cursor=cur;this.enableBase(pEnable);}
function setEbayLink(pS)
{return true;}

// \include\lib\_global\_ui\_base\form.js@@\main\2 

function EbayHTMLForm(pParent,pName,pCfg)
{if(!this.objType)
this.objType="EbayHTMLForm";this.base=EbayHTML;this.base(pParent,pName,pName,false,pCfg);this.getElem=new Function("return this.getDocElem(arguments[0],'forms');");this.enable=new Function("");this.getElementValue=ebHTMLFormGetElementValue;this.setElementValue=ebHTMLFormSetElementValue;this.getElements=ebHTMLFormGetElements;this.getElement=ebHTMLFormGetElement;this.setAction=ebHTMLFormSetAction;this.setTarget=ebHTMLFormSetTarget;this.submit=ebHTMLFormSubmit;this.subscribeEvents("onsubmit");this.onBeforeSubmit=null;this.onAfterSubmit=null;}
function ebHTMLFormGetElements()
{var e=this.eElem;return e?e.elements:new Array;}
function ebHTMLFormGetElement(pName)
{var elems=this.getElements();return elems[pName]?elems[pName]:null;}
function ebHTMLFormGetElementValue(pName)
{var elems=this.getElements();if(elems[pName]&&elems[pName].value)
return elems[pName].value;return"";}
function ebHTMLFormSetElementValue(pName,pValue)
{var elems=this.getElements();if(elems[pName])
elems[pName].value=pValue;}
function ebHTMLFormSetAction(pAction)
{var e=this.eElem;if(e)
e.action=pAction;}
function ebHTMLFormSetTarget(pTarget)
{var e=this.eElem;if(e)
e.target=pTarget;}
function ebHTMLFormSubmit()
{if(this.onBeforeSubmit)
this.onBeforeSubmit();var e=this.eElem;if(e)
{e.submit();if(this.onAfterSubmit)
this.onAfterSubmit();}
else
this.throwError("Element '"+this.sElemName+"' does not exist on the page","submit");}

// \include\lib\_global\_ui\_base\text.js@@\main\7 

function EbayHTMLText(pParent,pName,pDisabled,pCfg)
{if(!this.objType)
this.objType="EbayHTMLText";this.base=EbayHTML;this.base(pParent,pName,pName,pDisabled,pCfg);this.value=ebHTMLTextValue;this.subscribeEvents("onchange","onblur","onfocus","onkeydown","onkeyup");}
function ebHTMLTextValue(pVal)
{var e=this.eElem;if(e)
{if(typeof(pVal)=="undefined")
return e.value;else
e.value=pVal;}}

// \include\lib\_global\_ui\_base\button.js@@\main\2 

function EbayHTMLButton(pParent,pElemName,pDisabled,pCfg)
{if(!this.objType)
this.objType="EbayHTMLButton";this.base=EbayHTML;this.base(pParent,pElemName,pElemName,pDisabled,pCfg);this.subscribeEvents("onclick");}

// \include\lib\_global\_ui\_base\radio.js@@\main\3 

function EbayHTMLRadio(pParent,pName,pDisabled,pCfg)
{if(!this.objType)
this.objType="EbayHTMLRadio";this.base=EbayHTML;this.base(pParent,pName,pName,pDisabled,pCfg);this.getElem=ebHTMLRadioGetElem;this.bindHTML=ebHTMLRadioBindHTML;this.bindEvents=ebHTMLRadioBindEvents;this.selectByIndex=ebHTMLRadioSelectByIndex;this.selectByValue=ebHTMLRadioSelectByValue;this.getValue=ebHTMLRadioGetValue;this.isGroup=false;this.onBeforeCheck=null;this.onAfterCheck=null;this.subscribeEvents("onclick");}
function ebHTMLRadioGetElem(pName)
{return this.oDocument.getFormElem(pName,"radio");}
function ebHTMLRadioBindHTML()
{with(this)
{eElem=getElem(sElemName);if(eElem)
{if(eElem.length&&eElem.length>0)
{this.isGroup=true;for(var i=0;i<eElem.length;i++)
eElem[i].jsObj=this;}
else
{this.isGroup=false;eElem.jsObj=this;}}
if(bDisabled)
this.enable(false);}}
function ebHTMLRadioBindEvents()
{with(this)
{if(!eElem)
return;var e=aBindEvents,len=e.length,fStr;for(var i=0;i<len;i++)
{if(eElem.length&&eElem.length>0)
{for(var ii=0;ii<eElem.length;ii++)
eval("eElem[ii]."+e[i]+" = new Function( this.bindEventString(e[i]) )");}
else
{eval("eElem."+e[i]+" = new Function(this.bindEventString(e[i]))");}}}}
function ebHTMLRadioSelectByIndex(pIdx)
{if(this.onBeforeCheck)
this.onBeforeCheck();var e=this.eElem;if(this.isGroup)
e=this.eElem[pIdx];if(e)
{e.checked=true;if(this.onAfterCheck)
this.onAfterCheck();}}
function ebHTMLRadioSelectByValue(pVal)
{if(this.onBeforeCheck)
this.onBeforeCheck();var e=this.eElem;if(this.isGroup)
{for(var i=0;i<e.length;i++)
{if(e[i].value==pVal)
{e[i].checked=true;if(this.onAfterCheck)
this.onAfterCheck();return;}}}
else
{if(e.value==pVal)
{e.checked=true;if(this.onAfterCheck)
this.onAfterCheck();}}}
function ebHTMLRadioGetValue()
{var e=this.eElem;if(this.isGroup)
{for(var i=0;i<e.length;i++)
{if(e[i].checked)
return e[i].value;}}
else
{if(e.checked)
return e.value;}
return"";}

// \include\lib\_global\_ui\_base\image.js@@\main\2 

function EbayHTMLImage(pParent,pName,pDisabled,pSource,pDisabledSource,pCfg)
{if(!this.objType)
this.objType="EbayHTMLImage";this.base=EbayHTML;this.base(pParent,pName,pName,pDisabled,pCfg);this.sEnabledSource=this.sDisabledSource=pSource;if(pDisabledSource)
this.sDisabledSource=pDisabledSource;this.getElem=new Function("return this.getDocElem(arguments[0],'images');");this.source=ebHTMLImageSource;this.enableBase=this.enable;this.enable=ebHTMLImageEnable;this.subscribeEvents("onclick","onmouseover","onmouseout");}
function ebHTMLImageSource(pSrc,pText)
{var im=this.eElem;if(typeof(pSrc)=="undefined")
return(im)?im.src:"";else
{im.src=pSrc;if(pText)
im.alt=pText;}}
function ebHTMLImageEnable(pEnable)
{with(this)
{enableBase(pEnable);if(sDisabledSource)
eElem.src=(pEnable)?sEnabledSource:sDisabledSource;}}

// \include\lib\_global\_ui\_base\select.js@@\main\6 

function EbayHTMLSelect(pParent,pName,pDisabled,pCfg)
{if(!this.objType)
this.objType="EbayHTMLSelect";this.base=EbayHTML;this.base(pParent,pName,pName,pDisabled,pCfg);this.iSelIndex=-1;this.createOption=ebHTMLSelectCreateOption;this.clearOptions=ebHTMLSelectClearOptions;this.getValueByIndex=ebHTMLSelectGetValueByIndex;this.getSelectedValue=ebHTMLSelectGetSelectedValue;this.getSelectedText=ebHTMLSelectGetSelectedText;this.setOption=ebHTMLSelectSetOption;this.insertOption=ebHTMLSelectInsertOption;this.deleteOption=ebHTMLSelectDeleteOption;this.selectByIndex=ebHTMLSelectSelectByIndex;this.selectByValue=ebHTMLSelectSelectByValue;this.onchange=null;this.onmouseover=null;this.onmouseout=null;this.subscribeEvents("onchange");}
function ebHTMLSelectClearOptions()
{if(typeof(this.eElem)!="undefined")
{var opts=this.eElem.options;while(opts.length>0)
opts[opts.length-1]=null;}}
function ebHTMLSelectCreateOption(pName,pText)
{if(typeof(this.eElem)!="undefined")
{var nOpt=new Option(pText,pName,false,false);var opts=this.eElem.options;opts[opts.length]=nOpt;nOpt=new Option(pText,pName,false,false);nOpt.selected=false;opts[opts.length-1]=nOpt;}}
function ebHTMLSelectGetValueByIndex(pIdx,pTextOnly)
{if(pIdx>-1)
{opt=this.eElem.options[pIdx];if(opt)
return((opt.value.length>0)&&!pTextOnly)?opt.value:opt.text;}
this.throwError("Invalid index","get");}
function ebHTMLSelectGetSelectedValue()
{return this.getValueByIndex(this.eElem.selectedIndex);}
function ebHTMLSelectGetSelectedText()
{return this.getValueByIndex(this.eElem.selectedIndex,true);}
function ebHTMLSelectSelectByIndex(pIndex)
{this.eElem.selectedIndex=this.iSelIndex=pIndex;}
function ebHTMLSelectSelectByValue(pVal)
{if(this.eElem)
{var e=this.eElem,o;var opts=e.options,len=opts.length;for(var i=0;i<len;i++)
{o=opts[i];if((o.value==pVal)||(o.value==""&&o.text==pVal))
{e.selectedIndex=this.iSelIndex=i;break;}}}
else
this.throwWarning("HTML element '"+this.name+"' not found","selectByValue");}
function ebHTMLSelectSetOption(pVal,pText,pInd)
{if(this.eElem)
{if(pInd!=null)
{var o=this.eElem.options[pInd];o.value=pVal;o.text=pText;}
else
this.createOption(pVal,pText);}
else
this.throwWarning("HTML element '"+this.name+"' not found","selectByValue");}
function ebHTMLSelectInsertOption(pVal,pText,pInd)
{with(this)
{var e=eElem,opts=e.options,len=opts.length;var inOpt=new Array(pText,pVal),tmpOpt=new Array(2);var sel=getSelectedValue();len++;if(pInd>=len)
return;for(i=pInd;i<len;i++)
{if(i<len-1)
tmpOpt=[e.options[i].text,e.options[i].value];opts[i]=new Option(inOpt[0],inOpt[1]);inOpt=tmpOpt;}
selectByValue(sel);}}
function ebHTMLSelectDeleteOption(pInd)
{if(typeof(pInd)!='undefined')
{var opts=this.eElem.options;if(opts[pInd])
opts[pInd]=null;}}

// \include\lib\_global\_ui\_ex\text_restricted.js@@\main\4 

function EbayHTMLTextRestricted(pParent,pName,pCfg)
{if(!this.objType)
this.objType="EbayHTMLTextRestricted";this.base=EbayHTMLText;this.base(pParent,pName);this.oConfig=pCfg||null;this.subscribeEvents("oncopy","onpaste","oncut","ondragstart");this.oncopy=ebHTMLTextRestricted;this.onpaste=ebHTMLTextRestricted;this.oncut=ebHTMLTextRestricted;this.ondragstart=ebHTMLTextRestricted;}
function ebHTMLTextRestricted()
{return false;}

// \include\lib\_global\features\registration\reg_step1.js@@\main\10 

ebay.oDocument.oPage.onBeforeLoad=function()
{if(typeof(toolboxOnLoad)!="undefined")
toolboxOnLoad();var oD=ebay.oDocument;var oP=oD.oPage;var oPc=oP.oConfig;var elChangeSite=null;var eFrm=new EbayHTMLForm(oP,"RegisterEnterInfo");eFrm.setAction=oPc.sTargetUrl;if(oPc.sContinueElemName.length>0)
{var eButton=new EbayHTMLButton(eFrm,oPc.sContinueElemName);eButton.onclick=function()
{eFrm.setAction=oPc.sTargetUrl;var oCmd=eFrm.getElement("MfcISAPICommand");if(oCmd)
oCmd.value=oPc.sTargetType;var oMode=eFrm.getElement("mode");if(oMode)
{oMode.value="0";if(oPc.sTargetMode)
oMode.value=oPc.sTargetMode;}
eFrm.submit();}}
function elCountry_onchange()
{eFrm.getElement("MfcISAPICommand").value=oPc.sCountryTargetType;var oMode=eFrm.getElement("mode");var oCountrySel=eFrm.getElement(oPc.sCountrySelectName);var vAllCountries="1000",countryVal="";if(typeof(oPc.sAllCountriesVal)!='undefined')
vAllCountries=oPc.sAllCountriesVal;if(oCountrySel)
{countryVal=oCountrySel.options[oCountrySel.selectedIndex].value;if(oMode)
{if(countryVal==vAllCountries)
oMode.value="0";else
oMode.value="1";}}
else
{if(oMode)
oMode.value="0";}
eFrm.submit();}
if(oPc.sCountryLinkName.length>0)
{var elCountry=new EbayHTMLAnchor(eFrm,oPc.sCountryLinkName);elCountry.onclick=elCountry_onchange;}
else
{var elCountry=new EbayHTMLSelect(eFrm,oPc.sCountrySelectName);elCountry.onchange=elCountry_onchange;}
if(oPc.sAnchirChangeSiteName&&oPc.sAnchirChangeSiteName.length>0)
{var elChangeSite=new EbayHTMLAnchor(eFrm,oPc.sAnchirChangeSiteName);elChangeSite.onclick=function()
{eFrm.getElement("MfcISAPICommand").value=oPc.sSiteChangeTargetType;var oMode=eFrm.getElement("mode");if(oMode)
oMode.value="0";eFrm.submit();return false;}}
new EbayHTMLTextRestricted(eFrm,"email");new EbayHTMLTextRestricted(eFrm,"retype_email");var c=ebay.oDocument.aConfigs['statecountryrel'];if(c)
{var sc=new EbayParentChildSel(eFrm,"statecountry",c);if(oPc.sCountryLinkName.length<=0)
{sc.childCntrl.onchange=elCountry_onchange;}}}
ebay.oDocument.oPage.onAfterLoad=function()
{var oD=ebay.oDocument;var oP=oD.oPage;var oPc=oP.oConfig;var eFrm=oP.controls["RegisterEnterInfo"];var elems=eFrm.getElements();for(var i=0;i<elems.length;i++)
{if(elems[i].type=="text")
{elems[i].focus();break;}}
var oCmd=eFrm.getElement("MfcISAPICommand");if(oCmd)
oCmd.value=oPc.sTargetType;var elCountry=this.controls["RegisterEnterInfo"].controls[oPc.sCountrySelectName];if(elCountry)
{var vAllCountries="1000",countryVal="";if(typeof(oPc.sAllCountriesVal)!='undefined')
vAllCountries=oPc.sAllCountriesVal;countryVal=elCountry.getSelectedValue();if(countryVal==vAllCountries)
elCountry.selectByIndex(0);}
var reicfg=oD.getConfig("reitracking");if(typeof(reicfg)!="undefined")
{with(reicfg)
{var im=new EbayHTMLImage(this,imageID,false);im.bind();var e,reielem;var sTracked="",sFunc="";for(var i=0;i<events.length;i++)
{e=events[i].split("=");reielem=eFrm.getElement(e[0]);if(reielem!=null&&reielem.value=="")
{sFunc='reielem.onchange = function ()';sFunc+='{';sFunc+=' if (!this.value.is("") && sTracked.indexOf(":'+e[1]+':")==-1)';sFunc+=' {';sFunc+='  var ord = (new Date()).getTime();';sFunc+='  im.source("'+command+'&'+eventID+'='+e[1]+'&ord=" + ord);';sFunc+='  sTracked += ":'+e[1]+':"';sFunc+=' }';sFunc+='};';eval(sFunc);}}}}}
function sendBusinessRegistration()
{for(var i=0,j=0;i<document.RegisterEnterInfo.elements.length;i++,j++)
{if((document.RegisterEnterInfo.elements[i].type!="radio")&&(document.RegisterEnterInfo.elements[i].type!="checkbox"))
{if(document.RegisterEnterInfo.elements[i].name!="bizflow")
{document.BusinessRegistration.elements[j].value=document.RegisterEnterInfo.elements[i].value;}
else
{j=j-1;}}
else if((document.RegisterEnterInfo.elements[i].type=="checkbox"))
{document.BusinessRegistration.elements[j].checked=document.RegisterEnterInfo.elements[i].checked;document.BusinessRegistration.elements[j].value=document.RegisterEnterInfo.elements[i].checked?1:0;}
else
{j=j-1;if(document.RegisterEnterInfo.elements[i].name!="BizFlow")
{if(document.RegisterEnterInfo.elements[i].checked==true)
{var el=document.createElement("input");el.setAttribute("type","hidden");el.setAttribute("name",document.RegisterEnterInfo.elements[i].name);el.setAttribute("value",document.RegisterEnterInfo.elements[i].value);document.forms.BusinessRegistration.appendChild(el);}}}
if(document.RegisterEnterInfo.elements[i].name=="MfcISAPICommand")
document.BusinessRegistration.elements[i].value="RegisterEnterInfo";if(document.RegisterEnterInfo.elements[i].name=="mode")
document.BusinessRegistration.elements[i].value="0";}
var bLog=document.BusinessRegistration.elements["buyerLogging"];if(bLog)bLog.value=(bLog.value=="0")?"1":"0";document.BusinessRegistration.submit();}

// \include\js\lib\_toolbox\_base\ebayPassword.js@@\main\3 

function EbayPassword(pEbayDoc,pParent,pHTMLDoc,pElementName,pAction,pUpdatePassword)
{if(!this.objType)
this.objType="EbayPassword";this.baseObject=EbayControl;this.baseObject(pEbayDoc,pParent,pHTMLDoc,pElementName);this.checkStrings=new Array();this.inputs=new Array();this.master=null;this.updated=false;this.seclevel=0;this.oldvalue="fasdklasdklasdklasdklasdklasdklasdkla";this.updatePassword=pUpdatePassword||false;var type=this.ebayDoc.getFormElem(this.name).type;if(type=="hidden")
this.updatePassword=false;else if(type=="password")
this.updatePassword=true;this.bindHTML=EbayBindHTMLPassword;this.bindEvents=EbayBindEventsPassword;this.onchange=pAction;if(type=="password")this.onkeyup=pAction;}
function EbayBindHTMLPassword()
{this.htmlElement=this.ebayDoc.getFormElem(this.htmlElementName);if(this.htmlElement)this.htmlElement.ebayControl=this;}
function EbayBindEventsPassword()
{if(this.onkeyup)
this.htmlElement.onkeyup=this.onkeyup;if(this.onchange)
this.htmlElement.onchange=this.onchange;if(this.onmouseout)
this.htmlElement.onmouseout=this.onmouseout;}

// \include\js\lib\features\registration\psv.js@@\main\11 

var psvPasswordElem="";var psvUserIdElem="";var psvFirstElem="";var psvLastElem="";var psvAddrElem="";var psvZipElem="";var psvCityElem="";var psvEmailElem="";var psvPhoneElem1="";var psvPhoneElem2="";var psvExtElem1="";var psvExtElem2="";var psvDayElem="";var psvMonElem="";var psvYearElem="";var psvMeterImage="";var security_level=new Array;var INVALID;var ebayDoc=null;var password=null;var userid=null;var firstname=null;var lastname=null;var addr=null;var city=null;var zip=null;var email=null;var birthyear=null;var birthmonth=null;var birthday=null;var phone1=null;var phone2=null;var ext1=null;var ext2=null;var psvOn;function psvLoadImages()
{if(typeof(iDir)=="undefined"||iDir.length==0)
{iDir="https://securepics.ebaystatic.com/aw/pics/"
if(typeof(country)!="undefined")
{if(country!="us")
iDir+=country+"/";}}
var imgDirName="pswdSecVal";if(iDir.indexOf(imgDirName)==-1)
{iDir+=imgDirName+"/";}
security_level[0]=new Image;security_level[1]=new Image;security_level[2]=new Image;security_level[3]=new Image;security_level[0].src=iDir+"empty_148x11.gif";security_level[1].src=iDir+"state1_148x11.gif";security_level[2].src=iDir+"state2_148x11.gif";security_level[3].src=iDir+"state3_148x11.gif";INVALID=security_level.length;security_level[INVALID]=new Image;security_level[INVALID].src=iDir+"invalid_148x11.gif";}
function psvOnLoad(){psvLoadImages()
if(!psvOn)
return;ebayDoc=new EbayDocument(window,"RegistrationPassword");firstname=SetUpControl(psvFirstElem,UpdateName);lastname=SetUpControl(psvLastElem,UpdateName);city=SetUpControl(psvCityElem,UpdateName);zip=SetUpControl(psvZipElem,UpdateSimple);ext1=SetUpControl(psvExtElem1,UpdateNumeric);ext2=SetUpControl(psvExtElem2,UpdateNumeric);addr=SetUpControl(psvAddrElem,UpdateAddr);userid=SetUpControl(psvUserIdElem,UpdateUserId);email=SetUpControl(psvEmailElem,UpdateEmail);phone1=SetUpPhone(psvPhoneElem1,UpdatePhone);phone2=SetUpPhone(psvPhoneElem2,UpdatePhone);SetUpBirthday();password=SetUpControl(psvPasswordElem,UpdatePassword);updateMeter(0);}
function SetUpControl(fieldName,action){var control=null;if(fieldName!=""&&ebayDoc.getFormElem(fieldName))
{control=new EbayPassword(ebayDoc,ebayDoc,ebayDoc.htmlDoc,fieldName,action,true);control.bindHTML();control.bindEvents();control.onchange();}
return control;}
function SetUpPhone(fieldName,action)
{var control=null;if(fieldName!="")
{var phones=new Array();var p=fieldName.split(/\|/);for(var i=0;i<p.length;i++)
if(ebayDoc.getFormElem(p[i]))
phones[phones.length]=p[i];var l=phones.length-1;if(l!=-1)
{p=new Array();for(var i=0;i<=l;i++)
{var j=l-i;p[j]=new EbayPassword(ebayDoc,ebayDoc,ebayDoc.htmlDoc,phones[i],action,true);p[j].bindHTML();p[j].bindEvents();p[l].inputs[j]=p[j];if(j!=l)
p[j].master=p[l];}
control=p[l];control.bindHTML();control.bindEvents();control.onchange();}}
return control;}
function SetUpBirthday()
{if((psvMonElem!=""&&ebayDoc.getFormElem(psvMonElem))&&(psvDayElem!=""&&ebayDoc.getFormElem(psvDayElem))&&(psvYearElem!=""&&ebayDoc.getFormElem(psvYearElem)))
{birthday=new EbayPassword(ebayDoc,ebayDoc,ebayDoc.htmlDoc,psvDayElem,UpdateBirthday,true);birthmonth=new EbayPassword(ebayDoc,ebayDoc,ebayDoc.htmlDoc,psvMonElem,UpdateBirthday,true);birthyear=new EbayPassword(ebayDoc,ebayDoc,ebayDoc.htmlDoc,psvYearElem,UpdateBirthday,true);birthday.bindHTML();birthday.bindEvents();birthmonth.bindHTML();birthmonth.bindEvents();birthyear.bindHTML();birthyear.bindEvents();birthday.onchange();}}
function updateMeter(pSecLevel){var img=document.images[psvMeterImage];if(typeof(img)!="undefined")
img.src=security_level[pSecLevel].src;}
function UpdateSimple()
{var c=this.ebayControl||this;var v=c.htmlElement.value;c.checkStrings=new Array;if(v!="")
{c.checkStrings[0]=v;c.checkStrings[1]=v.replace(/\s+/g,"");}
if(window.password!=null&&c.updatePassword)
password.onchange();}
function UpdateName()
{var c=this.ebayControl||this;var v=c.htmlElement.value;c.checkStrings=new Array;if(v!="")
{c.checkStrings[0]=v;c.checkStrings[1]=v.replace(/\s+/g,"");var a=v.split(/[\s-\.\,]+/);for(var i=0;i<a.length;i++)
{var s=a[i];if(s.length>=4)c.checkStrings[c.checkStrings.length]=s;for(var j=i-1;j>=0;j--)
{s+=a[j];if(s.length>=4)c.checkStrings[c.checkStrings.length]=s;}}}
if(window.password!=null&&c.updatePassword)
password.onchange();}
function UpdateNumeric()
{var c=this.ebayControl||this;var v=c.htmlElement.value;if(v=="")
c.checkStrings=new Array;else
{v=v.replace(/[^\d]/g,"");c.checkStrings[0]=v;}
if(window.password!=null&&c.updatePassword)
password.onchange();}
function UpdateUserId()
{var c=this.ebayControl||this;var v=c.htmlElement.value;if(v=="")
c.checkStrings=new Array;else
{c.checkStrings[0]=v;c.checkStrings[1]=Reverse(v);if(v.match(/\s+/))
{v=v.replace(/\s+/g,"");c.checkStrings[2]=v;c.checkStrings[3]=Reverse(v);}}
if(window.password!=null&&c.updatePassword)
password.onchange();}
function UpdateEmail()
{var c=this.ebayControl||this;var v=c.htmlElement.value;if(v=="")
c.checkStrings=new Array;else
{v=v.replace(/@.*$/g,"");c.checkStrings[0]=v;c.checkStrings[1]=Reverse(v);}
if(window.password!=null&&c.updatePassword)
password.onchange();}
function UpdateBirthday()
{var c=birthday;var m=birthmonth.htmlElement.value;if(m.match(/^\d$/))m="0"+m;var d=birthday.htmlElement.value;if(d.match(/^\d$/))d="0"+d;var y=birthyear.htmlElement.value;y=y.replace(/[^\d]/g,"");if(m.match(/\d\d/)&&d.match(/\d\d/))
c.checkStrings=new Array(m+d,d+m);else
c.checkStrings=new Array();if(y.match(/\d\d\d\d/))
c.checkStrings[c.checkStrings.length]=y;if(window.password!=null&&c.updatePassword)
password.onchange();}
function UpdatePhone()
{var c=null;if(this.ebayControl)
c=this.ebayControl.master||this.ebayControl;else
c=this.master||this;var a=new Array();c.checkStrings=new Array();for(var i=0;i<c.inputs.length;i++)
{var v=c.inputs[i].htmlElement.value;if(v!="")
a=a.concat(v.split(/[^\d]+/).reverse());}
for(var i=0;i<a.length;i++)
{var s=a[i];if(s.length>=4)c.checkStrings[c.checkStrings.length]=s;for(var j=i-1;j>=0;j--)
{s+=a[j];if(s.length>=4)c.checkStrings[c.checkStrings.length]=s;}}
if(window.password!=null&&c.updatePassword)
password.onchange();}
function UpdateAddr()
{var c=this.ebayControl||this;var v=c.htmlElement.value;c.checkStrings=new Array();if(v!="")
{c.checkStrings[c.checkStrings.length]=v;v=v.replace(/[\.,]/g,"");c.checkStrings[c.checkStrings.length]=v;c.checkStrings[c.checkStrings.length]=v.replace(/\s*\b\d+[a-z]?\b\s*/i,"");var num=v.replace(/[^\d]*/g,"");if(num.length>=4)c.checkStrings[c.checkStrings.length]=num;var a=v.split(/\s+/);var l=a.length;for(var i=0;i<l;i++)
{var s=a[i];if(s.length>=4)c.checkStrings[c.checkStrings.length]=s;for(var j=i+1;j<l;j++)
{s+=a[j];if(s.length>=4)c.checkStrings[c.checkStrings.length]=s;}}}
if(window.password!=null&&c.updatePassword)
password.onchange();}
function Reverse(s){var t="";for(var i=s.length-1;i>=0;i--)
t+=s.charAt(i);return t;}
function indexOfNoCase(s1,s2)
{return s1.toUpperCase().indexOf(s2.toUpperCase());}
function AllConsecutiveOrSame(s)
{var safe=s.replace(/([\*\\\/\.\?\{\}\:\$\^\[\]\(\)\,\+])/g,"\\$1");var re=new RegExp(safe,"i");var letters="abcdefghijklmnopqrstuvwxyz";var numbers="01234567890";if(letters.match(re)||numbers.match(re))
return true;var first=s.charAt(0);for(var i=1;i<s.length;i++)
if(s.charAt(i)!=first)return false;return true;}
function UpdatePassword()
{var c=this.ebayControl||this;var v=c.htmlElement.value;var seclevel=0;if(v!="")
{var invalidStrings=new Array("ebay","yabe");invalidStrings=invalidStrings.concat(email.checkStrings,userid.checkStrings);for(var i=0;i<invalidStrings.length;i++)
{if(indexOfNoCase(v,invalidStrings[i])!=-1)
{seclevel=INVALID;break;}}
if(seclevel!=INVALID)
{if(v.length<6)
seclevel=0;else
{seclevel=1;if(!AllConsecutiveOrSame(v))
{if(v.match(/[A-Z].*[A-Z]/i)&&v.match(/[^a-zA-Z\s].*[^a-zA-Z\s]/))
seclevel++;if(v.length>=8)
seclevel++;var infoStrings=new Array();if(ext1)
infoStrings=infoStrings.concat(ext1.checkStrings);if(ext2)
infoStrings=infoStrings.concat(ext2.checkStrings);if(birthday)
infoStrings=infoStrings.concat(birthday.checkStrings);if(phone1)
infoStrings=infoStrings.concat(phone1.checkStrings);if(phone2)
infoStrings=infoStrings.concat(phone2.checkStrings);if(firstname)
infoStrings=infoStrings.concat(firstname.checkStrings);if(lastname)
infoStrings=infoStrings.concat(lastname.checkStrings);if(addr)
infoStrings=infoStrings.concat(addr.checkStrings);if(city)
infoStrings=infoStrings.concat(city.checkStrings);if(zip)
infoStrings=infoStrings.concat(zip.checkStrings);for(var i=0;i<infoStrings.length;i++)
{if(indexOfNoCase(v,infoStrings[i])!=-1)
{seclevel--;break;}}}}}}
if(c.seclevel!=seclevel)
updateMeter(seclevel);c.seclevel=seclevel;}
function defaultRadio()
{if(ebay)
{var oD=ebay.oDocument;var oPc=oD.oPage.oConfig;var hUser=oD.getFormElem("user");var rdo=oD.getFormElem(oPc.sUserIdRadioElemName,"radio");if(hUser&&rdo)
{rdo[0].checked=true;if(hUser)
hUser.value=rdo[0].value;if(userid)
userid.onchange();}}}

// \include\js\popout\promo_popout_mediaplex.js@@\main\27 

var bPopUpWindow=true,winPopped=false;var platform=navigator.platform.toLowerCase();var surveyCookie="surveySays";var surveyValue="shown";var surveyTempPopupFile="popout/temp_survey_popup.html";function eBayIsIE4()
{var agent=navigator.userAgent.toLowerCase();var is_ie=(agent.indexOf("msie")!=-1);var minor=is_ie?parseFloat(agent.substring(agent.indexOf('msie')+5)):parseFloat(navigator.appVersion);var isie4=parseInt(minor)==4;return isie4;}
function setPopOutSwitch(bOnOrOff,myfunction)
{bPopUpWindow=bOnOrOff;}
function popupWindow(mypage,target,w,h,scroll,no,pLeft,pTop,params){if(target=="_self")
return false;LeftPosition=(screen.width)?(screen.width-w)/2:0;TopPosition=(screen.height)?(screen.height-h)/2:0;if(pLeft)
LeftPosition=pLeft;if(pTop)
TopPosition=pTop;settings='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable='+no+'';top.win=window.open(mypage,target,settings+","+params);winPopped=true;return false;}
function checkHome(){var valueOfCheckHome=false;var agt=navigator.userAgent.toLowerCase();var myopera=(agt.indexOf("opera")!=-1);if(eBayIsIE4())
{return false;}
if(!myopera&&platform.indexOf('mac')==-1&&typeof(oHomePage)!='undefined')
{valueOfCheckHome=eval('oHomePage.isHomePage("http://"+document.location.host+"/")');}
else
{valueOfCheckHome=false;}
return valueOfCheckHome;}
function findForms()
{var formsArray=document.forms;var i;var strFormSubmit="";for(i=0;i<formsArray.length;i++)
{strFormSubmit+='<SC'+'RIPT FOR=\"'+formsArray[i].name+'\" EVENT=\"onsubmit\" LANGUAGE=\"JavaScript\">';strFormSubmit+='setPopOutSwitch(false)\;';strFormSubmit+='<\/SC'+'RIPT>';}
document.write(strFormSubmit);}
function startCounterCookie(){var now="";var countscookie="";var countcookie="";now=new Date();Year=now.getUTCFullYear();Month=now.getMonth();Day=now.getDate();now=new Date(Year,Month,Day);now.setHours(now.getHours()+24);var x=new EbayDPCookie("dp1",null,null,"/",null,null,true);x.read();countcookie=x.getCookielet("count");if(!countcookie){countcookie=1;}else{countcookie=parseInt(countcookie)+1;}
x.addCookielet("count",countcookie,now);x.set();testIt();}
function popOutWindow(pURL,width,height,pSurvey,pSampleRate)
{if(typeof(width)=='undefined')
width='275';if(typeof(height)=='undefined')
width='375';var valueOfCounts=0;var valueOfCheckHome=false;var valueOfKeepMeSignIn=null;var valueOfEbaySignIn=null;if(!pSurvey)
{valueOfKeepMeSignIn=ReadCookie("keepmesignin");valueOfEbaySignIn=ReadCookie("ebaysignin");valueOfCheckHome=checkHome();var x=new EbayDPCookie("dp1",null,null,"/",null,null,true);x.read();testIt();valueOfCounts=x.getCookielet("count");;}
testIt();if(bPopUpWindow)
{if((valueOfCheckHome!=true)&&(valueOfCounts<2))
{if((valueOfEbaySignIn!="in")&(valueOfKeepMeSignIn!="in"))
{var notMac=((navigator.userAgent.toLowerCase()).indexOf("mac")==-1);if(pSurvey&&!winPopped&&notMac&&(ReadCookie(surveyCookie)!=surveyValue))
return showSurveyWindow(pURL,width,height,pSampleRate);else if(!pSurvey)
return popupWindow(pURL,'SureYouWantToLeave',width,height,'no','yes');}}}}
function showExitPollSurveyWindow(pURL,pWidth,pHeight)
{var chn=document.location.hostname;var host="http://pages"+chn.substr(chn.indexOf("."));host+="/";var sInd=host.indexOf(".stores.");if(sInd!=-1)
host=host.substring(0,sInd+1)+host.substring(sInd+8,host.length);pURL=host+surveyTempPopupFile+"?"+pURL;pURL+="&ep=&ts="+new String(new Date())+"&width=600&height=400";var pWin=popupWindow(pURL,'ebSurvey',600,400,'yes','yes','5000','5000');return pWin;}
function showSurveyWindow(pURL,pWidth,pHeight,pSampleRate)
{var rnd=Math.floor(Math.random()*10000);if((rnd%3)!=0)
return false;var reg=ReadCookie("reg");var etfc=ReadCookie("etfc");var uType="A";if(reg=="1")
{if(etfc=="1")
uType="C";else if(etfc=="2")
uType="D";else
uType="B";}
pURL+=uType;var chn=document.location.hostname;var host="http://pages"+chn.substr(chn.indexOf("."));host+="/";var sInd=host.indexOf(".stores.");if(sInd!=-1)
host=host.substring(0,sInd+1)+host.substring(sInd+8,host.length);pURL=host+surveyTempPopupFile+"?"+pURL;pURL+="&ts="+new String(new Date())+"&width=600&height=400";var pWin=popupWindow(pURL,'ebSurvey',600,400,'yes','yes','5000','5000');return pWin;}
function writeClickListener()
{var agt=navigator.userAgent.toLowerCase();var mymac=(agt.indexOf("mac")!=-1);var myopera=(agt.indexOf("opera")!=-1);if(platform.indexOf('mac')==-1&&!myopera)
{var string='';string+='<SCR'+'IPT FOR="document" EVENT="onmousedown()" LANGUAGE="JavaScript">';string+='var eventTag = window.event.srcElement.tagName.toLowerCase();';string+='if(eventTag == "a" || eventTag == "img" || eventTag == "area" || eventTag == "input")';string+='{';string+='setPopOutSwitch(false)\;';string+='}';string+='<\/SC'+'RIPT>';string+='<SCR'+'IPT FOR="document" EVENT="onkeypress()" LANGUAGE="JavaScript">';string+='var eventTag = window.event.srcElement.tagName.toLowerCase();';string+='if(eventTag == "input")';string+='{';string+='setPopOutSwitch(false)\;';string+='}';string+='<\/SC'+'RIPT>';document.write(string);}}
function eBayIsFramed()
{if(top==self)
{return false;}
else
{return true;}}
function eBayToolbarPluginDetect()
{var plugin=false;var mimetype="application/x-eBay-Toolbar-Plugin-Functions";var nsname="eBay Plugin Functions";if(typeof(navigator.mimeTypes)!='undefined'&&navigator.mimeTypes[mimetype]&&navigator.mimeTypes[mimetype].enabledPlugin)
{if(navigator.plugins)
plugin=true;}
else if(navigator.userAgent&&navigator.userAgent.indexOf("MSIE")>=0&&(navigator.userAgent.indexOf("Windows")>=0)){if(eBayIsIE4())
{return false;}
else if(typeof(IECheckClient)=="unknown")
{plugin=IECheckClient();}}
return plugin;}
if(eBayToolbarPluginDetect()){setPopOutSwitch(false,"toolbar");}
if(eBayIsFramed()){setPopOutSwitch(false,"framed");}
function testIt()
{}
var popWinLoaded=true;

// \include\js\help\openHelpWindow.js@@\main\26 

var cbc;var focusWin=((navigator.userAgent.toLowerCase().indexOf("msie")==-1)||(parseInt(navigator.appVersion)>=5));function openHelpWindow(pPath)
{document.location.href=pPath;return false;}
function openNonHelpWindow(pPath)
{var win=ebayShowPopupWindow(pPath,"third",400,620,1,1,1,1,1,1);if(focusWin)
win.focus();return false;}
function openContextualHelpWindow(pPath)
{if(!(is.mac&&is.ie))
{ebayDowngradeDomain();}
var w=440,h=500;var win=ebayShowPopupWindow(pPath,"helpwin",w,h,0,0,0,1,1,0,parseInt(screen.availWidth-450),"0");if((!win||win.closed)&&(typeof(ebHelpStrPopupBlocked)=="string"))
{if(typeof(ebay)!="undefined")
ebay.oDocument.messageBox(ebHelpStrPopupBlocked);else
alert(ebHelpStrPopupBlocked);}
return false;}
function openHelpWebTV(pPath)
{document.location.href=pPath;return false;}
if(navigator.appName.indexOf("WebTV")!=-1)
{window.openHelpWindow=window.openNonHelpWindow=window.openContextualHelpWindow=openHelpWebTV;}

// \include\js\help\help_contextual_rebranding.js@@\main\7 

function ebHelpContextualRebrand(pGuide,pFeature,pNoEscape)
{var hPath="/help/",hIndexPath=hPath+"index.html",hInd;var dl=document.links,url,pre,post;for(var i=dl.length-1;i>-1;i--)
{url=dl[i].href;hInd=url.indexOf(hIndexPath);if(hInd!=-1)
{pre=url.substring(0,url.lastIndexOf("/")+1);post=url.substring(url.lastIndexOf("/")+1);document.links[i].href=url=pre+pGuide+"/"+post;}
if(pFeature&&url.contains(hPath))
{hInd=url.indexOf(".html")+5;var preUrl=url.substring(0,hInd),postUrl=url.substr(hInd);post="fromFeature=";if(pNoEscape)
post+=pFeature;else
post+=escape(pFeature);post="?"+post;if(postUrl.charAt(0)=='?')
postUrl="&"+postUrl.substr(1);document.links[i].href=preUrl+post+postUrl;}}}

// \include\js\lib\_toolbox\_base\ebayClient.js@@\main\5 

function EBayClient()
{var agt=navigator.userAgent.toLowerCase();this.major=parseInt(navigator.appVersion);this.webTV=this.opera=this.nav=this.ie=this.safari=false;var vInd=0;if(agt.indexOf("webtv")!=-1)
{this.webTV=true;vInd=agt.indexOf("webtv/")+6;}
else if(agt.indexOf("safari")!=-1)
{this.safari=true;vInd=agt.lastIndexOf("safari")+7;}
else if(agt.indexOf("opera")!=-1)
{this.opera=true;vInd=agt.lastIndexOf("opera")+6;}
else if(navigator.appName.toLowerCase()=="netscape")
{this.nav=true;vInd=agt.lastIndexOf("/")+1;var tmp=parseInt(agt.substring(vInd));if(isNaN(tmp))
vInd=agt.lastIndexOf("netscape")+9;}
else if(agt.indexOf("msie")!=-1)
{this.ie=true;vInd=agt.indexOf("msie")+4;}
this.version=parseInt(agt.substring(vInd));this.win=(agt.indexOf("win")!=-1);this.mac=(agt.indexOf("mac")!=-1);this.macppc=(this.mac&&((agt.indexOf("ppc")!=-1)||(agt.indexOf("powerpc")!=-1)));this.isAXLoaded=EbayDetectActX;this.isAXSupported=EbaySupportActX;this.xpSp2=(agt.indexOf("sv1")!=-1);}
if(typeof(client)=="undefined")
var client=new EBayClient();if(typeof(is)=="undefined")
var is=new EBayClient();function EbaySupportActX()
{return this.isAXLoaded("Scripting.Dictionary");}
function EbayDetectActX(pActXName)
{if(!client.ie)
return false;var h='<scr'+'ipt language="JavaScript" type="text/JavaScript">';h+='var aX;';h+='</scr'+'ipt>';document.writeln(h+'<scr'+'ipt language="vbscript" type="text/vbscript">');document.writeln('on error resume next');document.writeln('aX = IsObject(CreateObject("'+pActXName+'"))');document.writeln('</scr'+'ipt>');if(typeof(aX)=="undefined"||!aX)
return false;else
return true;}

// \include\js\lib\_toolbox\_base\ebayPopup.js@@\main\4 

function EbayPopupWindow(pEbayDoc,pParent,pName)
{if(!this.objType)
this.objType="EbayPopupWindow";this.baseObject=EbayControl;this.baseObject(pEbayDoc,pParent,pEbayDoc.htmlDoc,pName);this.url="";this.width=null;this.height=null;this.left=null;this.top=null;this.toolbar=true;this.location=true;this.status=true;this.scrollbars=true;this.resizable=true;this.menubar=true;this.props="";this.customProps="";this.winObj=null;this.show=ebayShowPopup;this.showEx=ebayShowPopupEx;this.resizeParent=EbayPopupResizeParent;}
window.EbayPopupWindow=EbayPopupWindow;function ebayShowPopup()
{if(this.url.length==0)
return null;var sP="";if(this.width!=null)sP+=",width="+this.width;if(this.height!=null)sP+=",height="+this.height;if(this.left!=null)sP+=",screenX="+this.left+",left="+this.left;if(this.top!=null)sP+=",screenY="+this.top+",top="+this.top;sP+=",toolbar="+((this.toolbar)?"1":"0");sP+=",location="+((this.location)?"1":"0");sP+=",status="+((this.status)?"1":"0");sP+=",scrollbars="+((this.scrollbars)?"1":"0");sP+=",resizable="+((this.resizable)?"1":"0");sP+=",menubar="+((this.menubar)?"1":"0");if(this.customProps.length>0)
sP+=","+this.customProps;if(sP.length>0)sP=sP.substring(1);this.props=sP;var w=window.open(this.url,this.name,sP);if(w)
w.focus();this.winObj=w;return w;}
function ebayShowPopupEx(width,height,left,top,toolbar,location,status,scrollbars,resizable,menubar,customprops,url)
{if(url)
this.url=url;this.width=width;this.height=height;this.left=left;this.top=top;this.toolbar=toolbar;this.location=location;this.status=status;this.scrollbars=scrollbars;this.resizable=resizable;this.menubar=menubar;if(customprops)
this.customProps=customProps;return this.show();}
function EbayPopupResizeParent(pX,pY,pW,pH)
{var p=this.parent;if(p)
{if(!isNaN(pX)&&!isNaN(pY))
p.moveTo(pX,pY);if(!isNaN(pW)&&!isNaN(pH))
p.resizeTo(pW,pH);}}

// \include\js\lib\features\registration\common.js@@\main\4 

function toolboxOnLoad()
{var u="undefined";framesCheck();if(typeof(ITRegisterEnterInfoOnLoad)!=u)
ITRegisterEnterInfoOnLoad();if(typeof(initFocus)!=u)
initFocus();if(typeof(cnRegisterSellerVerificationOnload)!=u)
cnRegisterSellerVerificationOnload();if(typeof(psvOnLoad)!=u)
psvOnLoad();if(typeof(ebaySurveyMangerOnLoad)!=u)
ebaySurveyMangerOnLoad();if(typeof(ebayDoc)!=u&&ebayDoc!=null)
ebayDoc.onLoad();}
function toolboxOnUnload()
{if(typeof(ebaySurveyManagerOnUnload)!="undefined")
ebaySurveyManagerOnUnload();}
function framesCheck()
{var u="undefined";var p=pageName;if(typeof(p)==u)
return false;if(p.toLowerCase()!="pageregistersuccess")
return false;else
window.bustFrames();return true;}

// \include\js\lib\_toolbox\_base\ebaySurveyManagerConfig.js@@\main\2 

function EBaySurveyConfig(pName)
{if(!this.objType)
this.objType="EBaySurveyConfig";this.base=EBayConfig;this.base(pName);this.siteID="";this.partnerID="";this.entryPoint="";this.hiddenPopupFolderUrl="";this.disable=false;}
function EBaySurveyDataConfig(pName)
{if(!this.objType)
this.objType="EBaySurveyDataConfig";this.base=EBayConfig;this.base(pName);this.url="";this.pageName="";this.samplingRate=1;this.surveyType="POPUP";this.startDate="";this.expDate="";this.width=600;this.height=480;this.toolbar=false;this.location=false;this.status=false;this.scrollbars=true;this.resizable=true;this.menubar=false;}
function eBaySurveyDataConfig(pName,pUrl,pPageName)
{var temp=new EBaySurveyDataConfig(pName);temp.url=pUrl;temp.pageName=pPageName;return temp;}
function eBaySurveyDataConfigEx(pName,pUrl,pPageName,pSamplingRate,pSurveyType,pStartDate,pExpDate)
{var temp=new EBaySurveyDataConfig(pName);temp.url=pUrl;temp.pageName=pPageName;temp.samplingRate=pSamplingRate;temp.surveyType=pSurveyType;temp.startDate=pStartDate;temp.expDate=pExpDate;return temp;}

// \include\js\lib\_toolbox\_base\ebaySurveyManager.js@@\main\2 

function EbaySurveyManager(pEbayDoc,pParent,pHTMLDoc,pElementName,pSurveyManagerConfig,pSurveyDataConfig)
{if(!this.objType)
this.objType="EbaySurveyManager";this.baseObject=EbayControl;this.baseObject(pEbayDoc,pParent,pHTMLDoc,pElementName);this.config=pSurveyManagerConfig;this.data=pSurveyDataConfig||new Array(0);this.bindHTML=EbayBindSurvey;this.bindEvents=EbayBindEventsSurvey;this.onLoad=EbaySurveyManagerOnLoad;this.onUnload=EbaySurveyManagerOnUnload;this.popup=null;this.showPopup=true;this.determine=EbayDetermineSurvey;this.partialExceptionUrls=new Array(".sandbox.");this.partialReferrerUrls=new Array("google");this.pageSpecific=true;this.tokenValues=new Array();this.popupHtml="temp_survey_popup.html";this.isShown=EbayIsShownSurvey;this.replaceSurveyTokens=EbayReplaceTokensSurvey;this.isExceptionalUrl=EbayIsExceptionalUrlSurvey;this.isFromPartnerUrl=EbayIsFromPartnerUrlSurvey;this.isInSample=EbayIsInSampleSurvey;this.addSurveyDataConfig=EbayAddSurveyDataConfig;this.addSurveyDataConfigEx=EbayAddSurveyDataConfigEx;}
window.EbaySurveyManager=EbaySurveyManager;function EbayDetermineSurvey()
{var hiddenHtml;var temp;var configToShow=null;var today=new Date();temp=this.config.disable;if(temp)
{this.showPopup=false;return false;}
if(this.isFromPartnerUrl())
{this.showPopup=false;return false;}
if(this.isShown())
{this.showPopup=false;return false;}
temp=this.config.hiddenPopupFolderUrl;if(temp.length>0)
{if(this.isExceptionalUrl(temp))
{this.showPopup=false;return false;}}
hiddenHtml=temp+this.popupHtml;var t=this.data.length;if(this.pageSpecific)
{for(var i=0;i<t;i++)
{configToShow=this.data[i];temp=configToShow.pageName.toLowerCase();if(temp==pageName.toLowerCase())
break;else
configToShow=null;}}else
{if(t>0)
configToShow=this.data[0];}
if(!configToShow)
{this.showPopup=false;return false;}
temp=parseInt(configToShow.samplingRate,10);if(temp>0)
{if(!this.isInSample(temp))
{this.showPopup=false;return false;}}
temp=configToShow.surveyType;if(temp.length>0)
{if(temp!="POPUP")
{this.showPopup=false;return false;}}
temp=configToShow.startDate;if(temp.length>0)
{if(temp-today>0)
{this.showPopup=false;return false;}}
temp=configToShow.expDate;if(temp.length>0)
{if(temp-today<0)
{this.showPopup=false;return false;}}
this.popup=new EbayPopupWindow(this.ebayDoc,this.ebayDoc,"popup");with(this.popup)
{left=5000;top=5000;temp=configToShow.width;width=((temp)?temp:600);temp=configToShow.height;height=((temp)?temp:480);temp=configToShow.toolbar;toolbar=((temp)?temp:false);temp=configToShow.location;location=((temp)?temp:false);temp=configToShow.status;status=((temp)?temp:false);temp=configToShow.scrollbars;scrollbars=((temp)?temp:true);temp=configToShow.resizable;resizable=((temp)?temp:true);temp=configToShow.menubar;menubar=((temp)?temp:false);url=hiddenHtml+"?"+configToShow.url;this.replaceSurveyTokens();}
return true;}
function EbayBindSurvey()
{}
function EbayBindEventsSurvey()
{}
function EbaySurveyManagerOnLoad()
{this.determine();}
function EbaySurveyManagerOnUnload()
{if(this.showPopup)
{with(this.popup)
{url=url+"&ep=&ts="+new String(new Date())+"&width="+width+"&height="+height;show();}}}
function EbayIsInSampleSurvey(pSamplingRate)
{var max=pSamplingRate;var x=Math.round(Math.random()*(max-1));var y=x==(max-1);return y;}
function EbayIsExceptionalUrlSurvey(pUrl)
{var u="undefined";if(typeof(this.partialExceptionUrls.length)==u)
return false;for(var i=0;i<this.partialExceptionUrls.length;i++)
{if(pUrl.toLowerCase().indexOf(this.partialExceptionUrls[i].toLowerCase())!=-1)
return true;}
return false;}
function EbayIsFromPartnerUrlSurvey()
{var ref=window.document.referrer;var u="undefined";if(typeof(this.partialReferrerUrls.length)==u)
return false;for(var i=0;i<this.partialReferrerUrls.length;i++)
{if(ref.toLowerCase().indexOf(this.partialReferrerUrls[i].toLowerCase())!=-1)
return true;}
return false;}
function EbayReplaceTokensSurvey()
{var f="this.popup.url.toString().replaceTokens(";var c=this.tokenValues.length;for(var j=0;j<c;j++)
{f+="'"+this.tokenValues[j]+"'"
if(j!=c-1)
f+=","}
f+=");"
this.popup.url=eval(f);}
function EbayIsShownSurvey()
{var dpCookie=new EbayDPCookie("dp1",null,null,"/",null,null,true);dpCookie.read();var surveyShown=dpCookie.getCookielet("xSrvy");if(surveyShown=="y")
return true
return false;}
function EbayAddSurveyDataConfig(pName,pUrl,pPageName)
{this.data[this.data.length]=eBaySurveyDataConfig(pName,pUrl,pPageName);}
function EbayAddSurveyDataConfigEx(pName,pUrl,pPageName,pSamplingRate,pSurveyType,pStartDate,pExpDate)
{this.data[this.data.length]=eBaySurveyDataConfigEx(pName,pUrl,pPageName,pSamplingRate,pSurveyType,pStartDate,pExpDate);}

// \include\us\js\lib\features\surveys\exitsurveysconfig.js@@\main\2 
<!--
var gSurveys=new Array(0);function addSurvey(pUrl,pPageName)
{var count=gSurveys.length;var s=new EBaySurveyDataConfig(count);s.url=pUrl;s.pageName=pPageName;gSurveys[count]=s;}
addSurvey("https://www.insightexpress.com/s/USBR77933?ENTRYPOINT=<#1#>&PARTNERID=<#2#>&ENTERFROM=PageRegisterEnterInfo","PageRegisterEnterInfo");addSurvey("https://www.insightexpress.com/s/USBR77933?ENTRYPOINT=<#1#>&PARTNERID=<#2#>&ENTERFROM=PageRegisterEnterInfoError","PageRegisterEnterInfoError");addSurvey("https://www.insightexpress.com/s/USBR77934?ENTRYPOINT=<#1#>&PARTNERID=<#2#>&ENTERFROM=PageRegisterChooseUserID","PageRegisterChooseUserID");addSurvey("https://www.insightexpress.com/s/USBR77934?ENTRYPOINT=<#1#>&PARTNERID=<#2#>&ENTERFROM=PageRegisterChooseUserIDPasswordError","PageRegisterChooseUserIDPasswordError");addSurvey("https://www.insightexpress.com/s/USBR77934?ENTRYPOINT=<#1#>&PARTNERID=<#2#>&ENTERFROM=PageRegisterUserIDTaken","PageRegisterUserIDTaken");addSurvey("https://www.insightexpress.com/s/USBR77934?ENTRYPOINT=<#1#>&PARTNERID=<#2#>&ENTERFROM=PageRegisterUserIDReco","PageRegisterUserIDReco");addSurvey("https://www.insightexpress.com/s/USBR77935?ENTRYPOINT=<#1#>&PARTNERID=<#2#>&ENTERFROM=RegisterEnterChangeCountry","RegisterEnterChangeCountry");addSurvey("https://www.insightexpress.com/s/USBR77935?ENTRYPOINT=<#1#>&PARTNERID=<#2#>&ENTERFROM=RegisterEnterChangeCountryError","RegisterEnterChangeCountryError");addSurvey("https://www.insightexpress.com/s/USBR77935?ENTRYPOINT=<#1#>&PARTNERID=<#2#>&ENTERFROM=PageRegisterEnterChangeCountry","PageRegisterEnterChangeCountry");addSurvey("https://www.insightexpress.com/s/USBR77935?ENTRYPOINT=<#1#>&PARTNERID=<#2#>&ENTERFROM=PageRegisterEnterChangeCountryError","PageRegisterEnterChangeCountryError");addSurvey("https://www.insightexpress.com/s/USBR77936?ENTRYPOINT=<#1#>&PARTNERID=<#2#>&ENTERFROM=PageRegisterVerify","PageRegisterVerify");addSurvey("https://www.insightexpress.com/s/USBR77936?ENTRYPOINT=<#1#>&PARTNERID=<#2#>&ENTERFROM=PageRegisterVerifyError","PageRegisterVerifyError");addSurvey("https://www.insightexpress.com/s/USBR77936?ENTRYPOINT=<#1#>&PARTNERID=<#2#>&ENTERFROM=PageRegisterVerifyPSU","PageRegisterVerifyPSU");addSurvey("https://www.insightexpress.com/s/USBR77938?ENTRYPOINT=<#1#>&PARTNERID=<#2#>&ENTERFROM=PageRegisterChangeEmail","PageRegisterChangeEmail");addSurvey("https://www.insightexpress.com/s/USBR77938?ENTRYPOINT=<#1#>&PARTNERID=<#2#>&ENTERFROM=PageRegisterChangeEmailError","PageRegisterChangeEmailError");addSurvey("https://www.insightexpress.com/s/USBR77938?ENTRYPOINT=<#1#>&PARTNERID=<#2#>&ENTERFROM=PageRegisterChangeEmail2","PageRegisterChangeEmail2");

// \include\js\lib\features\surveys\exitsurveys.js@@\main\7 

var ebayDoc;var surveyManager;function ebaySurveyMangerOnLoad()
{var u="undefined";if(typeof(surveyConfig)==u)
return false;if(surveyConfig.disable)
return false;if(typeof(ebayDoc)==u||ebayDoc==null)
ebayDoc=new EbayDocument(window,"SurveyMangerDoc");var c=new EBayClient();if(c.mac||c.nav||c.xpSp2)
return false;surveyManager=new EbaySurveyManager(ebayDoc,ebayDoc,document,"surveyManager",surveyConfig,gSurveys);surveyManager.tokenValues=new Array(surveyConfig.entryPoint,surveyConfig.partnerID);surveyManager.onLoad();}
function ebaySurveyManagerOnUnload()
{var u="undefined";if(typeof(surveyConfig)==u)
return false;if(surveyConfig.disable)
return false;if(surveyManager)
surveyManager.onUnload();}

// \include\lib\_global\_ui\_ex\parent_child_selector.js@@\main\2 

function EbayParentChildSel(pParent,pName,pCfg)
{if(!this.objType)
this.objType="EbayParentChildSel";this.baseObject=EbayBaseControl;this.baseObject(pParent,pName);this.oConfig=pCfg?pCfg:null;this.parentCntrl=null;this.childCntrl=null;this.init=function()
{var c=this.oConfig;this.parentCntrl=new EbayHTMLSelect(this,c.parentCntrlId,false,c);this.parentCntrl._registerEvent("onchange","ebParentChildSelChangeChild");this.childCntrl=new EbayHTMLSelect(this,c.childCntrlId,false,c);}
this.init();}
function ebParentChildSelChangeChild()
{var a=this.oConfig.relationSets.parseSets();var c;var s=this.getSelectedValue();for(var i in a)
{c=a[i];for(var j=0;j<c.length;j++)
{if(s==c[j])
{var cntrl=this.parent.childCntrl;if(cntrl.getSelectedValue()!=i)
{cntrl.selectByValue(i);cntrl.eElem.onchange();}}}}}
function EbayParentChildSelConfig(name)
{if(!this.objType)
this.objType="EbayParentChildSelConfig";this.base=EbayConfig;this.base(name);this.parentCntrlId="";this.childCntrlId="";this.relationSets="";}
//-->