/**
 * Zeigt die Hilfe an
 */
function help() {
  var winWidth = 800;
  var winHeight = 600;
  var w = (screen.width - winWidth)/2;
  var h = (screen.height - winHeight)/2 - 60;
  var url = 'tmpl/hilfe.htm';
  //var url = 'http://www.content-office.de/webdoc/index.php?book=3';
  var name = 'webdochelp';
  var features = 'scrollbars=no,width='+winWidth+',height='+winHeight+',top='+h+',left='+w;
  window.open(url,name,features);
}

/**
 * Blendet ein Info-Fenster ein
 */
function InfoFenster() {
  Navigation = window.open("info.htm", "info", "height=400,width=300");
  Navigation.focus();
}

/**
 * Zeigt eine Best?tigungs-Box zur Umwandlung in ein Vollprodukt an
 *
 * @param   object   the link
 * @param   object   the sql query to submit
 *
 * @return  boolean  whether to run the query or not
 */
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 + ' :\n' + theSqlQuery);
    if (is_confirmed) {
        if ( typeof(theLink.href) != 'undefined' ) {
            theLink.href += '&is_js_confirmed=1';
        } else if ( typeof(theLink.form) != 'undefined' ) {
            theLink.form.action += '?is_js_confirmed=1';
        }
    }

    return is_confirmed;
} // end of the 'confirmLink()' function