// OPEN WINDOW
// url size name
///////////////////////////////////////////////////
function openwin(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
  }

function cinemaKey(url){
    	subWin = window.open("key.html","key","scrollbars=yes,resizable=yes,width=600,height=520");
			onFocus = cinemaKey;
}

function harryReadme(url){
    	subWin = window.open("/harry/readme.html","readme","scrollbars=yes,resizable=yes,width=600,height=520");
			onFocus = cinemaKey;
}

function winIco(url){
    	subWin = window.open("/bbs/icon.shtml","icon","scrollbars=yes,resizable=yes,width=690,height=600");
}


// JavaScript Document
//////////////////////////////////////////
//一定期間「NEW」を表示
//
function newIco(y,m,d){
	oldDay = new Date(y+"/"+m+"/"+d);
	newDay = new Date();
	n = (newDay - oldDay)/(1000*60*60*24);
	if (n <= 7) document.write("<img src='http://www.aruweb.net/script/img/ico_new.gif' alt='NEW' width='29' height='11' />&nbsp;");
}

//一定期間「UP」を表示
//
function upIco(y,m,d){
	oldDay = new Date(y+"/"+m+"/"+d);
	newDay = new Date();
	n = (newDay - oldDay)/(1000*60*60*24);
	if (n <= 7) document.write("<img src='http://www.aruweb.net/script/img/ico_up.gif' alt='更新' width='23' height='11' />&nbsp;");
}


//BLOG ARCHIVES JUMP
//
function jumpArchive() {
	url = document.sel_archive.sel_month.value;
	if(url) {
		location.href = url;
	}
}

//CLICK COPY FOR TRACKBACK URL
//
// no working in firefox
var check = 1;

function OneClick(inside){
	var copyText = eval("document."+inside);
	copyText.focus();
	copyText.select();
	if(document.all&&check==1){
		txRange = copyText.createTextRange();
		txRange.execCommand('copy');
		setTimeout("window.status='クリップボードにURLをコピーしました'",300);
	}
}
