
//
//
//

function button_on(id)
{
	var element = document.getElementById(id);
	
	element.style.backgroundPosition = 'left bottom';
	
	return true;
}

//
//
//

function button_off(id)
{
	var element = document.getElementById(id);
	
	element.style.backgroundPosition = 'left top';
	
	return true;
}

//
//
//

function append_form_action(id, str)
{
	var element = document.getElementById(id);
	
	if(element.action.indexOf(str) < 0)
	{
		element.action += str;
	}
	
	return true;
}

//
//
//

function confirm_delete(str)
{
	return confirm('Are you sure that you want to delete "' + str + '"?');
}
