function gotoTask(input_value) {
	if (input_value.length) {
			location.href = input_value;
	}
}

function submitFormAction(frm, act_key) {
		if (act_key.length) {
				frm.action.value = act_key;
				frm.submit();
		}
}

function confirmDelete(URL) {
	if (confirm("Are you sure you want to delete this item?")) {
		location.href = URL;
	}
}

function submitAction(frm, act) {
	if (act.length) {
		frm.action.value = act;
		frm.submit();
	}
}

function getCurrentODBCDateTime() {
	var now;
	var dt;
	var hr;
	var tt;
	var tm;
	now = new Date();
	dt = now.getMonth() + 1 + "/" + now.getDate()  + "/" + now.getYear();
	hr = (now.getHours() > 12)?now.getHours() - 12:now.getHours();
	tt = (now.getHours() > 12)?"pm":"am";
	tm = hr + ":" + now.getMinutes() + " " + tt;
	return dt + " " + tm;
}
function openPrivacyPopup(URL) {
	window.open(URL, 'privacy', 'height=400, width=610, resizable=yes, scrollbars=yes');
}

function jumpTo(frm_cntrl) {
	if (frm_cntrl.value.length) {
		location.href = frm_cntrl[frm_cntrl.selectedIndex].value;
	}
}