function nico_check( n ) {
	var f = document[n];
	if( f.url.value.match('/') ) {
		a = f.url.value.split('/');
		f.url.value = a[a.length - 1];
	}
	if( f.url.value ) {
		f.submit();
	}
}
function Copy( str ) {
	clipboardData.setData( 'text', str ); 
}
function CopyID( id ) {
	clipboardData.setData( 'text', document.getElementById(id).value ); 
}
function PageJump(id){
	obj = document.getElementById(id);
	y = obj.offsetTop;
	scrollTo(0,y);
}
function ShowHide(id) {
	var d = document.getElementById(id);
	if( d.style.display == 'block' ) {
		d.style.display = 'none';
	}
	else {
		d.style.display = 'block';
	}
}
function ShowHideStr( id, str ) {
	var obj = document.getElementById(id);
	obj.style.display = (obj.style.display == 'block') ? 'none' : 'block';
	document.getElementById( id ).innerHTML = str;
}

/*#################################################################################################
	ポップアップ
#################################################################################################*/
/*=============================================================================
	初期ロード
=============================================================================*/
function PopupStart() {
	// ポップアップを表示するspanタグを作成
	var e = document.createElement( 'span' );
	e.setAttribute( 'id', 'gPopup' );
	document.body.appendChild( e );
}

function PopupText( e, text ) {
	// e=arguments[0]と記述
	var d = document.getElementById('gPopup');
	var cx;
	var cy;
	var sx = document.documentElement.scrollLeft || document.body.scrollLeft;
	var sy = document.documentElement.scrollTop || document.body.scrollTop;
	if( e ) {
		// ff
		cx = e.clientX + sx;
		cy = e.clientY + sy;
	} else {
		// ie
		cx = event.clientX + sx;
		cy = event.clientY + sy;
	}
	d.style.left = cx + 'px';
	d.style.top  = cy + 'px';
	d.style.display  = 'block';
	d.innerHTML = text;
}

/*=============================================================================
	ポップアップの非表示
=============================================================================*/
function PopupHide( ele_id ) {
	document.getElementById('gPopup').style.display = 'none';
}


