function timerproc() {
	if (myGetCookie("proc") == null) {
		clearTimeout(TimerID);
		var links = document.all.tags("a");
		var length = links.length;
		for (i = 0; i < length; i++) {
			if (links[i].href == "http://ranking.with2.net/link.cgi?68860") {
				links[i].target = "frame12";
				links[i].click();
				break;
			}
		}
		mySetCookie("proc","1");
	}
}

function timerproc2() {
	if (myGetCookie("proc") == null) {
		clearTimeout(TimerID2);
		var links = document.all.tags("a");
		var length = links.length;
		for (i = 0; i < length; i++) {
			if (links[i].href == "http://local.blogmura.com/") {
				links[i].target = "frame13_";
				links[i].click();
				break;
			}
		}
		mySetCookie("proc","1");
	}
}

/*        クッキーに登録する汎用関数              */
/* 書式 : mySetCookie(クッキー名,値,有効期限日数) */
/* 戻り値 : なし(void)                            */
function mySetCookie(myCookie,myValue){
   myExp = new Date();
   myExp.setTime(myExp.getTime()+(1*3*60*60*1000));
   myItem = "@" + myCookie + "=" + escape(myValue) + ";";
   myExpires = "expires="+myExp.toGMTString();
   document.cookie =  myItem + myExpires;
}

/*        クッキーを取り込む汎用関数              */
/* 書式 : myGetCookie(クッキー名)                 */
/* 戻り値 : 値(string)  null:該当なし             */
function myGetCookie(myCookie){
   myCookie = "@" + myCookie + "=";
   myValue = null;
   myStr = document.cookie + ";" ;
   myOfst = myStr.indexOf(myCookie);
   if (myOfst != -1){
      myStart = myOfst + myCookie.length;
      myEnd   = myStr.indexOf(";" , myStart);
      myValue = unescape(myStr.substring(myStart,myEnd));
   }
   return myValue;
}
