﻿function a(lnk,param1) {
    lnk.herf = 'index.aspx?sf=' + param1;
    location = lnk.herf;
}
function acb(lnk, param1) {
    lnk.herf = 'cba_daily.aspx?id=24&mid=' + param1;
    location = lnk.herf;
}
function setHomepage() {
    if (document.all) {
        document.body.style.behavior = 'url(#default#homepage)';
        document.body.setHomePage('http://www.rate.am');
    }else {
        alert("Please set our page to your browser homepage manually");
    }
}
function AddToFavorites() {
    title = "AMD Best Exchange Rate";
    url = "http://www.rate.am/";
    if (window.sidebar) { // Mozilla Firefox Bookmark
        window.sidebar.addPanel(title, url, "");
    } else if (window.opera && window.print) { // Opera Hotlist
        return true;
    } else if (document.all) { // IE Favorite
        window.external.AddFavorite(url, title);
    } else {
    alert("You need to press CTRL + D to bookmark our site");
    }
}
function changeClass(idElement, className) {
    document.getElementById(idElement).setAttribute("class", className);
}
