﻿function FavoritHinzufuegen(title, url) {
    if (window.sidebar) // Firefx
        window.sidebar.addPanel(title, url, "");
    else if (window.opera && window.print) // Opera
    {
        var elem = document.createElement('a');
        elem.setAttribute('href', url);
        elem.setAttribute('title', title);
        elem.setAttribute('rel', 'sidebar');
        elem.click();
    }
    else if (document.all)// Internet Explorer
        window.external.AddFavorite(url, title);
}

function ClientSideClick(myButton, text) {
    // Client side validation
    if (typeof (Page_ClientValidate) == 'function') {
        if (Page_ClientValidate() == false)
        { return false; }
    }

    //make sure the button is not of type "submit" but "button"
    if (myButton.getAttribute('type') == 'button') {
        // diable the button
        myButton.disabled = true;
        //myButton.className = "btn-inactive";
        myButton.value = text;
    }
    return true;
}