function time()
{
	var now = new Date();
	// Get the absolute client-to-GMT time zone offset in minutes.
	var timezoneOffset = now.getTimezoneOffset();
	// Create the cookie string.
	var cookieVar = "timezoneOffset=" + timezoneOffset;
	// Set the cookie if it is not set already.
	if (document.cookie.indexOf(cookieVar) < 0) 
	{
		document.cookie = cookieVar; 
		window.location.reload();
	}
}

time();