<!-- Start Global JavaScript -->
<!-- Hereafter, sentences are the copyright of this Pages displays. -->
<!-- Copyright 2005 (c) Bunmei Ogawa All Right Reserved -->
<!-- Purpose of This Page:Global JavaScript -->
<!-- Produced and Designed by Peppo -->
<!-- The date:15:04 2005/08/03 -->
<!-- Last Update:15:04 2005/08/03 -->

/* Function
-----------------------------------------------------*/
function gFnc_SendPage(intPage){
/* function name:gFnc_SendPage */
/* function purpose:send page */
/* function Argument: intA:=1(BBS) :=2(BLOG) */
/* function Return value: send page name */
/* the date:23:24 2005/08/03 */
/* latest update:23:24 2005/08/03 */
/* Remarks: */
	var strPage;

	if(intPage==1){ /* BBS */
		strPage = gFnc_SelectBbsPage();
	}else{ /* BLOG */
		strPage = gFnc_SelectBlogPage();
	}
	
	location.href = strPage;
}


function gFnc_SelectBbsPage()
/* function name:gFnc_SelectBbsPage */
/* function purpose:It induces it to an appropriate page(bbs) by a browser.  */
/* function Argument: none */
/* function Return value: send page name */
/* the date:15:12 2005/08/03 */
/* latest update:15:12 2005/08/03 */
/* Remarks: */
{
	var strBrowserName;
	strBrowserName = gFnc_ChkBrowser();
	
	if(strBrowserName == "IE"){
		return "http://bbs1.fc2.com/cgi-bin/e.cgi/12862";
	}else{
		return "http://www.bunmei.com/bbs/700_index.html";
	}
}


function gFnc_SelectBlogPage()
/* function name:gFnc_SelectBlogPage */
/* function purpose:It induces it to an appropriate page(blog) by a browser.  */
/* function Argument: none */
/* function Return value: send page name */
/* the date:15:12 2005/08/03 */
/* latest update:15:12 2005/08/03 */
/* Remarks: */
{
	var strBrowserName;
	strBrowserName = gFnc_ChkBrowser();
	
	if(strBrowserName == "IE"){
		return "http://blog.so-net.ne.jp/bunmei/";
	}else{
		return "510_blog.html";
	}
}


function gFnc_ChkBrowser()
/* function name:gFnc_ChkBrowser */
/* function purpose:Check User Browser */
/* function Argument: none */
/* function Return value: browser name */
/* the date:15:07 2005/08/03 */
/* latest update:15:07 2005/08/03 */
/* Remarks:However, complete operation is not secured. */
{
	var uName = navigator.userAgent;
	
	if (uName.indexOf("Firefox") > -1) return "FF";
	if (uName.indexOf("Safari") > -1) return "SF";
	if (uName.indexOf("Opera") > -1) return "OP";
	if (uName.indexOf("MSIE") > -1) return "IE";
	/* otherwise */
	return "NN";
}