//<!--
//\include\js\help\contact\contact_us_objects.js@@\main\4

top.wfObjs=new Array();function EBayWFTopObject(pName)
{if(!this.objType)
this.objType="EBayWFTopObject";this.name=pName;this.children=new Array();this.addChild=wfTopObjAddChild;}
function wfTopObjAddChild(pName,pWFType,pRCode,pCW,pCP,pCC,pACT,pACURL,pWFInst,pExpDate)
{this.children[this.children.length]=new EBayWFParentObject(this,pName,pWFType,pRCode,pCW,pCP,pCC,pACT,pACURL,pWFInst,pExpDate);return this.children[this.children.length-1];}
function addWFObj(pName)
{top.wfObjs[top.wfObjs.length]=new EBayWFTopObject(pName);return top.wfObjs[top.wfObjs.length-1];}
function EBayWFParentObject(pParent,pName,pWFType,pRCode,pCW,pCP,pCC,pACT,pACURL,pWFInst,pExpDate)
{if(!this.objType)
this.objType="EBayWFParentObject";this.name=pName;this.parent=pParent;this.children=new Array();this.webformType=pWFType;this.routingCode=pRCode;this.contactWebform=pCW;this.contactPhone=pCP;this.contactChat=pCC;this.contactACText=pACT;this.contactACURL=pACURL;this.wfInstructions=pWFInst;this.expDate=pExpDate;this.addChild=wfParentObjAddChild;}
function wfParentObjAddChild(pTitle,pURL)
{if((pTitle!="")&&(pURL!=""))
{this.children[this.children.length]=new EBayWFChildObject(this,pTitle,pURL);return this.children[this.children.length-1];}
return null;}
function EBayWFChildObject(pParent,pTitle,pURL)
{if(!this.objType)
this.objType="EBayWFChildObject";this.parent=pParent;this.title=pTitle;this.url=pURL;}
function createOptionIE(pName,pText)
{var newOption=document.createElement("OPTION");newOption.value=pName;newOption.text=pText;this.htmlElement.add(newOption);}
function createOptionNS(pName,pText)
{var newOption=new Option(pText,pName,false,false);this.htmlElement.options[this.htmlElement.options.length]=newOption;newOption=new Option(pText,pName,false,false);newOption.selected=false;this.htmlElement.options[this.htmlElement.options.length-1]=newOption;}
if(is.ie)
window.createOption=createOptionIE;else
window.createOption=createOptionNS;function clearOptions()
{for(var i=this.htmlElement.options.length-1;i>=0;i--)
this.htmlElement.options[i]=null;}
function EBayWFSelectObject(pElem)
{this.htmlElement=pElem;this.clearOptions=clearOptions;this.createOption=createOption;}
// -->
