function contribute( ID, directory, type ){
/*	
	name = 'Contribute';
	contributeWindow = window.open ('', name, 'menubar=no, toolbar=no, location=no, directories=no, status=no, scrollbars=yes, resizable=yes, width=600, height=600' );
	
	if( contributeWindow.document.title.indexOf("2nd Brain :", 0 ) !=0 ){	// Mac判IEではtitle=""となってしまい、常にこの結果がtrueと判定される
		focusWindow( ID, directory, type, name );
	}else{
		notice = "このまま実行すると\n現在「"+contributeWindow.document.title+"」ウインドウに記入されている内容はクリアされますが、構いませんか？";
		if( confirm( notice )){
			focusWindow( ID, directory, type, name );
		}
	}
	//window.openは最近はセキュリティ面から非推奨で、ポップアップブロックするブラウザも多いので使わない。
*/
	document.sendContributeForm.globalID.value = ID;
	document.sendContributeForm.directory.value = directory;
	document.sendContributeForm.type.value = type;
//	document.sendContributeForm.target = name;
	document.sendContributeForm.submit();
}

function focusWindow( ID, directory, type, name ){
	document.sendContributeForm.globalID.value = ID;
	document.sendContributeForm.directory.value = directory;
	document.sendContributeForm.type.value = type;
	document.sendContributeForm.target = name;
	document.sendContributeForm.submit();
}

function quote( ID ){
	name = 'quote';
	contributeWindow = window.open ('', name, 'menubar=no, toolbar=no, location=no, directories=no, status=no, scrollbars=yes, resizable=yes, width=600, height=600' );
	focusWindow( ID, 0, "quote", name );
}

function deleteCheck(){
	if( confirm("削除を実行します")){
		document.ContributeForm.exec.value = "削除";
		document.ContributeForm.submit();
	}
}

function updateCheck(){
	if( confirm("更新します")){
		document.ContributeForm.exec.value = "更新";
		document.ContributeForm.submit();
	}
}

////////
function showMessage( Message, b_reload ){
	if(  -1 == Message.indexOf("ERROR", 0) && b_reload ){
//		window.opener.location.reload();
//		close();
		document.location = "./"
	}
	else alert(  Message );
}

function quitContribute( Message ){
	if( confirm( Message )){
		document.location = "./"
	}
}

////////
function sendTR(){
	alert( document.ContributeForm.refIsTrackback.checked );
	if( document.ContributeForm.refIsTrackback.checked ){
		document.TrackbackPing.submit();
		alert( "トラックバック送信しました。成功したかどうかは手動チェック！");
	}
}