function trim(s)
{
	return s.replace(/^\s+|\s+$/g, '')
}


function hideDiv(div_id) {
	wipeOut = dojo.fx.wipeOut({node: div_id,duration: 100});
	wipeOut.play();
}
function showDiv(div_id) {
	wipeIn = dojo.fx.wipeIn({node: div_id,duration: 100});
	wipeIn.play();
}

function toggleDiv(div_id) {
	var style = dojo.byId(div_id).style.display;
	if(style == 'none')
		showDiv(div_id);
	else
		hideDiv(div_id);
}
function confirm_delete(action_path)
{
	if( !confirm( "Are you sure you want to delete this entry?" ))
	{
		return;
	}
	else
	{
		location.href=action_path;
	}
}
