I tried writing a function to access the main url of the application page that is being viewed. i tried several javascript implementations of getting the window.location.href and parsing through but the problem is that the entire script is in an iframe of the main window. i tried 50 different variations...