I am looking at javascript file and they started it off as
var myPage = new Object();
var myDocument = document.all;
then there is some code. and then this part
myPage.Search = myDocument.Search;
myPage.Search.searchType = "Description";
I am using eclipse with aptana. I want to know why would someone wanna do this
myPage.Search = myDocument.Search;
why not
myDocument.Search.searchType = "Description";