//show the 'new search' popup function findPosX(obj) { var curleft = 0; if(obj.offsetParent) while(1) { curleft += obj.offsetLeft; if(!obj.offsetParent) break; obj = obj.offsetParent; } else if(obj.x) curleft += obj.x; return curleft; } function findPosY(obj) { var curtop = 0; if(obj.offsetParent) while(1) { curtop += obj.offsetTop; if(!obj.offsetParent) break; obj = obj.offsetParent; } else if(obj.y) curtop += obj.y; return curtop; } function showPanel(){ document.location.href='http://www.bobstall.com/NewVehicleSearch'; return false; if (!document.getElementById('popupdiv')){ d = document.createElement('DIV'); d.id = 'popupdiv'; document.getElementById('contentWrapper').appendChild(d); }else{ d = document.getElementById('popupdiv'); } d.style.position = 'absolute'; d.style.left = findPosX(document.getElementById('newsearch'))+120 + 'px'; d.style.top = findPosY(document.getElementById('newsearch'))-140 + 'px'; d.style.width = '187px'; d.style.height = '173px'; d.style.display = ''; return false; } document.write('
'); function goInventory(url){ document.location.href=url; }