
if(document.getElementById){var upLevel=true;}
else if(document.layers){var ns4=true;document.getElementById=function(){return null;}}
else if(document.all){var ie4=true;document.getElementById=function(){return null;}}
var agt=navigator.userAgent.toLowerCase();var is_major=parseInt(navigator.appVersion);var is_minor=parseFloat(navigator.appVersion);var is_safari=(agt.indexOf("safari")!=-1);var is_nav=((agt.indexOf('mozilla')!=-1)&&(agt.indexOf('spoofer')==-1)&&(agt.indexOf('compatible')==-1)&&(agt.indexOf('opera')==-1)&&(agt.indexOf('webtv')==-1)&&(agt.indexOf('hotjava')==-1)&&(!is_safari));var is_nav2=(is_nav&&(is_major==2));var is_nav3=(is_nav&&(is_major==3));var is_nav4=(is_nav&&(is_major==4));var is_nav4up=(is_nav&&(is_major>=4));var is_navonly=(is_nav&&((agt.indexOf(";nav")!=-1)||(agt.indexOf("; nav")!=-1)));var is_nav6=(is_nav&&(is_major==5));var is_nav6up=(is_nav&&(is_major>=5));var is_gecko=(agt.indexOf('gecko')!=-1);var is_ie=((agt.indexOf("msie")!=-1)&&(agt.indexOf("opera")==-1)&&(!is_safari));var is_ie3=(is_ie&&(is_major<4));var is_ie4=(is_ie&&(is_major==4)&&(agt.indexOf("msie 4")!=-1));var is_ie4up=(is_ie&&(is_major>=4));var is_ie5=(is_ie&&(is_major==4)&&(agt.indexOf("msie 5.0")!=-1));var is_ie5_5=(is_ie&&(is_major==4)&&(agt.indexOf("msie 5.5")!=-1));var is_ie5up=(is_ie&&!is_ie3&&!is_ie4);var is_ie5_5up=(is_ie&&!is_ie3&&!is_ie4&&!is_ie5);var is_ie6=(is_ie&&(is_major==4)&&(agt.indexOf("msie 6.")!=-1));var is_ie6up=(is_ie&&!is_ie3&&!is_ie4&&!is_ie5&&!is_ie5_5);var is_opera=(agt.indexOf("opera")!=-1);var is_mac=(agt.indexOf("mac")!=-1);var is_iemac=(is_ie&&is_mac);function FirefoxTwoCompatibility(){var ffv=0;var ffn="Firefox/"
var ffp=navigator.userAgent.indexOf(ffn);if(ffp!=-1)ffv=parseFloat(navigator.userAgent.substring(ffp+ffn.length));if(ffv>=1.5){Msn.Drawing.Graphic.CreateGraphic=function(f,b){return new Msn.Drawing.SVGGraphic(f,b)}}}
function getObject(ID){if(upLevel){var obj=document.getElementById(ID);}
else if(obj){var obj=eval('document.'+ID);}
else if(obj){var obj=eval('document.all.'+ID);}
return obj}
function hideObject(ID){var obj=getObject(ID);if(obj!=null)
{if(ns4){obj.visibility="hide";}
if(ie4||upLevel){obj.style.visibility="hidden";}}}
function removeObject(ID){var obj=getObject(ID);if(obj!=null)
{if(ns4){obj.display="none";}
if(ie4||upLevel){obj.style.display="none";}}}
function restoreObject(ID){var obj=getObject(ID);if(obj!=null)
{if(ns4){obj.display="block";}
if(ie4||upLevel){obj.style.display="block";}}}
function showObject(ID){var obj=getObject(ID);if(obj!=null)
{if(ns4){obj.visibility="show";}
if(ie4||upLevel){obj.style.visibility="visible";}}}
function toggleDivDisplay(ID)
{var div=getObject(ID);if(div!=null)
{if(ns4){if(div.display=='none')
restoreObject(div.id);else
removeObject(div.id);}
if(ie4||upLevel){if(div.style.display=='none')
restoreObject(div.id);else
removeObject(div.id);}}}
function displayTwoTableRow(idOne,idTwo)
{var divOne=getObject(idOne);var divTwo=getObject(idTwo);if(divOne!=null)
{if(ns4){if(divOne.display=='none'||divTwo.display=='none')
{restoreObject(divOne.id);restoreObject(divTwo.id);}}
if(ie4||upLevel){if(divOne.style.display=='none'||divTwo.display=='none')
{restoreObject(divOne.id);restoreObject(divTwo.id);}}}}
function fillListItems(ID,listItems)
{var list=getObject(ID);emptyList(ID);for(var k=0;k<listItems.length;k++)
{var item=listItems[k];list[k]=new Option(leftTrim(item.Text),item.Value);}}
function fillListItemsAndSelect(ID,listItems,selectedValue)
{var list=getObject(ID);emptyList(ID);for(var k=0;k<listItems.length;k++)
{var item=listItems[k];list[k]=new Option(leftTrim(item.Text),item.Value);list[k].selected=(item.Value==selectedValue);}}
function fillListItems_LeaveFirst(list,listItems)
{var tempOption=list[0];emptyList(list.id);list[0]=tempOption;for(var k=1;k<=listItems.length;k++)
{var item=listItems[k-1];if(item.Text)
{list[k]=new Option(leftTrim(item.Text),item.Value);}
else
{list[k]=new Option(leftTrim(item),item.Value);}}}
function selectFromList(list,value)
{var listItem
for(i=0;i<list.length;i++)
{list.options[i].selected=(list.options[i].value==value);}}
function emptyList(ID)
{var list=getObject(ID);for(x=list.length;x>=0;x=x-1){list[x]=null;}}
function leftTrim(sString)
{if(sString)
{while(sString.substring(0,1)==' ')
{sString=sString.substring(1,sString.length);}}
return sString;}
function enterSubmit(control,validate){var tmp;var agt=navigator.userAgent.toLowerCase();var is_safari=((agt.indexOf('safari')!=-1)&&(agt.indexOf('mac')!=-1))?1:0;if(is_safari==1){tmp=window.event.keyCode;}
else
{if(window.navigator.appName=="Microsoft Internet Explorer"){tmp=window.event.keyCode;}
else if(window.navigator.appName.toLowerCase().indexOf("netscape")>-1){tmp=arguments.callee.caller.arguments[0].which;}
else if(window.navigator.appName.toLowerCase().indexOf("mozilla")>-1){tmp=e.keyCode;}}
if((tmp==13)||((window.event)&&(window.event.keyCode==13)))
{if(validate=='True')
{if(typeof(Page_ClientValidate)!='function'||Page_ClientValidate())
{__doPostBack(control,'');}}
else
{__doPostBack(control,'');}
return true;}
else
{return false;}}
function addListener(element,type,expression,bubbling)
{bubbling=bubbling||false;if(window.addEventListener){element.addEventListener(type,expression,bubbling);return true;}else if(window.attachEvent){element.attachEvent('on'+type,expression);return true;}else return false;}
function addListenerById(elementId,type,expression,bubbling)
{var element=document.getElementById(elementId);if(element)
addListener(element,type,expression,bubbling);}
function addOnloadEvent(fnc){if(typeof window.addEventListener!="undefined")
window.addEventListener("load",fnc,false);else if(typeof window.attachEvent!="undefined"){window.attachEvent("onload",fnc);}
else{if(window.onload!=null){var oldOnload=window.onload;window.onload=function(e){oldOnload(e);window[fnc]();};}
else
window.onload=fnc;}}
addOnloadEvent(createhintbox);addOnloadEvent(createlocationbox);var horizontal_offset="5px"
var innerpadding="22"
var vertical_offset="0"
var ie=document.all
var ns6=document.getElementById&&!document.all
var locationBoxAbsY=110;function getposOffset(what,offsettype){var totaloffset=(offsettype=="left")?what.offsetLeft:what.offsetTop;var parentEl;try{parentEl=what.offsetParent;}catch(err){parentEl=null;}
while(parentEl!=null){totaloffset=(offsettype=="left")?totaloffset+parentEl.offsetLeft:totaloffset+parentEl.offsetTop;parentEl=parentEl.offsetParent;}
return totaloffset;}
function iecompattest(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body}
function clearbrowseredge(obj,whichedge)
{var edgeoffset=(whichedge=="rightedge")?parseInt(horizontal_offset)*-1:parseInt(vertical_offset)*-1
if(whichedge=="rightedge")
{var windowedge=ie&&!window.opera?iecompattest().scrollLeft+iecompattest().clientWidth-30:window.pageXOffset+window.innerWidth-40
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if(windowedge-dropmenuobj.x<dropmenuobj.contentmeasure)
{edgeoffset=dropmenuobj.contentmeasure+obj.offsetWidth+parseInt(horizontal_offset)}}
else
{var windowedge=ie&&!window.opera?iecompattest().scrollTop+iecompattest().clientHeight-15:window.pageYOffset+window.innerHeight-18
var windowTop=ie&&!window.opera?iecompattest().scrollTop:window.pageYOffset
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if(windowedge-dropmenuobj.y<dropmenuobj.contentmeasure)
{edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight}
var distToTop=dropmenuobj.y-windowTop-edgeoffset
if(distToTop<0)
{edgeoffset=edgeoffset+distToTop-10;}}
return edgeoffset}
function showhint(menucontents,obj,e,tipwidth){if((ie||ns6)&&document.getElementById("hintbox")){dropmenuobj=document.getElementById("hintbox")
var innerWidth=tipwidth-innerpadding
dropmenuobj.innerHTML="<div style='width:"+innerWidth+"px;'>"+menucontents+"</div>"
dropmenuobj.style.left=dropmenuobj.style.top=-500
if(tipwidth!=""){dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=tipwidth+"px"}
dropmenuobj.x=getposOffset(obj,"left")+obj.offsetWidth
dropmenuobj.y=getposOffset(obj,"top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj,"rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj,"bottomedge")+"px"
dropmenuobj.style.visibility="visible"
dropmenuobj.style.zIndex=200
dropmenuobj.className="questionFlyout"
var theIframe=document.getElementById("iframePalette")
theIframe.x=dropmenuobj.x;theIframe.y=dropmenuobj.y;theIframe.style.visibility="visible"
theIframe.style.width=dropmenuobj.offsetWidth+"px";theIframe.style.height=dropmenuobj.offsetHeight+"px";theIframe.style.left=dropmenuobj.style.left
theIframe.style.top=dropmenuobj.style.top
theIframe.style.zIndex=dropmenuobj.style.zIndex-1
theIframe.style.position="absolute"
theIframe.style.display="block"
obj.onmouseout=hidetip}}
function showlocation(menucontents,obj,e,tipwidth,adjustLeft,adjustTop){if((ie||ns6)&&document.getElementById("locationbox")){dropmenuobj=document.getElementById("locationbox")
var innerWidth=tipwidth-innerpadding
dropmenuobj.innerHTML=menucontents
dropmenuobj.style.left=dropmenuobj.style.top=-404
if(tipwidth!=""){dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=tipwidth+"px"}
dropmenuobj.x=getposOffset(obj,"left")+obj.offsetWidth
dropmenuobj.y=getposOffset(obj,"top")
var left=dropmenuobj.x-clearbrowseredge(obj,"rightedge");if(adjustLeft)
left=left+adjustLeft;dropmenuobj.style.left=left+"px"
var top=dropmenuobj.y-clearbrowseredge(obj,"bottomedge");if(adjustTop)
top=top+adjustTop;dropmenuobj.style.top=top+"px"
dropmenuobj.style.visibility="visible"
dropmenuobj.style.zIndex=200
var theIframe=document.getElementById("iframePalette")
theIframe.x=dropmenuobj.x;theIframe.y=dropmenuobj.y;theIframe.style.visibility="visible"
theIframe.style.width=dropmenuobj.offsetWidth+"px";theIframe.style.height=dropmenuobj.offsetHeight+"px";theIframe.style.left=dropmenuobj.style.left
theIframe.style.top=dropmenuobj.style.top
theIframe.style.zIndex=dropmenuobj.style.zIndex-1
theIframe.style.position="absolute"
theIframe.style.display="block"
obj.onmouseout=hidetip}}
function showLocationLeftAbsolute(menucontents,obj,e,tipwidth,adjustLeft,adjustTop){if((ie||ns6)&&document.getElementById("locationbox")){dropmenuobj=document.getElementById("locationbox")
var innerWidth=tipwidth-innerpadding
dropmenuobj.innerHTML=menucontents
dropmenuobj.style.left=dropmenuobj.style.top=-404
if(tipwidth!=""){dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=tipwidth+"px"}
dropmenuobj.x=getposOffset(obj,"left")
dropmenuobj.y=locationBoxAbsY
var left=dropmenuobj.x-dropmenuobj.offsetWidth-40
if(adjustLeft)
left=left+adjustLeft;dropmenuobj.style.left=left+"px"
var top=dropmenuobj.y;if(adjustTop)
top=top+adjustTop;dropmenuobj.style.top=top+"px"
dropmenuobj.style.visibility="visible"
dropmenuobj.style.zIndex=200
var theIframe=document.getElementById("iframePalette")
theIframe.x=dropmenuobj.x;theIframe.y=dropmenuobj.y;theIframe.style.visibility="visible";theIframe.style.width=dropmenuobj.offsetWidth+"px";theIframe.style.height=dropmenuobj.offsetHeight+"px";theIframe.style.left=dropmenuobj.style.left;theIframe.style.top=dropmenuobj.style.top;theIframe.style.zIndex=dropmenuobj.style.zIndex-1;theIframe.style.position="absolute";theIframe.style.display="block";obj.onmouseout=hidetip}}
function showLocationMapAbsolute(menucontents,obj,tipwidth,mapObjID,adjustLeft,adjustTop){if((ie||ns6)&&document.getElementById("locationbox")){dropmenuobj=document.getElementById("locationbox")
var innerWidth=tipwidth-innerpadding
dropmenuobj.innerHTML=menucontents
dropmenuobj.style.left=dropmenuobj.style.top=-404
if(tipwidth!=""){dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=tipwidth+"px"}
var mapDiv=getObject(mapObjID);if(mapDiv==null)
mapDiv=obj;dropmenuobj.x=getposOffset(mapDiv,"left")+mapDiv.offsetWidth
dropmenuobj.y=locationBoxAbsY
var left=dropmenuobj.x+40
if(adjustLeft)
left=left+adjustLeft;dropmenuobj.style.left=left+"px"
var top=dropmenuobj.y;if(adjustTop)
top=top+adjustTop;dropmenuobj.style.top=top+"px"
dropmenuobj.style.visibility="visible"
dropmenuobj.style.zIndex=200
var theIframe=document.getElementById("iframePalette")
theIframe.x=dropmenuobj.x;theIframe.y=dropmenuobj.y;theIframe.style.visibility="visible";theIframe.style.width=dropmenuobj.offsetWidth+"px";theIframe.style.height=dropmenuobj.offsetHeight+"px";theIframe.style.left=dropmenuobj.style.left;theIframe.style.top=dropmenuobj.style.top;theIframe.style.zIndex=dropmenuobj.style.zIndex-1;theIframe.style.position="absolute";theIframe.style.display="block";}}
function hidetip(e){dropmenuobj.style.visibility="hidden";dropmenuobj.style.left="-500px";var theIframe=document.getElementById("iframePalette");theIframe.style.visibility=="hidden";theIframe.style.left="-500px";}
function createhintbox(){var divblock=document.createElement("div");divblock.setAttribute("id","hintbox");divblock.setAttribute("class","questionFlyout");divblock.style.position="absolute";document.body.appendChild(divblock);var iframeBlockE=document.createElement("iframe");iframeBlockE.setAttribute("id","iframePalette");iframeBlockE.setAttribute("frameborder","0");iframeBlockE.setAttribute("scrolling","no");iframeBlockE.setAttribute("src","javascript:false;");document.body.appendChild(iframeBlockE);iframeBlockE.style.left=iframeBlockE.style.top=-500;iframeBlockE.style.visibility="hidden";}
function createlocationbox(){var divblock=document.createElement("div");divblock.setAttribute("id","locationbox");divblock.style.position="absolute";document.body.appendChild(divblock);var iframeBlockE=document.createElement("iframe");iframeBlockE.setAttribute("id","iframePalette");iframeBlockE.setAttribute("frameBorder","0");iframeBlockE.setAttribute("scrolling","no");iframeBlockE.setAttribute("src","javascript:false;");document.body.appendChild(iframeBlockE);iframeBlockE.style.left="-500px";iframeBlockE.style.visibility="hidden";}
function createfindtrucksizebox()
{if(!truckPage)
var truckPage="FindTruckSize.aspx";var iframeBlockE=document.createElement("iframe");iframeBlockE.setAttribute("id","iframeFindTruck");iframeBlockE.setAttribute("frameBorder","0");iframeBlockE.setAttribute("scrolling","no");iframeBlockE.setAttribute("src",truckPage);iframeBlockE.setAttribute("height","135px");iframeBlockE.setAttribute("width","204px");document.body.appendChild(iframeBlockE);iframeBlockE.style.left=iframeBlockE.style.top='-500px';iframeBlockE.style.visibility="hidden";}
function hideFindTruckFrame(){iFrame=getObject("iframeFindTruck");if(iFrame!=null)
{iFrame.style.left="-500px";if(ns4){iFrame.visibility="hide";}
if(ie4||upLevel){iFrame.style.visibility="hidden";}}}
function showFindTruckFrame(obj,posX,posY){if(!posX)
posX=-200;if(!posY)
posY=20;var iFrame=getObject("iframeFindTruck");if(iFrame!=null)
{iFrame.x=getposOffset(obj,"left")
iFrame.y=getposOffset(obj,"top")
iFrame.style.left=iFrame.x+posX-clearedge(obj,iFrame,"rightEdge")+obj.offsetWidth+"px"
iFrame.style.top=iFrame.y+posY-clearedge(obj,iFrame,"bottomEdge")+"px"
iFrame.style.zIndex=9
iFrame.style.position="absolute"
iFrame.style.display="block"
if(ns4){iFrame.visibility="show";}
if(ie4||upLevel){iFrame.style.visibility="visible";}}}
function clearedge(obj,target,whichedge){var edgeoffset=(whichedge=="rightEdge")?parseInt(horizontal_offset)*-1:parseInt(vertical_offset)*-1
if(whichedge=="rightEdge"){var windowedge=ie&&!window.opera?iecompattest().scrollLeft+iecompattest().clientWidth-30:window.pageXOffset+window.innerWidth-40
target.contentmeasure=target.offsetWidth
if(windowedge-target.x<target.contentmeasure)
edgeoffset=target.contentmeasure+obj.offsetWidth+parseInt(horizontal_offset)}
else{var windowedge=ie&&!window.opera?iecompattest().scrollTop+iecompattest().clientHeight-15:window.pageYOffset+window.innerHeight-18
target.contentmeasure=target.offsetHeight
if(windowedge-target.y<target.contentmeasure)
edgeoffset=target.contentmeasure-obj.offsetHeight}
return edgeoffset}
function WinPop(path,width,height){var leftPos=(screen.width-width)/2;var topPos=(screen.height-height)/2;open(path,'window','status=yes,toolbar=no,location=no,locationbar=no,top=topPos,left=leftPos,resizable=yes,scrollbars=yes,height='+height+',width='+width+'');}
function WinPopNoScroll(path,width,height){open(path,'window','status=yes,toolbar=no,location=no,locationbar=no,top=100,resizable=yes,scrollbars=no,height='+height+',width='+width+'');}
function WinPopScrollV(path,width,height){open(path,'window','status=yes,toolbar=no,location=no,locationbar=no,top=100,resizable=yes,scrollbars=yes,height='+height+',width='+width+'');}
function WinPopScrollH(path,width,height){open(path,'window','status=yes,toolbar=no,location=no,locationbar=no,top=100,resizable=yes,scrollbars=yes,height='+height+',width='+width+'');}
function WinPopNoScrollPos(path,width,height,topPos,leftPos){open(path,'window','status=yes,toolbar=no,location=no,locationbar=no,top='+topPos+',left='+leftPos+',resizable=no,scrollbars=no,height='+height+',width='+width+'');}
function openQuestionWindow(){if(isDefaultQuestion())
return;openNewWindow('http://budgettruck.intelliresponse.com/results.jsp?question='+document.getElementById('txtQuestion').value);}
function openNewWindow(url){win=window.open(url,'Intelliresponse','height=600,width=700,resizable=yes,scrollbars=yes');win.focus();}
function openNewWindowCloseOldWindow(url){win=window.open(url,'Intelliresponse','height=600,width=700,resizable=yes,scrollbars=yes');win.focus();self.close();}
function isDefaultQuestion(){return(document.getElementById('txtQuestion').value=='Type your question here');}
function clearForm(){if(isDefaultQuestion())
document.getElementById('txtQuestion').value='';}
function openQuestionOnEnter(e)
{var key;if(window.event)
key=window.event.keyCode;else
key=e.which;if(key==13)
openQuestionWindow();return(key!=13);}
function Get_Cookie(name)
{var start=document.cookie.indexOf(name+"=");var len=start+name.length+1;if((!start)&&(name!=document.cookie.substring(0,name.length)))
{return null;}
if(start==-1){return null;}
var end=document.cookie.indexOf(";",len);if(end==-1){end=document.cookie.length;}
return unescape(document.cookie.substring(len,end));}
function createClosingLocationPopup(menucontents,obj,e,tipwidth,adjustLeft,adjustTop)
{if((ie||ns6)&&!document.getElementById("closinglocationbox"))
{var divblock=document.createElement("div");divblock.setAttribute("id","closinglocationbox");divblock.style.position="absolute";document.body.appendChild(divblock);var iframeBlockE=document.createElement("iframe");iframeBlockE.setAttribute("id","iframeClosingLocation");iframeBlockE.setAttribute("frameBorder","0");iframeBlockE.setAttribute("scrolling","no");iframeBlockE.setAttribute("src","javascript:false;");document.body.appendChild(iframeBlockE);iframeBlockE.style.left="-500px";iframeBlockE.style.visibility="hidden";}
if((ie||ns6)&&document.getElementById("closinglocationbox"))
{closingLocationdropmenuobj=document.getElementById("closinglocationbox")
var innerWidth=tipwidth-innerpadding
closingLocationdropmenuobj.innerHTML=menucontents
closingLocationdropmenuobj.style.left=closingLocationdropmenuobj.style.top=-404
if(tipwidth!="")
{closingLocationdropmenuobj.widthobj=closingLocationdropmenuobj.style
closingLocationdropmenuobj.widthobj.width=tipwidth+"px"}
closingLocationdropmenuobj.x=getposOffset(obj,"left")
closingLocationdropmenuobj.y=locationBoxAbsY
var left=closingLocationdropmenuobj.x-closingLocationdropmenuobj.offsetWidth-40
if(adjustLeft)
left=parseInt(left)+parseInt(adjustLeft);closingLocationdropmenuobj.style.left=left+"px"
var top=closingLocationdropmenuobj.y;if(adjustTop)
top=parseInt(top)+parseInt(adjustTop);closingLocationdropmenuobj.style.top=top+"px"
closingLocationdropmenuobj.style.visibility="visible"
closingLocationdropmenuobj.style.zIndex=200
var theIframe=document.getElementById("iframeClosingLocation")
theIframe.x=closingLocationdropmenuobj.x;theIframe.y=closingLocationdropmenuobj.y;theIframe.style.visibility="visible";theIframe.style.width=closingLocationdropmenuobj.offsetWidth+"px";theIframe.style.height=closingLocationdropmenuobj.offsetHeight+"px";theIframe.style.left=closingLocationdropmenuobj.style.left;theIframe.style.top=closingLocationdropmenuobj.style.top;theIframe.style.zIndex=closingLocationdropmenuobj.style.zIndex-1;theIframe.style.position="absolute";theIframe.style.display="block";}}
function SetClosingLocationPopup(distance,dealerName,address1,address2,city,state,zip,selectDivId,selectLinkId,showAllLinkId)
{var dealer=new Object();dealer['distance']=distance;dealer['dealerName']=dealerName;dealer['address1']=address1;dealer['address2']=address2;dealer['city']=city;dealer['state']=state;dealer['zip']=zip;dealer['selectDivId']=selectDivId;dealer['selectLinkId']=selectLinkId;dealer['selectHref']='';if(showAllLinkId)
dealer['showAllLinkId']=showAllLinkId;else
dealer['showAllLinkId']='';dealer['showAllHref']='';if(!closingLocations)
closingLocations=new Array();closingLocations[closingLocations.length]=dealer;}
function SetClosingLocationLinks()
{if(typeof closingLocations!='undefined'&&closingLocations.length>0)
{if(isSingleLocation)
{var dealer=closingLocations[0];if(document.getElementById(dealer.selectLinkId)&&document.getElementById(dealer.selectLinkId).href)
{var confirmLink=document.getElementById(dealer.selectLinkId);var showAllLink=document.getElementById(dealer.showAllLinkId);dealer.selectHref=confirmLink.href;confirmLink.href="#";dealer.showAllHref=showAllLink.href;confirmLink.onclick=ShowClosingLocationPopup;}}
else
{for(var i=0;i<closingLocations.length;i++)
{var dealer=closingLocations[i];if(document.getElementById(dealer.selectLinkId)&&document.getElementById(dealer.selectLinkId).href)
{var select=document.getElementById(dealer.selectLinkId);dealer.selectHref=select.href;select.href="#";select.onclick=ShowClosingLocationPopup;}}}}}
