Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error: object expected - does anyone know why

Status
Not open for further replies.

FAUX

Programmer
Feb 26, 2002
5
GB
<!-- EDIT HERE -------------------------------------------------------- -->
<!-- This is the main title text... must be IDed as 'bodytitle' -->

<h1 id=&quot;bodytitle&quot;>Facility</h1>
</td></tr>
<!-- END EDIT --------------------------------------------------------- -->
<tr>
<td colspan=&quot;2&quot; class=&quot;bodyrule&quot; width=&quot;100%&quot;><img src=&quot;../../../images/blank.gif&quot; height=&quot;10&quot; alt=&quot;&quot; border=&quot;0&quot;></td>

</tr>
<tr>
<td colspan=&quot;2&quot;>
<br>
<table>
<tr>
<td><img src=&quot;/pip/images/listblob.gif&quot;></td>
<td><A HREF=&quot;javascript:eek:penWindow('popups/what_is_facility.asp',640,480,0);&quot;>What is a facility?</A></td>
<td><img src=&quot;/pip/images/listblob.gif&quot;></td>
<td><A HREF=&quot;javascript:eek:penWindow('popups/how_are.asp',640,480,0);&quot;>How are facility guidelines organised?</A></td>
</tr><tr>
<td><img src=&quot;/pip/images/listblob.gif&quot;></td>
<td><A HREF=&quot;javascript:eek:penWindow('popups/what_is.asp',640,480,0);&quot;>What is a facility guideline?</A></td>
<td><img src=&quot;/pip/images/listblob.gif&quot;></td>
<td><A HREF=&quot;javascript:eek:penWindow('popups/how_to.asp',640,480,1);&quot;>How to use a facility guideline</A></td>
</tr>
</table>

</td>
<td></td>
</tr>

</table>
<div id=&quot;base&quot; style=&quot;border:none;left:20;width:775;height:306;position:absolute&quot;>
<img src=&quot;images/facilities.gif&quot; alt=&quot;&quot; width=&quot;775&quot; height=&quot;305&quot; border=&quot;0&quot; usemap=&quot;#prodmap&quot; name=&quot;baseimage&quot;>
</div>

<div id=&quot;arrfore&quot; style=&quot;visibility:hidden;top:0;left:0;width:95px;height:110px;z-index:3;position:absolute&quot; onmouseout=&quot;divdown('arrfore')&quot;>
<img src=&quot;../products/arrivals/images/arrfore_up.gif&quot; width=&quot;95&quot; height=&quot;110&quot; alt=&quot;&quot; hspace=&quot;0&quot; vspace=&quot;0&quot;>
</div>
<div id=&quot;arrcon&quot; style=&quot;visibility:hidden;top:0;left:0;width:95px;height:113px;z-index:3;position:absolute&quot; onmouseout=&quot;divdown('arrcon')&quot;>
<img src=&quot;../products/arrivals/images/arrcon_up.gif&quot; width=&quot;95&quot; height=&quot;113&quot; alt=&quot;&quot; hspace=&quot;0&quot; vspace=&quot;0&quot; border=&quot;0&quot; usemap=&quot;#arrconmap&quot;>
</div>
<div id=&quot;arrbag&quot; style=&quot;visibility:hidden;top:0;left:0;width:94px;height:110px;z-index:3;position:absolute&quot; onmouseout=&quot;divdown('arrbag')&quot;>
<img src=&quot;../products/arrivals/images/arrbag_up.gif&quot; width=&quot;94&quot; height=&quot;110&quot; alt=&quot;&quot; hspace=&quot;0&quot; vspace=&quot;0&quot; border=&quot;0&quot; usemap=&quot;#arrbagmap&quot;>
</div>
<div id=&quot;arrpier&quot; style=&quot;visibility:hidden;top:0;left:0;width:94px;height:79px;z-index:3;position:absolute&quot;>
<img src=&quot;../products/arrivals/images/arrpier_up.gif&quot; width=&quot;94&quot; height=&quot;116&quot; alt=&quot;&quot; hspace=&quot;0&quot; vspace=&quot;0&quot; border=&quot;0&quot; usemap=&quot;#arrpiermap&quot;>
</div>

<div id=&quot;arrcus&quot; style=&quot;visibility:hidden;top:0;left:0;width:94px;height:60px;z-index:3;position:absolute&quot; onmouseout=&quot;divdown('arrcus')&quot;>
<img src=&quot;../products/arrivals/images/arrcus_up.gif&quot; width=&quot;94&quot; height=&quot;60&quot; alt=&quot;&quot; hspace=&quot;0&quot; vspace=&quot;0&quot; usemap=&quot;#arrcusmap&quot; border=&quot;0&quot;>
</div>
<div id=&quot;arrimm&quot; style=&quot;visibility:hidden;top:0;left:0;width:75px;height:89px;z-index:3;position:absolute&quot; onmouseout=&quot;divdown('arrimm')&quot;>
<img src=&quot;../products/arrivals/images/arrimm_up.gif&quot; width=&quot;75&quot; height=&quot;89&quot; alt=&quot;&quot; hspace=&quot;0&quot; vspace=&quot;0&quot; border=&quot;0&quot; usemap=&quot;#arrimmmap&quot;>
</div>

<div id=&quot;depfore&quot; style=&quot;visibility:hidden;top:0;left:0;width:95px;height:110px;z-index:3;position:absolute&quot; onmouseout=&quot;divdown('depfore')&quot;>
<img src=&quot;../products/departures/images/depfore_up.gif&quot; width=&quot;95&quot; height=&quot;110&quot; alt=&quot;&quot; hspace=&quot;0&quot; vspace=&quot;0&quot; border=&quot;0&quot; usemap=&quot;#depforemap&quot;>
</div>
<div id=&quot;depcon&quot; style=&quot;visibility:hidden;top:0;left:0;width:95px;height:110px;z-index:3;position:absolute&quot; onmouseout=&quot;divdown('depcon')&quot;>
<img src=&quot;../products/departures/images/depcon_up.gif&quot; width=&quot;95&quot; height=&quot;110&quot; alt=&quot;&quot; hspace=&quot;0&quot; vspace=&quot;0&quot; border=&quot;0&quot; usemap=&quot;#depconmap&quot;>
</div>
<div id=&quot;deplounge&quot; style=&quot;visibility:hidden;top:0;left:0;width:95px;height:115px;z-index:3;position:absolute&quot; onmouseout=&quot;divdown('deplounge')&quot;>
<img src=&quot;../products/departures/images/deplounge_up.gif&quot; width=&quot;95&quot; height=&quot;115&quot; alt=&quot;&quot; hspace=&quot;0&quot; vspace=&quot;0&quot; border=&quot;0&quot; usemap=&quot;#deploumap&quot;>
</div>
<div id=&quot;deppier&quot; style=&quot;visibility:hidden;top:0;left:0;width:116px;height:156px;z-index:3;position:absolute&quot;>
<img src=&quot;../products/departures/images/deppier_up.gif&quot; width=&quot;116&quot; height=&quot;156&quot; alt=&quot;&quot; hspace=&quot;0&quot; vspace=&quot;0&quot; border=&quot;0&quot; usemap=&quot;#deppiermap&quot;>
</div>

<div id=&quot;depsec&quot; style=&quot;visibility:hidden;top:0;left:0;width:95px;height:60px;z-index:3;position:absolute&quot; onmouseout=&quot;divdown('depsec')&quot;>
<img src=&quot;../products/departures/images/depsec_up.gif&quot; width=&quot;95&quot; height=&quot;60&quot; alt=&quot;&quot; hspace=&quot;0&quot; vspace=&quot;0&quot; border=&quot;0&quot; usemap=&quot;#depsecmap&quot;>
</div>

<div id=&quot;concon&quot; style=&quot;visibility:hidden;top:0;left:0;width:67px;height:118px;z-index:3;position:absolute&quot;>
<img src=&quot;../products/connections/images/concon_up.gif&quot; width=&quot;67&quot; height=&quot;118&quot; alt=&quot;&quot; hspace=&quot;0&quot; vspace=&quot;0&quot; border=&quot;0&quot; usemap=&quot;#conconmap&quot;>
</div>

<div id=&quot;depcircle&quot; style=&quot;visibility:hidden;top:0;left:0;width:60px;height:73px;z-index:3;position:absolute&quot;>
<img src=&quot;../products/arrivals/images/dep_cir.gif&quot; width=&quot;60&quot; height=&quot;73&quot; alt=&quot;&quot; hspace=&quot;0&quot; vspace=&quot;0&quot; border=&quot;0&quot; usemap=&quot;#depcirmap&quot;>
</div>
<div id=&quot;arrcircle&quot; style=&quot;visibility:hidden;top:0;left:0;width:60px;height:73px;z-index:3;position:absolute&quot;>
<img src=&quot;../products/departures/images/arr_cir.gif&quot; width=&quot;60&quot; height=&quot;73&quot; alt=&quot;&quot; hspace=&quot;0&quot; vspace=&quot;0&quot; border=&quot;0&quot; usemap=&quot;#arrcirmap&quot;>
</div>
<div id=&quot;concircle&quot; style=&quot;visibility:hidden;top:0;left:0;width:60px;height:73px;z-index:3;position:absolute&quot;>
<img src=&quot;../products/departures/images/con_cir.gif&quot; width=&quot;60&quot; height=&quot;73&quot; alt=&quot;&quot; hspace=&quot;0&quot; vspace=&quot;0&quot; border=&quot;0&quot; usemap=&quot;#concirmap&quot;>
</div>
</div>


<map name=&quot;prodmap&quot;>
<area shape=&quot;poly&quot; coords=&quot;67,55,77,85,67,115,159,115,159,55&quot; href=&quot;carpark/index.asp#p1&quot;>
<area shape=&quot;rect&quot; coords=&quot;161,233,255,293&quot; onmouseover=&quot;divup('arrfore',160,183,0,0,1)&quot;>
<area shape=&quot;rect&quot; coords=&quot;256,233,350,293&quot; onmouseover=&quot;divup('arrcon',255,180,0,0,1)&quot;>
<area shape=&quot;rect&quot; coords=&quot;446,233,540,293&quot; onmouseover=&quot;divup('arrbag',446,183,0,0,1)&quot;>
<area shape=&quot;rect&quot; coords=&quot;351,233,445,293&quot; onmouseover=&quot;divup('arrcus',351,233,0,0,1)&quot;>

<area shape=&quot;poly&quot; coords=&quot;542,234,542,291,615,291,615,227,592,205,542,234&quot; onmouseover=&quot;divup('arrimm',541,204,0,0,1)&quot;>
<area shape=&quot;poly&quot; coords=&quot;617,220,617,284,709,306,700,278,709,248,636,248,617,242&quot; onmouseover=&quot;divup('arrpier',617,177,0,1,1)&quot;>
<area shape=&quot;poly&quot; coords=&quot;539,115,528,141,524,165,526,196,532,216,540,233,591,203,583,184,584,162,590,144,539,115&quot; onmouseover=&quot;divup('concon',525,115,0,1,0)&quot;>
<area shape=&quot;poly&quot; coords=&quot;77,233,66,264,77,293,160,293,160,233&quot; href=&quot;carpark/index.asp#p1&quot;>

<area shape=&quot;circle&quot; coords=&quot;31,85,30&quot; onmouseover=&quot;hilite('depcircle',1,55)&quot;>
<area shape=&quot;circle&quot; coords=&quot;645,172,30&quot; onmouseover=&quot;hilite('concircle',615,141)&quot;>
<area shape=&quot;circle&quot; coords=&quot;744,264,30&quot; onmouseover=&quot;hilite('arrcircle',714,232)&quot;>
<area shape=&quot;rect&quot; coords=&quot;161,55,255,115&quot; onmouseover=&quot;divup('depfore',160,5,1,0,0)&quot;>
<area shape=&quot;rect&quot; coords=&quot;256,55,350,115&quot; onmouseover=&quot;divup('depcon',255,5,1,0,0)&quot;>
<area shape=&quot;rect&quot; coords=&quot;351,55,446,115&quot; onmouseover=&quot;divup('depsec',350,55,1,0,0)&quot;>
<area shape=&quot;rect&quot; coords=&quot;446,55,540,115&quot; onmouseover=&quot;divup('deplounge',445,1,1,0,0)&quot;>

<area shape=&quot;poly&quot; coords=&quot;540,55,540,113,592,142,603,129,617,119,632,114,643,113,653,85,643,55,540,55&quot; onmouseover=&quot;divup('deppier',539,-13,1,1,0)&quot;>

</map>

<map name=&quot;depcirmap&quot;>
<area shape=&quot;circle&quot; coords=&quot;30,30,30&quot; onmouseout=&quot;divdown('depcircle')&quot; onclick=&quot;document.images['baseimage'].src='images/departures_base.gif';baseImageState = 1&quot;>
</map>
<map name=&quot;concirmap&quot;>
<area shape=&quot;circle&quot; coords=&quot;30,31,30&quot; onmouseout=&quot;divdown('concircle')&quot; onclick=&quot;document.images['baseimage'].src='images/connections_base.gif';baseImageState = 2&quot; href=&quot;connections/index.asp#p1&quot;>
</map>
<map name=&quot;arrcirmap&quot;>
<area shape=&quot;circle&quot; coords=&quot;30,32,30&quot; onmouseout=&quot;divdown('arrcircle')&quot; onclick=&quot;document.images['baseimage'].src='images/arrivals_base.gif';baseImageState = 3&quot;>
</map>

<!-- area shape=&quot;default&quot; onmouseover=&quot;divup('deplounge',445,6,1,0,0)&quot; href=&quot;javascipt:void(0)&quot; -->
<map name=&quot;depforemap&quot;>
<area shape=&quot;rect&quot; coords=&quot;0,0,95,27&quot; href=&quot;javascript:void(0)&quot; onmouseover=&quot;divup('depfore',160,5,1,0,0)&quot;>
<area shape=&quot;rect&quot; coords=&quot;0,37,95,52&quot; href=&quot;javascript:void(0)&quot; onmouseover=&quot;divup('depfore',160,5,1,0,0)&quot;>
<area shape=&quot;rect&quot; coords=&quot;0,50,95,110&quot; onmouseover=&quot;divup('depfore',160,5,1,0,0)&quot;>
<area shape=&quot;rect&quot; coords=&quot;0,27,95,37&quot; href=&quot;link_bridges/index.asp&quot; onmouseover=&quot;divup('depfore',160,5,1,0,0)&quot;>
</map>

<map name=&quot;depconmap&quot;>
<!--area shape=&quot;default&quot; onmouseover=&quot;divup('depcon',255,5,1,0,0)&quot; href=&quot;javascipt:void(0)&quot;-->
<area shape=&quot;rect&quot; coords=&quot;0,0,95,11&quot; href=&quot;javascript:void(0)&quot; onmouseover=&quot;divup('depcon',255,5,1,0,0)&quot;>
<area shape=&quot;rect&quot; coords=&quot;0,11,95,27&quot; href=&quot;javascript:void(0)&quot; onmouseover=&quot;divup('depcon',255,5,1,0,0)&quot;>
<area shape=&quot;rect&quot; coords=&quot;0,50,95,110&quot; href=&quot;dep_con/index.asp#p1&quot; onmouseover=&quot;divup('depcon',255,5,1,0,0)&quot;>
<area shape=&quot;rect&quot; coords=&quot;0,27,95,37&quot; href=&quot;cip_departures/index.asp#p1&quot; onmouseover=&quot;divup('depcon',255,5,1,0,0)&quot;>
<area shape=&quot;rect&quot; coords=&quot;0,37,95,50&quot; href=&quot;smoking-area/index.asp#p1&quot; onmouseover=&quot;divup('depcon',255,5,1,0,0)&quot;>
</map>

<map name=&quot;deploumap&quot;>
<!--area shape=&quot;default&quot; onmouseover=&quot;divup('deplounge',445,6,1,0,0)&quot; href=&quot;javascipt:void(0)&quot;-->
<area shape=&quot;rect&quot; coords=&quot;0,0,95,3&quot; href=&quot;javascript:void(0)&quot; onmouseover=&quot;divup('deplounge',445,1,1,0,0)&quot;>
<area shape=&quot;rect&quot; coords=&quot;0,39,95,50&quot; href=&quot;javascript:void(0)&quot; onmouseover=&quot;divup('deplounge',445,1,1,0,0)&quot;>
<area shape=&quot;rect&quot; coords=&quot;0,15,95,27&quot; href=&quot;javascript:void(0)&quot; onmouseover=&quot;divup('deplounge',445,1,1,0,0)&quot;>
<area shape=&quot;rect&quot; coords=&quot;0,50,95,110&quot; href=&quot;dep_lou/index.asp#p1&quot; onmouseover=&quot;divup('deplounge',445,1,1,0,0)&quot;>
<area shape=&quot;rect&quot; coords=&quot;0,27,95,39&quot; href=&quot;cip_departures/index.asp#p1&quot; onmouseover=&quot;divup('deplounge',445,1,1,0,0)&quot;>
<area shape=&quot;rect&quot; coords=&quot;0,3,95,15&quot; href=&quot;smoking-area/index.asp#p1&quot; onmouseover=&quot;divup('deplounge',445,1,1,0,0)&quot;>
</map>

<map name=&quot;deppiermap&quot;>
<!--area shape=&quot;poly&quot; coords=&quot;1,1,1,29,94,29,94,7,80,7,74,1,1,1&quot; href=&quot;javascript:void(0)&quot;-->
<area shape=&quot;rect&quot; coords=&quot;0,55,95,65&quot; href=&quot;link_bridges/index.asp&quot;>
<area shape=&quot;rect&quot; coords=&quot;0,33,95,45&quot; href=&quot;cip_departures/index.asp#p1&quot;>
<area shape=&quot;rect&quot; coords=&quot;0,3,95,15&quot; href=&quot;smoking-area/index.asp#p1&quot;>
<area shape=&quot;poly&quot; coords=&quot;1,64,1,123,53,152,63,139,79,128,92,124,104,123,113,94,103,64,1,64&quot; HREF=&quot;piers/index.asp&quot;>
</map>

<map name=&quot;depsecmap&quot;>
<area shape=&quot;rect&quot; coords=&quot;0,0,95,60&quot; onmouseout=&quot;divdown('depsec')&quot; href=&quot;cen_security/index.asp#p1&quot;>
</map>

<map name=&quot;conconmap&quot;>
<area shape=&quot;poly&quot; coords=&quot;17,1,3,27,0,78,16,118,67,88,59,68,60,47,67,30,17,1&quot; onmouseout=&quot;divdown('concon')&quot; href=&quot;connections/index.asp#p1&quot;>
</map>
<map name=&quot;arrpiermap&quot;>
<area shape=&quot;poly&quot; coords=&quot;21,1,21,12,94,12,94,7,80,7,74,1,1,1&quot; href=&quot;javascript:void(0)&quot;>
<area shape=&quot;poly&quot; coords=&quot;21,13,21,23,94,23,94,13,21,13&quot; href=&quot;link_bridges/index.asp&quot;>
<area shape=&quot;poly&quot; coords=&quot;21,24,21,55,94,55,94,24,21,24&quot; href=&quot;javascript:void(0)&quot;>
<area shape=&quot;poly&quot; coords=&quot;0,53,16,56,93,56,82,86,93,117,0,117&quot; HREF=&quot;piers/index.asp&quot;>
</map>
<map name=&quot;arrimmmap&quot;>
<area shape=&quot;poly&quot; coords=&quot;0,31,0,89,75,89,75,23,51,0,0,31&quot; onmouseout=&quot;divdown('arrimm')&quot; href=&quot;imm_hall/index.asp#p1&quot;>
</map>


<map name=&quot;arrconmap&quot;>
<!--area shape=&quot;default&quot; onmouseover=&quot;divup('arrcon',255,183,0,0,1)&quot; href=&quot;javascipt:void(0)&quot;-->
<area shape=&quot;rect&quot; coords=&quot;0,0,95,5&quot; href=&quot;javascript:void(0)&quot; onmouseover=&quot;divup('arrcon',255,180,0,0,1)&quot;>
<area shape=&quot;rect&quot; coords=&quot;0,5,95,16&quot; href=&quot;smoking-area/index.asp#p1&quot; onmouseover=&quot;divup('arrcon',255,180,0,0,1)&quot;>
<area shape=&quot;rect&quot; coords=&quot;0,16,95,39&quot; href=&quot;javascript:void(0)&quot; onmouseover=&quot;divup('arrcon',255,180,0,0,1)&quot;>
<area shape=&quot;rect&quot; coords=&quot;0,39,95,50&quot; href=&quot;cip_arrivals/index.asp#p1&quot; onmouseover=&quot;divup('arrcon',255,180,0,0,1)&quot;>
<area shape=&quot;rect&quot; coords=&quot;0,50,95,113&quot; href=&quot;arr_con/index.asp#1&quot; onmouseover=&quot;divup('arrcon',255,180,0,0,1)&quot;>
</map>


<map name=&quot;arrbagmap&quot;>
<!--area shape=&quot;default&quot; onmouseover=&quot;divup('arrbag',446,183,0,0,1)&quot; href=&quot;javascipt:void(0)&quot;-->
<area shape=&quot;rect&quot; coords=&quot;0,0,94,30&quot; href=&quot;javascript:void(0)&quot; onmouseover=&quot;divup('arrbag',446,183,0,0,1)&quot;>
<area shape=&quot;rect&quot; coords=&quot;0,42,94,50&quot; href=&quot;javascript:void(0)&quot; onmouseover=&quot;divup('arrbag',446,183,0,0,1)&quot;>
<area shape=&quot;rect&quot; coords=&quot;0,50,94,110&quot; href=&quot;bag_reclaim/index.asp#p1&quot; onmouseover=&quot;divup('arrbag',446,183,0,0,1)&quot;>
<area shape=&quot;rect&quot; coords=&quot;0,30,95,42&quot; href=&quot;smoking-area/index.asp#p1&quot; onmouseover=&quot;divup('arrbag',446,183,0,0,1)&quot;>
</map>


<map name=&quot;arrcusmap&quot;>
<!--area shape=&quot;default&quot; onmouseover=&quot;divup('arrcus',351,233,0,0,1)&quot; href=&quot;javascipt:void(0)&quot;-->
<area shape=&quot;rect&quot; coords=&quot;0,0,95,60&quot; onmouseout=&quot;divdown('arrcus')&quot; href=&quot;cus_hall/index.asp#p1&quot;>
</map>

</body>
</html>
 
At a glance, I found the following four methods calls you make:
javascript:eek:penWindow
divup
divdown
hilite

Now, if I were to hazard a guess, I would say that the openWindow method was supposed to be window.open... but then this is your app and you might have a method of openWindow(); Beyond that, I would make sure that there are no typos where you define your function names, etc.

For debugging purposes, you might wanna take this out:

document.images['baseimage'].src='images/arrivals_base.gif';baseImageState = 3

and put it in it's own function. Then call the function from the onClick=''. Being that I use Interdev for client side script debugging, this is essential to be able to step through some of the finer points and locate small syntax hiccups.

Hope that helps a bit. &quot;It's easier to ask forgiveness than it is to get permission.&quot; - Rear Admiral Dr. Grace Hopper
 
thanks for the tips, as it happens i have discovered that acutually, I did not have the .js file plugged in correctly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top