var session = new (function(){ this.domainRoot = "http://www.viamonde.com/"; this.contactID = null; this.customerID = null; this.tripID = null; this.isLoggedIn = function(){ if(this.tripID != null) return 1; return 0; } });