url rewrite using iplanet() javascript function

I'm trying to use the iplanet function to force a rewrite of particular URLs. I am using the following code:

function menu_open(menuidx, itemidx) {

alert( window.location.host );

if ( window.location.host == "brookline.ptc.com" ) {

alert ( ICMenu_Array[menuidx][itemidx] );

alert( iplanet( ICMenu_Array[menuidx][itemidx] ));

parent.location.href = iplanet( ICMenu_Array[menuidx][itemidx] );

} else {

parent.location.href = ICMenu_Array[menuidx][itemidx];

}

}

When I display the page containing this code through our portal a message box confirms that the host is brookline.ptc.com. Then another message box shows the url I'm trying to rewrite (for example, http://iccov2.ptcnet.ptc.com/ic/secure/tools/vteams/vteams.html), but then the next message box shows that when I call iplanet( url ) that all that is returned is brookline.ptc.com.

What am I doing wrong?

[950 byte] By [708928] at [2007-11-25 4:36:35]
# 1
encapsulating your function within the iplanet function doesn't mean it will get rewritten. The way to force the rewriter to rewrite your links is to configure the gateway rules. Can you clarify what javascript your trying to rewrite here ?
Karthik_Krishnamoorthy at 2007-6-29 3:05:54 > top of Java-index,Web & Directory Servers,Portal Servers...