function upDate(field, formID)
{
	if (typeof(formID)=="undefined") formID = "";
	var p="self.document.form_" + formID;
	var year = eval(p + "." + (field + "_year.value"));
	var mon = eval(p + "." + (field + "_mon.value"));
	var mday = eval(p + "." + (field + "_mday.value"));
	var hours = eval(p + "." + (field + "_hours.value"));
	var minutes = eval(p + "." + (field + "_minutes.value"));
	var seconds = eval(p + "." + (field + "_seconds.value"));
	var d = eval(p + "." + field)
	d.value = year + "-" + mon + "-" + mday + " " + hours + ":" + minutes + ":" + seconds;
}
function upSelect(field, formID, selectID)
{
	if (typeof(formID)=="undefined") formID = "";
	var p = "self.document.form_" + formID;
	var s = eval(p + "." + selectID);
	var f = eval(p + "." + field);
	f.value = s.options[s.selectedIndex].text;
}
function checkInt(i)
{
	return i.replace(/[^0-9]/gi, "");
}
function checkFloat(i)
{
	i = i.replace(/,/gi, ".");
	return i.replace(/[^0-9.]/gi, "");
}
function addMethod(method)
{
	var action = document.form_adatlap.action;
	document.form_adatlap.action = action.replace(/#/, '&method=' + method + '#');
}