//################## ＳＩＴＥ．ＪＳ ####################
//# 1.Addbookmark()　Bookmark/Favoriteに追加する。     #
//# 2.acclog.cgi　アクセスログを記録する。[acclog.js]  #
//# 3.disableRightClick　右クリックを無効 [disable.js] #
//# 4.function()　コンテンツ選択を無効 [disableAll.js] #
//# ※有効にするときは、site2.jsを使用                 #
//# ※大きな画像（200x200以上?)の選択アイコンを無効    #
//# 　にするときは、HEADにつぎのMETAを記述する。       #
//#  <meta http-equiv="imagetoolbar" content="no">     #
//######################################################

function addbookmark()
{
bookmarkurl="http://www.elmblog.com/"
bookmarktitle="Welcome To The ElmBlog"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

document.write("<img src='http://elmblog.com/acc/acclog.cgi?");
document.write("referrer="+document.referrer+"&");
document.write("width="+screen.width+"&");
document.write("height="+screen.height+"&");
document.write("color="+screen.colorDepth+"'>");


window.onload = function() {
  document.onselectstart = function() {return false;} // ie
  document.onmousedown = function() {return false;} // mozilla
}

function disableRightClick(e) {
var message = "Right click disabled";
if(!document.rightClickDisabled) // initialize 
{
if(document.layers) {
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown = disableRightClick;
}
else document.oncontextmenu = disableRightClick;
return document.rightClickDisabled = true; 
}
if(document.layers || (document.getElementById && !document.all)) {
if (e.which==2||e.which==3) {

return false;
}
}
else {

return false;
}
}
disableRightClick();
