var confirmMsg = ' ';

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(theSqlQuery);
		if (is_confirmed) 
			{
				theLink.href += '&isJSconfirmed=1';
			}

		return is_confirmed;
	}
