//ウインドウオープン
//url = ページURL
//wid = ウインドウ横幅
//hei = ウインドウ縦幅
function wOpen(url,wid,hei){
	myWin = window.open(url,"","width="+wid+",height="+hei+",toolbar=no,location=no,menubar=no,directories=no,status=no,scrollbars=yes,resizable=no");
}

//メール収集ロボット回避用
function mailto(add){
	document.write('<a href="mailto:',add,'@','friendlink','.co.jp','">',add,'@','friendlink','.co.jp</a>');
}
function mailtoA(add){
	document.write('<a href="mailto:',add,'@','axel-media','.com','">',add,'@','axel-media','.com</a>');
}

//PRの表示削除日時指定
function prTime(y,m,d) {
	delDay = 0; // 何日後に削除するか
	oldDay = new Date(y + "/" + m + "/" +d);
	newDay = new Date();
	d =(newDay - oldDay) / (1000 * 24 * 3600);
	if(d <= delDay) {
		document.write('<div id="PR"><a href="publicity.php"><img src="img/top/pr.gif" width=345 height=70 border=0></a></div>');
	}
}

//テーブル色を交互に変える
function setTableColor(){
	targetTable=document.getElementById('report-list');
	targetTr=targetTable.getElementsByTagName('TR');
	for(i=0; i<targetTr.length; i++){
		TrColor = (i%2) ? "#eeeeee":"#ffffff";
		targetTr[i].setAttribute("bgColor",TrColor);
	}
}
