/* With statement allows accessing properties on a specified object */
var theURL, theTitle;
with (document) {
theURL = URL;
title = "New Title";
theTitle = title;
NSB.Print(URL);
NSB.Print(title);
}
/* a better way to perform With */
(function($){
theURL = $.URL;
$.title = "New Title";
theTitle = $.title;
NSB.Print($.URL);
NSB.Print($.title);
}(document)
);