
function login() {
    new Ajax.Request('php/login.php', {
        method: 'post',
        parameters: $('pass').serialize(true),
        onSuccess: function (transport) {
            alert (transport.responseText);
            updateListe('main', 'php/db.php')
        }
    });
}




function updateListe() {
    new Ajax.Updater('main', 'php/db.php', {
        method: 'post',
        parameters: $('myform').serialize(true)
    });
}


function updateContent(script){

    new Ajax.Updater('main', 'php/' + script);
    
}



function oW(url) {
    fenster = window.open(url, "fenster1", "width=400,height=400,status=no,toolbar=no,location=no,scrollbars=yes,resizable=yes");
    fenster.focus();
}


function getTipText(kategorie, pos){
    t = '<p>';
    t += kat[kategorie]['titel'];
    t += '</p>';
    t += '<p>';
    t += '<a style="text-decoration: underline" href="kategorien/' + kat[kategorie]['url'] + '.html" onclick="oW(this.href); return false" target="_blank">weitere Info</a></p>';
    getTip(t, pos);
}

/*FIX, [pos, 0, 0], */

function getTip(t, pos) {
    Tip(t, WIDTH, 150, STICKY, true, DURATION, 2500, OFFSETX, 3, BGCOLOR, '#f0f0f0', BORDERCOLOR, '#b4b4b4', FONTFACE, 'Arial, Helvetica, sans-serif');
}
