(function(){ window.msnt = { openLoginWindow : function(){ var width = 375; var height = 670; var wWidth = window.innerWidth; var wHeight = window.innerHeight; var params = 'width=' + width + ',height=' + height + ', left=' + (wWidth / 2 - (width / 2)) + ', top=' + (wHeight / 2 - (height / 2)); window.open( 'https://accounts.motorsportnetwork.com/login?client_id=17&popup=true&response_type=code', '', params); } } })();