//<!--
//1@@m21

function EbayHTMLSelect(pParent,pName,pDisabled,pCfg)
{if(!this.objType)
this.objType="EbayHTMLSelect";this.base=EbayHTMLFormElem;this.base(pParent,pName,pDisabled,pCfg);this.iSelIndex=-1;this.createOption=ebHTMLSelectCreateOption;this.clearOptions=ebHTMLSelectClearOptions;this.getValueByIndex=ebHTMLSelectGetValueByIndex;this.getSelectedIndex=ebHTMLSelectGetSelectedIndex;this.getSelectedValue=ebHTMLSelectGetSelectedValue;this.getSelectedText=ebHTMLSelectGetSelectedText;this.getOptionsLength=ebHTMLSelectGetOptionsLength;this.setOption=ebHTMLSelectSetOption;this.insertOption=ebHTMLSelectInsertOption;this.deleteOption=ebHTMLSelectDeleteOption;this.selectByIndex=ebHTMLSelectSelectByIndex;this.selectByValue=ebHTMLSelectSelectByValue;this.selectByText=ebHTMLSelectSelectByText;this.doSelect=ebHTMLSelectDoSelect;this.getIndexByValue=ebHTMLSelectGetIndexByValue;this.getValue=this.getSelectedValue;this.setValue=this.selectByValue;this.subscribeEvents("onchange");}
function ebHTMLSelectClearOptions()
{var e=this.eElem;if(e)
{var opts=e.options;while(opts.length>0)
opts[opts.length-1]=null;}}
function ebHTMLSelectCreateOption(pName,pText)
{if(this.eElem)
{var nOpt=new Option(pText,pName,false,false),opts,lo,oC=ebay.oGlobals.oClient;opts=this.eElem.options;opts[opts.length]=nOpt;idx=opts.length-1;return idx;}}
function ebHTMLSelectGetValueByIndex(pIdx,pTextOnly)
{if(pIdx>-1)
{opt=this.eElem.options[pIdx];if(opt)
return pTextOnly?opt.text:opt.value;}
this.throwError("Invalid index","get");return"";}
function ebHTMLSelectGetSelectedIndex()
{return this.eElem.selectedIndex;}
function ebHTMLSelectGetSelectedValue()
{return this.getValueByIndex(this.eElem.selectedIndex);}
function ebHTMLSelectGetSelectedText()
{return this.getValueByIndex(this.eElem.selectedIndex,true);}
function ebHTMLSelectGetOptionsLength()
{return this.eElem.options.length;}
function ebHTMLSelectSelectByIndex(pIndex)
{this.eElem.selectedIndex=this.iSelIndex=pIndex;}
function ebHTMLSelectDoSelect(pVal,pIsText)
{if(this.eElem)
{var e=this.eElem,o,rv=false,opts=e.options,len=opts.length;for(var i=0;i<len&&!rv;i++)
{o=opts[i];if(((pIsText||(o.value==""))&&(pVal==o.text))||(!pIsText&&(o.value==pVal)))
{e.selectedIndex=this.iSelIndex=i;rv=true;}}}
else
this.throwWarning("HTML element '"+this.name+"' not found","selectByValue");return rv;}
function ebHTMLSelectSelectByValue(pVal)
{return this.doSelect(pVal);}
function ebHTMLSelectSelectByText(pVal)
{return this.doSelect(pVal,true);}
function ebHTMLSelectSetOption(pVal,pText,pInd)
{if(this.eElem)
{if((pInd!=null)&&(pInd>-1))
{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;}}
function ebHTMLSelectGetIndexByValue(pVal,pIsText)
{var opts=this.eElem.options,len=opts.length,i=0;for(;i<len;i++)
{o=opts[i];if((o.value==pVal)||(pIsText&&(o.text==pVal)))
return i;}
return-1;}

//2@@m6

function EbayHTMLForm(pParent,pName,pCfg)
{if(!this.objType)
this.objType="EbayHTMLForm";this.base=EbayHTML;this.base(pParent,pName,pName,false,pCfg);this.getElem=function(){return this.getDocElem(arguments[0],'forms');};this.enable=function(){};this.getElementValue=ebHTMLFormGetElementValue;this.setElementValue=ebHTMLFormSetElementValue;this.getElements=ebHTMLFormGetElements;this.getElement=ebHTMLFormGetElement;this.setAction=ebHTMLFormSetAction;this.getAction=ebHTMLFormGetAction;this.setTarget=ebHTMLFormSetTarget;this.getTarget=ebHTMLFormGetTarget;this.submit=ebHTMLFormSubmit;this.clear=ebHTMLFormClear;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(),elem=elems[pName];if(elem)
{if(elem.length)
{for(var i=0,len=elem.length;i<len;i++)
elem[i].value=pValue;}
else
elem.value=pValue;}}
function ebHTMLFormSetAction(pAction)
{var e=this.eElem;if(e)
e.action=pAction;}
function ebHTMLFormGetAction()
{var e=this.eElem;if(e)
return e.action;}
function ebHTMLFormSetTarget(pTarget)
{var e=this.eElem;if(e)
e.target=pTarget;}
function ebHTMLFormGetTarget()
{var e=this.eElem;if(e)
return e.target;}
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");}
function ebHTMLFormClear()
{var elems=this.getElements();for(i=0;i<elems.length;i++)
{var elem=elems[i];var type=elem.type;switch(type)
{case"text":case"textarea":elem.value="";break;case"checkbox":elem.checked=false;break;case"select-one":elem.selectedIndex=0;}}}

//3@@m11

function EbayHTMLText(pParent,pName,pDisabled,pCfg,bHidden)
{if(!this.objType)
this.objType="EbayHTMLText";this.base=EbayHTMLFormElem;this.base(pParent,pName,pDisabled,pCfg);this.value=ebHTMLTextValue;this.getValue=ebHTMLTextGetValue;this.setValue=ebHTMLTextSetValue;this.select=ebHTMLTextSelect;this.enableBase=this.enable;this.enable=ebHTMLTextEnable;if(bHidden!=true)
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;}}
function ebHTMLTextGetValue()
{return this.value();}
function ebHTMLTextSetValue(pVal)
{return this.value(pVal);}
function ebHTMLTextSelect()
{var e=this.eElem;if(e)
e.select();}
function ebHTMLTextEnable(pEnable)
{this.enableBase(pEnable);this.setStyle('backgroundColor',!pEnable?'#ccc':'#fff');}

//4@@m6

function EbayHTMLButton(pParent,pElemName,pDisabled,pCfg)
{if(!this.objType)
this.objType="EbayHTMLButton";this.base=EbayHTMLFormElem;this.base(pParent,pElemName,pDisabled,pCfg);this.getValue=ebHTMLButtonGetValue;this.setValue=ebHTMLButtonSetValue;this.enableBase=this.enable
this.enable=ebHTMLButtonEnable;this.subscribeEvents("onclick");}
function ebHTMLButtonGetValue()
{return this.eElem.value;}
function ebHTMLButtonSetValue(pValue)
{var e=this.eElem;if(e)
e.value=pValue;}
function ebHTMLButtonEnable(pEnable,pYukonize)
{if(typeof(pYukonize)!=='undefined'&&pYukonize)
{var e=this.eElem;e.style.opacity=!pEnable?".5":"";e.style.filter=!pEnable?"alpha(opacity=50)":"";this.bBtnDisabled=!pEnable;}
else
this.enableBase(pEnable);}

//5@@m3

function EbayHTMLElementHierarchy(pParent,pName,pConfig)
{if(!this.objType)
this.objType="EbayHTMLElementHierarchy";this.base=EbayBaseControl;this.base(pParent,pName);this.oConfig=pConfig;this.aElems=[];this.initControl=ebHTMLElementHierarchyInitControl;this.init=ebHTMLElementHierarchyInitControl;this.initData=ebHTMLElementHierarchyInitData;this.update=ebHTMLElementHierarchyUpdate;this.init();}
function ebHTMLElementHierarchyInitControl()
{with(this)
{var elems=oConfig.aElems;var len=elems.length;var oP=this;for(var i=0;i<len;i++)
{var elem=new EbayHTMLSelect(oP,elems[i]);elem.bind();elem.onchange=this.update;elem.update=this.update;oP.child=elem;oP=elem;}
initData();}}
function ebHTMLElementHierarchyInitData()
{with(this)
{oData=oConfig.aTopicStruct;child.oData=oData;for(var elem in oData)
child.createOption(elem,elem);var url=new EbayDataURL(document.location.href);var index=url.getArg("select");if(typeof(index)=="undefined"&&this.oDocument.oPage.iItemID)
{index="4";}
if(typeof(index)!="undefined")
{if(index.indexOf(",")!=-1)
{var indexies=index.split(",");var elem=child;for(var i in indexies)
{elem.selectByIndex(indexies[i]-1);elem.update();elem=elem.child;}
oDocument.oPage.continuebtn.enable(true);}
else
{child.selectByIndex(index-1);child.update();}}}}
function ebHTMLElementHierarchyUpdate()
{with(this)
{if(typeof(child)!="undefined")
{ebay.oDocument.oPage.oLastSelected=child;ebay.oDocument.oPage.clearAll(child);child.oData=this.oData[this.getSelectedText()];for(var elem in child.oData)
child.createOption(child.oData[elem],elem);}}}

//6@@m9

function EbayDataURL(pURL)
{if(!this.objType)
this.objType="EbayDataURL";this.full=null;this.base=null;this.arguments=null;this.protocol="http";this.host=null;this.port=null;this.path="/";this.path_filename="/";this.filename=null;this.args=[];this.invalid_url=false;this.base_arg_del_index=null;this.base_arg_delimiter="?";this.key_value_delimiter="=";this.arg_delimiter="&";this.host_port_delimiter=":";this.protocol_host_delimiter="://";this.invalid_chars=["*","\"","\'","<",">","|"];this.init=ebDataURLInit;this.getArg=ebDataURLGetArg;this.addArg=ebDataURLAddArg;this.getURL=ebDataURLGetURL;this.parseArgs=ebDataURLParseArgs;this.hasArg=ebDataURLHasArg;this.init(pURL);}
function ebDataURLInit(pURL)
{with(this)
{full=base=pURL;base_arg_del_index=pURL.indexOf(base_arg_delimiter);if(base_arg_del_index!=-1)
{arguments=pURL.substring(base_arg_del_index+1);parseArgs(arguments);base=pURL.substring(0,base_arg_del_index);}
if(invalid_chars)
{for(var i in invalid_chars)
{if(base.indexOf(invalid_chars[i])!=-1)
{invalid_url=true;full=null
base=null;arguments=null;return false;}}}
var host_start=0;var host_end=base.length;if(base.indexOf("/")!=-1&&base.charAt(base.indexOf("/")+1)=="/")
{host_start=base.indexOf("/")+2;host_end=host_start+base.substring(host_start).indexOf("/");}
else
{host_start=0;if(base.indexOf("/")!=-1)
host_end=base.indexOf("/");}
host=base.substring(host_start,host_end);if(base.indexOf(host_port_delimiter)!=-1)
protocol=base.substring(0,base.indexOf(host_port_delimiter));var port_start=host.indexOf(":")
if(port_start!=-1)
{port=host.substring(port_start+1);host=host.substring(0,port_start);}
path_filename=base.substring(host_end);if(path_filename.indexOf(".")!=-1)
{path=path_filename.substring(0,path_filename.lastIndexOf("/"));filename=path_filename.substring(path_filename.lastIndexOf("/")+1);}
else
{if(path_filename.lastIndexOf("/")==path_filename.length-1)
path=path_filename.substring(0,path_filename.length-1);else
path=path_filename;}}}
function ebDataURLGetArg(pArgName)
{var tmp_array=[];for(var i=0;i<this.args.length;i++)
{if(this.args[i][0]==pArgName)
tmp_array[tmp_array.length]=this.args[i];}
if(tmp_array.length<1)
return;else if(tmp_array.length==1)
return tmp_array[0][1];else
return tmp_array;}
function ebDataURLAddArg(pArgName,pArgValue)
{this.args[this.args.length]=[pArgName,pArgValue];}
function ebDataURLHasArg(pArgName)
{return typeof(this.getArg(pArgName))!="undefined";}
function ebDataURLGetURL()
{with(this)
{if(!host)
return null;var url=arg_str="";for(var i=0;i<args.length;i++)
{if(arg_str!="")
arg_str+=arg_delimiter;if(args[i][1]=="")
arg_str+=args[i][0];else
arg_str+=args[i][0]+key_value_delimiter+args[i][1];}
if(protocol)
url+=protocol+protocol_host_delimiter;if(host)
url+=host;if(port)
url+=host_port_delimiter+port;if(path)
url+=path;if(filename)
url+="/"+filename;if(arg_str!="")
url+=base_arg_delimiter+arg_str;return url;}}
function ebDataURLParseArgs(pArgs)
{with(this)
{var new_args=new Array();while(pArgs.indexOf(arg_delimiter)!=-1)
{var outterdel=pArgs.indexOf(arg_delimiter);var innerdel=pArgs.indexOf(key_value_delimiter);if(outterdel>innerdel)
{var key=pArgs.substring(0,innerdel);var value=pArgs.substring(innerdel+1,outterdel);if(key!="")
{if(key.indexOf('amp;')==0)
key=key.replace('amp;','');addArg(key,value);}}
else
{var key=pArgs.substring(0,outterdel);if(key!="")
{if(key.indexOf('amp;')==0)
key=key.replace('amp;','');addArg(key,"");}}
pArgs=pArgs.substring(outterdel+1);}
if(pArgs!="")
{var innerdel=pArgs.indexOf(key_value_delimiter);if(innerdel==-1)
{addArg(pArgs,"");}
else
{var key=pArgs.substring(0,innerdel);var value=pArgs.substring(innerdel+1);if(key!="")
{addArg(key,value);new_args[key]=value;}
pArgs="";}}}}

//7@@m6

ebay.oDocument.oPage.onBeforeLoad=function()
{var oCfg=this.oPageConfig=this.oDocument.getConfig("help.contact_us");this.oForm=new EbayHTMLForm(this,"contactForm");this.oItem=new EbayHTMLText(this,"item");this.oDstURL=new EbayHTMLText(this,"dsturl");var oContBtn=this.continuebtn=new EbayHTMLButton(this,oCfg.sContinueElemName,true);oContBtn.bind();oContBtn.onclick=function()
{this.parent.submitCUIAForm();}
new EbayHTMLElementHierarchy(this,"topic_elements",oCfg);this.oTopic3=new EbayHTMLSelect(this,oCfg.aElems[oCfg.aElems.length-1]);this.oTopic3.onchange=function()
{this.parent.continuebtn.enable(true);}}
ebay.oDocument.oPage.submitCUIAForm=function()
{var oCfg=this.oPageConfig;this.oForm.setAction(oCfg.sBaseUrl+this.oLastSelected.getSelectedValue()+oCfg.sBaseUrlExt);this.oItem.setValue(new EbayDataURL(this.oGlobals.oEnvironment.sThisPage).getArg("item"));this.oDstURL.setValue(this.oGlobals.oEnvironment.sCaseSensiLastPage);this.oForm.submit();}
ebay.oDocument.oPage.clearAll=function(pChild)
{pChild.clearOptions();if(pChild.child)
this.clearAll(pChild.child);this.continuebtn.enable(false);}
// b=10597871 -->