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?

