/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

function bookmarksite(title, url) {
    if (document.all)
        window.external.AddFavorite(url, title);
    else if (window.sidebar)
        window.sidebar.addPanel(title, url, "");
}

/**********************************************/

function izEmpty(mytext) {
    var re = /^\s{1,}$/g; //match any white space including space, tab, form-feed, etc.
    if ((mytext.value.length==0) || (mytext.value==null) || ((mytext.value.search(re)) > -1)) {
        return true;
    } else {
        return false;
    }
}
function izCheckhed(mycheckboxes) {
    var res = false;
    if ((mycheckboxes) && (mycheckboxes.length>1)) {
        for(var i=0; i<mycheckboxes.length && !res ;i++) {
            res = mycheckboxes[i].checked;
        }
    } else if (mycheckboxes) {
        res = mycheckboxes.checked;
    }
    return res;
}
