function confirmLink(theLink,confirmMsg,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 + '\n' + theSqlQuery);
    if (is_confirmed) {
        theLink.href += '&is_js_confirmed=1';
    }

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

function confirmLinkEdit(theLink,confirmMsg)
{
    if (confirmMsg == '' || typeof(window.opera) != 'undefined') {
        return true;
    }

    var alias = prompt(confirmMsg);
    if (alias.length > 0) {
        theLink.href += '&newalias=' + alias;
		return true;
    }
	else
	{
		return false;
	}

}

function HideDialog() {
	if( dialogWindow != null ) {
		if (typeof(dialogWindow.document) == "object")
			dialogWindow.close()
	}
}

