var confirmMsg  = 'Do you really want to ';

function confirmLink(theLink, theSqlQuery)
{
    // Confirmation is not required in the configuration file
    // or browser is Opera (crappy js implementation)
	if (confirmMsg == '' || typeof(window.opera) != 'undefined') {
	return 	true;
	}

	var is_confirmed = confirm(confirmMsg + ' ' + theSqlQuery);
	if (is_confirmed) {
	theLink.href += ('');
	}

	return is_confirmed;
	} // end of the 'confirmLink()' function
