function SetTimeZoneAuto() {
	var LocalTime = new Date();
	LocalTime = new Date( LocalTime.getFullYear(), LocalTime.getMonth(), LocalTime.getDate(), LocalTime.getHours(), LocalTime.getMinutes(), LocalTime.getSeconds() );
	var temp = LocalTime.toGMTString();
	var LocalTimeUTC = new Date( temp.substring( 0, temp.lastIndexOf( " " ) ) );

	var Date1 = new Date( LocalTime.getFullYear(), 0, 1, 0, 0, 0, 0 );
	var temp = Date1.toGMTString();
	var Date1UTC = new Date( temp.substring( 0, temp.lastIndexOf( " " ) ) );
	
	var Date2 = new Date( LocalTime.getFullYear(), 6, 1, 0, 0, 0, 0 );
	temp = Date2.toGMTString();
	var Date2UTC = new Date( temp.substring( 0, temp.lastIndexOf( " " ) ) );
	
	var DiffLocalTime = (LocalTime - LocalTimeUTC);
	var DiffStdTime = (Date1 - Date1UTC);
	var DiffDaylightTime = (Date2 - Date2UTC);

	//Determine offset from UTC (in minutes, accurate to 1 minute)
	var UTCOffset = DiffStdTime / (1000 * 60);

	//Determine if Daylight Saving Time is observed
	document.getElementById('chkObservesDST').checked = (DiffStdTime != DiffDaylightTime);

	//Pick the appropriate Time Zone
	var child = document.getElementById('inpTimeZone').options;
	for( idx = 0; idx < child.length; idx++ ) {
		if( Math.abs( child[idx].value - UTCOffset ) < 15 ) {
			child[idx].selected = true;
			idx = child.length;
		}
	}
/*
	var inDST = "Daylight Saving Time is currently in effect"
	if( DiffStdTime == DiffLocalTime )
		inDST = "Daylight Saving Time is not currently in effect"
	if( DiffStdTime == DiffDaylightTime )
		alert( "Your time zone is UTC " + UTCOffset + "\nYou do not observe Daylight Saving Time." );
	else if( DiffStdTime < DiffDaylightTime )
		alert( "\nYou live in the northern hemisphere\nYour \"Standard Time\" zone is UTC " + UTCOffset + "\n" + inDST );
	else
		alert( "You live in the southern hemisphere\nYour \"Standard Time\" zone is UTC " + UTCOffset + "\n" + inDST );
*/
}
