	function nozeros(input)
	{
		return input;
		if((input.length > 1) && (input.substr(0,1) == "0")) {
			return input.substr(1);
		} else {
			return input;
		}
	}
	
	function unixtimetodate()
	{
		var theDate = new Date(document.unixtime2date.unixtimestamp.value * 1000);
		dateString = theDate.toGMTString();
		document.unixtime2date.output.value = dateString;
	}
	
	function datetounixtime(year,month,day)
	{
		var humDate = new Date(Date.UTC(year, (nozeros(month)-1), nozeros(day), nozeros(0), nozeros(0), nozeros(0)));
		return(humDate.getTime()/1000.0);
	}
	
	function makeunixtime(input_postfix_id)
	{
		raw = document.getElementById(input_postfix_id+'_sys').value;
		day = raw.substr(0,2);
		month = raw.substr(2,2);
		year = raw.substr(4,4);

		document.getElementById(input_postfix_id+'_display').value = day+'/'+month+'/'+year;
		document.getElementById(input_postfix_id+'_sys').value = datetounixtime(year,month,day);
	}
