function confirm_delete(redirect, pre_text, text) {

	if (confirm("Are you sure want to delete " + pre_text + "\""+ text + "\"" + "?") ) {
		window.location = redirect;
	}

}

function swap_img(source, img_id)
{
   $(img_id).setProperty("src", source); 
}