<!--
	var php_date   = new Date();
	var js_date    = new Date();
	var post_date  = new Date();
	var local_date = new Date();
	var time_diff  = 0;
	var new_time_unix = 0;
	
	function get_gm_time_diff()
	{
		php_date.setDate(5);
		php_date.setMonth(1);
		php_date.setFullYear(2012);
		php_date.setHours(8);
		php_date.setMinutes(20);
		php_date.setSeconds(31);
		
		var js_unix  = js_date.getTime();
		var php_unix = php_date.getTime();
		
		time_diff = js_unix - php_unix;
		
		//alert(js_date.getHours()+' '+js_date.getMinutes()+' '+js_date.getSeconds()+' '+js_date.getDate()+' '+js_date.getMonth()+' '+js_date.getTime()+'\n'+php_date.getHours()+' '+php_date.getMinutes()+' '+php_date.getSeconds()+' '+php_date.getDate()+' '+php_date.getMonth()+' '+php_date.getTime());
	}
	
	function replace_local_times(p_form_name)
	{
		get_gm_time_diff();
		var i = 0;
				
		while (document.getElementById(p_form_name+"-day-"+i))
		{
			post_date.setDate(document.getElementById(p_form_name+"-day-"+i).value);
			post_date.setMonth(document.getElementById(p_form_name+"-mon-"+i).value - 1);
			post_date.setFullYear(document.getElementById(p_form_name+"-year-"+i).value);
			post_date.setHours(document.getElementById(p_form_name+"-hour-"+i).value);
			post_date.setMinutes(document.getElementById(p_form_name+"-min-"+i).value);
			post_date.setSeconds(document.getElementById(p_form_name+"-sec-"+i).value);
			new_time_unix = post_date.getTime() + time_diff;
			local_date.setTime(new_time_unix);
			document.getElementById(p_form_name+"-time-"+i).innerHTML  = short_day[local_date.getDay()] + ' ' + short_month[local_date.getMonth()];
			document.getElementById(p_form_name+"-time-"+i).innerHTML += ' ' + local_date.getDate() + ', ' + local_date.getFullYear() + ' at ';
			document.getElementById(p_form_name+"-time-"+i).innerHTML += get_date_hours(local_date) + ':' + get_date_minutes(local_date); // + ':' + get_date_seconds(local_date);
			document.getElementById(p_form_name+"-time-"+i).innerHTML += ' your local time';
			i++;
		}
		
		if (document.getElementById(p_form_name+"-counter"))
			document.getElementById(p_form_name+"-counter").value = i;
	}
	
	var day = new Array(7);
	day[0]  = "Sunday";
	day[1]  = "Monday";
	day[2]  = "Tuesday";
	day[3]  = "Wednesday";
	day[4]  = "Thursday";
	day[5]  = "Friday";
	day[6]  = "Saturday";

	var short_day = new Array(7);
	short_day[0]  = "Sun";
	short_day[1]  = "Mon";
	short_day[2]  = "Tue";
	short_day[3]  = "Wed";
	short_day[4]  = "Thu";
	short_day[5]  = "Fri";
	short_day[6]  = "Sat";
	
	var month = new Array(12);
	month[0]  = "January";
	month[1]  = "February";
	month[2]  = "March";
	month[3]  = "April";
	month[4]  = "May";
	month[5]  = "June";
	month[6]  = "July";
	month[7]  = "August";
	month[8]  = "September";
	month[9]  = "October";
	month[10] = "November";
	month[11] = "December";
	
	var short_month = new Array(12);
	short_month[0]  = "Jan";
	short_month[1]  = "Feb";
	short_month[2]  = "Mar";
	short_month[3]  = "Apr";
	short_month[4]  = "May";
	short_month[5]  = "Jun";
	short_month[6]  = "Jul";
	short_month[7]  = "Aug";
	short_month[8]  = "Sep";
	short_month[9]  = "Oct";
	short_month[10] = "Nov";
	short_month[11] = "Dec";
	
	function get_date_hours(p_obj_date)
	{
		return (p_obj_date.getHours() < 10)	? "0" + p_obj_date.getHours() : p_obj_date.getHours();
	}
	
	function get_date_minutes(p_obj_date)
	{
		return (p_obj_date.getMinutes() < 10)	? "0" + p_obj_date.getMinutes() : p_obj_date.getMinutes();
	}

	function get_date_seconds(p_obj_date)
	{
		return (p_obj_date.getSeconds() < 10)	? "0" + p_obj_date.getSeconds() : p_obj_date.getSeconds();
	}
	
-->

