var Client = {
    GetTimeZone : function () {
		    var sign, timezone = 'GMT';
				var od = new Date();
				var tz = od.getTimezoneOffset();
				if (tz == 0) return timezone;
				
				if (tz < 0) sign = '+';
				if (tz > 0) sign = '-';
				
				var tzHour = Math.floor(Math.abs(tz/60));
				if (tzHour < 10) tzHour = '0' + tzHour.toString();
				var tzMinute = Math.floor(Math.abs(tz%60));
				if (tzMinute < 10) tzMinute = '0' + tzMinute.toString();
				
				return timezone + ' ' + sign + tzHour + ':' + tzMinute;
		}, 
		GetScreenResolution : function () {
		    return window.screen.width + ' * ' + window.screen.height;
		}
};

(function ($) {
    $(document).ready(function () {
				$('#salesRatioGold').val(Client.GetScreenResolution());
				$('#saleTimeZoneGold').val(Client.GetTimeZone());
    });
})(jQuery);
