function addBookmark(url, title)
{
  if (!url) url = location.href;
  if (!title) title = document.title;
 
  //Gecko
  if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) window.sidebar.addPanel (title, url, "");
  //IE4+
  else if (typeof window.external == "object") window.external.AddFavorite(url, title);
  //Opera7+
  else if (window.opera && document.createElement)
  {
    var a = document.createElement('A');
    if (!a) return false; //IF Opera 6
    a.setAttribute('rel','sidebar');
    a.setAttribute('href',url);
    a.setAttribute('title',title);
    a.click();
  }
  else return false;
 
  return true;
}


function set_homepage(ref){
	isDOM=document.getElementById
	isOpera=isOpera5=window.opera && isDOM
	isOpera6=isOpera && window.print
	isOpera7=isOpera && document.readyState
	isMSIE=document.all && document.all.item && !isOpera
	isMSIE5=isDOM && isMSIE
	isNetscape4=document.layers
	isMozilla=isDOM && navigator.appName=="Netscape"

	if (isMSIE)
	{
			if (typeof(document.all) != 'undefined')
			{
				ref.style.behavior = 'url(#default#homepage)';
				ref.setHomePage('http://www.chimtrade.com.ua');
			}
			return false;
	}

	else
	{
		alert("Ваш браузер не поддерживает данную функцию");
	}

}

function show_date() {


calendar = new Date();
day = calendar.getDay();
document.write("<div class='data_div'>")
if (day == 0) {
document.write("воскресенье")
}
if (day == 1) {
document.write("понедельник")
}
if (day == 2) {
document.write("вторник")
}
if (day == 3) {
document.write("среда")
}
if (day == 4) {
document.write("четверг")
}
if (day == 5) {
document.write("пятница")
}
if (day == 6) {
document.write("суббота")
}
if (day == 7) {
document.write("воскресенье")
}
document.write(",&nbsp;")
date = calendar.getDate();
document.write(date)
document.write("&nbsp;")
month = calendar.getMonth();
if (month == 0) {
document.write("января")
}
if (month == 1) {
document.write("февраля")
}
if (month == 2) {
document.write("марта")
}
if (month == 3) {
document.write("апреля")
}
if (month == 4) {
document.write("мая")
}
if (month == 5) {
document.write("июня")
}
if (month == 6) {
document.write("июля")
}
if (month == 7) {
document.write("августа")
}
if (month == 8) {
document.write("сентября")
}
if (month == 9) {
document.write("октября")
}
if (month == 10) {
document.write("ноября")
}
if (month == 11) {
document.write("декабря")
}

}
