function InitialLoad() {

	Layout_Page();
	Hp_SelectMenu(0);
}

function ChkBrwsr() {

	var 	B_Nm	= getBrowserName();
	var	B_Ver	= getBrowserVersion();
	var	B_Os	= getOSType();

	var	E_Alert	= "ここから先は「Microsoft Internet Explorer Ver6 以上」の\n";
		E_Alert	+= "ブラウザ以外はご使用になれません。";
		E_Alert	+= "\n\n";
		E_Alert	+= "ご使用のＯＳ："+B_Os+"\n";
		E_Alert	+= "ご使用のブラウザ："+B_Nm+"系ブラウザ(Ver:"+B_Ver+")\n";

	if(B_Os != "Windows") {
		alert(E_Alert);
		return false;
	}
	if(B_Nm != "Explorer") {
		alert(E_Alert);
		return false;
	}
	if(B_Ver < 6) {
		alert(E_Alert);
		return false;
	}	
	return true;
}
function WatchWinHeight() {
	//Cont_Height	= PageHeight - ((PageHeight - document.body.clientHeight) + 91 + 25 + 20);
	Cont_Height	= PageHeight - ((PageHeight - document.body.clientHeight) + 91 + 40 + 20);
	$('CONT').style.height		= Cont_Height + "px";
	$('MSK').style.height		= Cont_Height + "px";
	//$('TAIL').style.top		= Cont_Height + ((91 + 25) - 3)+ "px";
	$('TAIL').style.top		= Cont_Height + ((91 + 40) - 3)+ "px";

}
//===============================================================================
//	ページ構成
//===============================================================================
function Layout_Page() {

	//	PG

	$('PG').style.width		= PageWidth + "px";

	Layout_HDR();
	Layout_Hp_MENU();
	Layout_CONT();
	Layout_TAIL();
}
//	HDR
function Layout_HDR() {

	//-----	Contents

	var	HT	= "";

	HT	+= "<div id='HDR_1'></div>";
	HT	+= "	<div id='HDR_2'>";
	HT	+= "		<div id='HDR_2L'>";
	HT	+= "			<img src='MyHomePage2/img/LOGO_SYONAN.jpg'>";
	HT	+= "		</div>";
	HT	+= "		<div id='HDR_2R' align='right'>";
	HT	+= 			Owner_String + " All Rights Reserved.<br>";
	HT	+=			"Last Update:<span id='LastUpdate'>" + Last_Update + "</span>";
	HT	+= "		</div>";
	HT	+= "	</div>";
	HT	+= "<div id='HDR_3'></div>";

	$('HDR').innerHTML	= HT;

	//-----	Attribute


		//	HDR

		$('HDR').style.position		= "absolute";
		$('HDR').style.top		= "0px";
		$('HDR').style.left		= "0px";
		$('HDR').style.width		= PageWidth + "px";
		$('HDR').style.height		= "91px";
		$('HDR').style.border		= "1px solid " + varAroundColor;
		$('HDR').style.background	= varBgColor;
		$('HDR').style.overflow		= "hidden";

		//	HDR_1

		$('HDR_1').style.position	= "absolute";
		$('HDR_1').style.top		= "1px";
		$('HDR_1').style.left		= "4px";
		$('HDR_1').style.width		= (PageWidth -10) + "px";
		$('HDR_1').style.height		= "2px";
		$('HDR_1').style.background	= varBorderColor;
		$('HDR_1').style.overflow	= "hidden";

		//	HDR_2

		$('HDR_2').style.position	= "absolute";
		$('HDR_2').style.top		= "6px";
		$('HDR_2').style.left		= "3px";
		$('HDR_2').style.width		= (PageWidth - 6) + "px";
		$('HDR_2').style.height		= "78px";
		$('HDR_2').style.border		= "1px solid " + varBgColor;
		$('HDR_2').style.background	= varBgColor;
		$('HDR_2').style.overflow	= "hidden";

		//	HDR_2L

		$('HDR_2L').style.position	= "absolute";
		$('HDR_2L').style.top		= "1px";
		$('HDR_2L').style.left		= "0px";
		$('HDR_2L').style.width		= (PageWidth * 0.7) + "px";
		$('HDR_2L').style.height	= "78px";
		$('HDR_2L').style.border	= "1px solid " + varBgColor;
		$('HDR_2L').style.background	= varBgColor;
		$('HDR_2L').style.overflow	= "hidden";

		//	HDR_2R

		$('HDR_2R').style.position	= "absolute";
		$('HDR_2R').style.top		= "20px";
		$('HDR_2R').style.left		= ((PageWidth * 0.7)+2) + "px";
		$('HDR_2R').style.width		= ((PageWidth * 0.3)-12) + "px";
		$('HDR_2R').style.height	= "42px";
		$('HDR_2R').style.fontFamily	= "ＭＳ Ｐゴシック";
		$('HDR_2R').style.fontSize	= "12px";
		$('HDR_2R').style.padding	= "1px";
		$('HDR_2R').style.border	= "1px solid " + varBgColor;
		$('HDR_2R').style.background	= varBgColor;
		$('HDR_2R').style.overflow	= "hidden";

		//	HDR_3

		$('HDR_3').style.position	= "absolute";
		$('HDR_3').style.top		= "85px";
		$('HDR_3').style.left		= "4px";
		$('HDR_3').style.width		= (PageWidth-10) + "px";
		$('HDR_3').style.height		= "3px";
		$('HDR_3').style.background	= varBorderColor;
		$('HDR_3').style.overflow	= "hidden";
}

//	Hp_MENU
function Layout_Hp_MENU() {

	$('MENU').style.position	= "absolute";
	$('MENU').style.top		= "90px";
	$('MENU').style.left		= "0px";
	$('MENU').style.width		= PageWidth;
	//$('MENU').style.height		= "25px";
	$('MENU').style.height		= "40px";
	$('MENU').style.border		= "1px solid " + varAroundColor;
	$('MENU').style.background	= varBgColor;

	var	Menu_Id	= "";
	var	ButtonWidth	= (PageWidth-(cntMenu-1)-2)/cntMenu;

	var	HT	= "";
	var	StPos	= 3;

	//var	GradStart	= "#ff"+varBorderColor.replace("#","");
	var	GradStart	= "#ff379bec";
	var	GradEnd	= "#ff173bfc";
//379bec

	for(i=0;i<cntMenu;i++) {
		Menu_Id	= "MENU_"+i;
		HT	= "<div id='"+Menu_Id+"' style='line-height:130%;' ";
		HT	+= " onMouseOver='movr(this.id);' onMouseout='mout(this.id);' onClick='Hp_SelectMenu(" + i + ");'>";
		//HT	+= " onMouseOver='movr(this.id);' onMouseout='mout(this.id);'>";
		HT	+= Menu_Name[i] + "</div>";

		$('MENU').innerHTML	+= HT;
		

		$($(Menu_Id).id).style.filter	= "progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr="+GradStart+",EndColorStr="+GradEnd+");";
		$($(Menu_Id).id).style.fontFamily	= "ＭＳ Ｐゴシック";
		$($(Menu_Id).id).style.fontSize		= "12px";
		$($(Menu_Id).id).style.position		= "absolute";
		$($(Menu_Id).id).style.top		= "3px";
		//$($(Menu_Id).id).style.height		= "18px";
		$($(Menu_Id).id).style.height		= "32px";
		$($(Menu_Id).id).style.width		= ButtonWidth + "px";
		$($(Menu_Id).id).style.left		= StPos + "px";
		$($(Menu_Id).id).style.border		= "1px solid " + varBgColor;
		//$($(Menu_Id).id).style.background	= varBorderColor;
		//$($(Menu_Id).id).style.color		= varBgColor;
		$($(Menu_Id).id).style.color		= "#cccccc";
		$($(Menu_Id).id).align		= "center";
		$($(Menu_Id).id).style.padding		= "5px";

		StPos	= StPos + ButtonWidth ;

	}

}

//	CONTENTS
function Layout_CONT() {

	$('CONT').style.position	= "absolute";
	//$('CONT').style.top		= "114px";
	$('CONT').style.top		= "129px";
	$('CONT').style.left		= "0px";
	$('CONT').style.width		= PageWidth;
	//Cont_Height	= PageHeight - ((PageHeight - document.body.clientHeight) + 91 + 25 + 20);
	Cont_Height	= PageHeight - ((PageHeight - document.body.clientHeight) + 91 + 40 + 20);
	$('CONT').style.height		= Cont_Height + "px";
	$('CONT').style.fontFamily	= "ＭＳ Ｐゴシック";
	$('CONT').style.fontSize	= "12px";
	$('CONT').style.border		= "1px solid " + varAroundColor;
	$('CONT').style.background	= varBgColor;
	$('CONT').style.color		= varBgColor;
	$('CONT').style.overflow	= "scroll";

	$('MSK').style.position	= "absolute";
	//$('MSK').style.top		= "114px";
	$('MSK').style.top		= "129px";
	$('MSK').style.left		= "0px";
	$('MSK').style.width		= PageWidth;
	//Cont_Height	= PageHeight - ((PageHeight - document.body.clientHeight) + 91 + 25 + 20);
	Cont_Height	= PageHeight - ((PageHeight - document.body.clientHeight) + 91 + 40 + 20);
	$('MSK').style.height		= Cont_Height + "px";
	$('MSK').style.fontFamily	= "ＭＳ Ｐゴシック";
	$('MSK').style.fontSize	= "12px";
	$('MSK').style.border		= "1px solid " + varBorderColor;
	$('MSK').style.background	= varBorderColor;
	$('MSK').style.color		= varBorderColor;
	$('MSK').style.overflow	= "hidden";
	$('MSK').style.filter	= "Alpha(Opacity=20,FinishOpacity=50,Style=1)";
	$('MSK').style.display	= "none";

}

//	TAIL
function Layout_TAIL() {

	$('TAIL').style.position	= "absolute";
	//$('TAIL').style.top		= Cont_Height + (91 + 25 -2) + "px";
	$('TAIL').style.top		= Cont_Height + (91 + 40 -2) + "px";
	$('TAIL').style.left		= "0px";
	$('TAIL').style.width		= PageWidth;
	$('TAIL').style.height		= "20px";
	$('TAIL').style.fontFamily	= "ＭＳ Ｐゴシック";
	$('TAIL').style.fontSize	= "12px";
	$('TAIL').style.border		= "1px solid " + varBorderColor;
	$('TAIL').style.background	= varBorderColor;
	$('TAIL').style.color		= varBgColor;
	$('TAIL').style.overflow	= "hidden";
	$('TAIL').align			= "center";
	$('TAIL').innerHTML	= "Copyright "+ Owner_String + " All Rights Reserved.";
}

//
//	マウス動作
//
function movr(id) {

	document.body.style.cursor	= "hand";
	if(id == ClickMenuId) {
		return;
	}
	//$(id).style.background		= Menu_On_Bg;
	$(id).style.color		= Menu_On_Str;
}

function mout(id) {
	document.body.style.cursor	= "default";
	if(id == ClickMenuId) {
		return;
	}
	//$(id).style.background		= Menu_Off_Bg;
	$(id).style.color		= Menu_Off_Str;
}

//
//      マウス動作
//
function lmovr(id) {

        document.body.style.cursor      = "hand";
        $(id).style.background          = "#ccccff";	//Menu_On_Bg;
        $(id).style.border          = "1px solid #99ffcc";	//Menu_On_Bg;
}

function lmout(id) {
        document.body.style.cursor      = "default";
        $(id).style.background          = "#ffffff";	//Menu_On_Bg;
        $(id).style.border          = "1px solid #ffffff";	//Menu_On_Bg;
}

//
//	メニュークリック時処理
//
function Hp_SelectMenu(n) {

	clearInterval(tm0);
	tm0_cnt	= 0;
	clearInterval(tm1);
	tm1_cnt	= 0;
	clearInterval(tm2);
	tm2_cnt	= 0;

	if(Map_Opn==1) {
		CloseMap();
	}
	if(Sub_Opn==1) {
		CloseSub();
	}

	for(i=0;i<cntMenu;i++) {
		Menu_Id = "MENU_"+i;
		$($(Menu_Id).id).style.background	= varBorderColor;
		$($(Menu_Id).id).style.color		= varBgColor;
	}
	ClickMenuId	= "MENU_"+n;
	$($(ClickMenuId).id).style.background		= Menu_Actv_Bg;
	$($(ClickMenuId).id).style.color		= Menu_Actv_Str;

        switch(n) {
        case 0:
                ResetCont(n);
		cnt_Disp_Div	= 1;
		Disp_Div[0]	= "CONT_TOP";
		Request_HTTP("SYNC","Top","MyHomePage2/php/Read_Doc.php");
		Set_Top_Dyn_Img();
                break;
        case 1:
                ResetCont(n);
		cnt_Disp_Div	= 1;
		Disp_Div[0]	= "CONT";
		Request_HTTP("ASYNC","Services","MyHomePage2/php/Read_Doc.php");
                break;
        case 2:
                ResetCont(n);
		cnt_Disp_Div	= 1;
		Disp_Div[0]	= "CONT";
		Request_HTTP("ASYNC","Profile","MyHomePage2/php/Read_Doc.php");
                break;
        case 3:
                ResetCont(n);
		cnt_Disp_Div	= 1;
		Disp_Div[0]	= "CONT";
		Request_HTTP("ASYNC","Recruitment","MyHomePage2/php/Read_Doc.php");
                break;
        case 4:
		Sub_Opn	= 1;
		if(!ChkBrwsr()) {	// I.E以外を除外
			return;
		}

		$('SUB').innerHTML		= "";
		$('SUB').style.display		= "";
		$('SUB').style.filter		= "Alpha(Opacity=100,FinishOpacity=100,Style=1)";
		$('SUB').style.position		= "absolute";
		$('SUB').style.top	= "260px";
		$('SUB').style.left		= ((PageWidth/2)-150) + "px";
		$('SUB').style.width		= "1px";
		$('SUB').style.border		= "1px solid " + varBorderColor;
		$('SUB').style.background	= varBgColor;
		$('SUB').style.overflow		= "hidden";

		$('MSK').style.display	= "";
                tm2_cnt  = 0;
                tm2      = setInterval('Disp_Login()', 30);
                break;
        }
}

//
//	DIV[CONT]領域クリア
//
function ResetCont(n) {

	switch(n) {
	case 0:	// Top

		// CONT定義

		$('CONT').innerHTML	= "<div id='DYN_MSK'>";
		$('CONT').innerHTML	+= "<div id='DYN_IMG_1'></div>";
		$('CONT').innerHTML	+= "<div id='DYN_IMG_2'></div>";
		$('CONT').innerHTML	+= "<div id='DYN_IMG_3'></div>";
		$('CONT').innerHTML	+= "<div id='DYN_IMG_4'></div>";
		$('CONT').innerHTML	+= "<div id='DYN_IMG_5'></div>";
		$('CONT').innerHTML	+= "<div id='DYN_IMG_6'></div>";
		$('CONT').innerHTML	+= "<div id='DYN_IMG_7'></div>";
		$('CONT').innerHTML	+= "<div id='DYN_IMG_8'></div>";
		$('CONT').innerHTML	+= "<div id='DYN_IMG_STR'></div>";
		$('CONT').innerHTML	+= "<div id='DYN_MSK_TOP'></div>";
		$('CONT').innerHTML	+= "<div id='DYN_MSK_LEFT'></div>";
		$('CONT').innerHTML	+= "<div id='DYN_MSK_RIGHT'></div>";
		$('CONT').innerHTML	+= "<div id='DYN_MSK_TAIL'></div>";
		$('CONT').innerHTML	+= "</div>";
		$('CONT').innerHTML	+= "<div id='CONT_TOP'></div>";		

		// イメージエリア定義

		$('DYN_MSK').style.position	= "absolute";
		$('DYN_MSK').style.top		= "0px";
		$('DYN_MSK').style.left		= "0px";
		$('DYN_MSK').style.width	= PageWidth;
		$('DYN_MSK').style.height	= "300px";
		$('DYN_MSK').style.border	= "1px solid " + varBgColor;
		$('DYN_MSK').style.background	= varBgColor;
		$('DYN_MSK').style.overflow	= "hidden";

		$('DYN_MSK_TOP').style.position		= "absolute";
		$('DYN_MSK_TOP').style.top		= "0px";
		$('DYN_MSK_TOP').style.left		= "0px";
		$('DYN_MSK_TOP').style.width		= PageWidth;
		$('DYN_MSK_TOP').style.height		= "5px";
		$('DYN_MSK_TOP').style.border		= "1px solid " + varBgColor;
		$('DYN_MSK_TOP').style.background	= varBgColor;
		$('DYN_MSK_TOP').style.overflow		= "hidden";

		$('DYN_MSK_TAIL').style.position	= "absolute";
		$('DYN_MSK_TAIL').style.top		= "255px";
		$('DYN_MSK_TAIL').style.left		= "0px";
		$('DYN_MSK_TAIL').style.width		= PageWidth;
		$('DYN_MSK_TAIL').style.height		= "45px";
		$('DYN_MSK_TAIL').style.border		= "1px solid " + varBgColor;
		$('DYN_MSK_TAIL').style.background	= varBgColor;
		$('DYN_MSK_TAIL').style.overflow	= "hidden";

		$('DYN_MSK_LEFT').style.position	= "absolute";
		$('DYN_MSK_LEFT').style.top		= "5px";
		$('DYN_MSK_LEFT').style.left		= "0px";
		$('DYN_MSK_LEFT').style.width		= "5px";
		$('DYN_MSK_LEFT').style.height		= "300px";
		$('DYN_MSK_LEFT').style.border		= "1px solid " + varBgColor;
		$('DYN_MSK_LEFT').style.background	= varBgColor;
		$('DYN_MSK_LEFT').style.overflow	= "hidden";

		$('DYN_MSK_RIGHT').style.position	= "absolute";
		$('DYN_MSK_RIGHT').style.top		= "5px";
		//$('DYN_MSK_RIGHT').style.left		= PageWidth - 50;
		$('DYN_MSK_RIGHT').style.left		= PageWidth - 450;
		$('DYN_MSK_RIGHT').style.width		= "500px";
		$('DYN_MSK_RIGHT').style.height		= "300px";
		$('DYN_MSK_RIGHT').style.border		= "1px solid " + varBgColor;
		$('DYN_MSK_RIGHT').style.background	= varBgColor;
		$('DYN_MSK_RIGHT').style.overflow	= "hidden";

		// 初期位置

		$('DYN_IMG_1').style.top		= "-25px";
		$('DYN_IMG_1').style.left		= "-40px";
		$('DYN_IMG_2').style.top		= "-10px";
		$('DYN_IMG_2').style.left		= "-50px";
		$('DYN_IMG_3').style.top		= "-20px";
		$('DYN_IMG_3').style.left		= "0px";
		$('DYN_IMG_4').style.top		= "-70px";
		$('DYN_IMG_4').style.left		= "-30px";
		$('DYN_IMG_5').style.top		= "-70px";
		$('DYN_IMG_5').style.left		= "-10px";
		$('DYN_IMG_6').style.top		= "-30px";
		$('DYN_IMG_6').style.left		= "-40px";
		$('DYN_IMG_7').style.top		= "-70px";
		$('DYN_IMG_7').style.left		= "0px";
		$('DYN_IMG_8').style.top		= "-10px";
		$('DYN_IMG_8').style.left		= "-30px";

		var	tmp_DYM_IMG;

		for(i=1;i<9;i++) {

			tmp_DYM_IMG	= "DYN_IMG_"+i;

			$($(tmp_DYM_IMG).id).style.position		= "absolute";
			$($(tmp_DYM_IMG).id).style.width		= "500px";
			$($(tmp_DYM_IMG).id).style.height		= "375px";
			$($(tmp_DYM_IMG).id).style.border		= "1px solid " + varBgColor;
			$($(tmp_DYM_IMG).id).style.background		= varBgColor;
			$($(tmp_DYM_IMG).id).style.overflow		= "hidden";
		}

		$('DYN_IMG_STR').style.position	= "absolute";
		$('DYN_IMG_STR').style.top		= "210px";
		$('DYN_IMG_STR').style.left		= "0px";
		$('DYN_IMG_STR').style.width		= "480px";
		$('DYN_IMG_STR').style.height		= "40px";
		$('DYN_IMG_STR').style.border		= "1px solid " + varBgColor;
		//$('DYN_IMG_STR').style.background	= varBgColor;
		$('DYN_IMG_STR').style.overflow		= "hidden";
		$('DYN_IMG_STR').style.fontFamily	= "ＭＳ Ｐゴシック";
		$('DYN_IMG_STR').style.fontSize		= "24px";
		$('DYN_IMG_STR').style.padding		= "8px";
		$('DYN_IMG_STR').style.background	= "#ffffff";
		$('DYN_IMG_STR').style.color		= "#343434";
		$('DYN_IMG_STR').innerHTML   		= "安全施工が我が社の使命";
		$('DYN_IMG_STR').style.filter		= "Alpha(Opacity=0,FinishOpacity=0,Style=1)";


		// CONT_TOP定義

		$('CONT_TOP').style.position	= "absolute";
		$('CONT_TOP').style.top		= "260px";
		$('CONT_TOP').style.left		= "0px";
		$('CONT_TOP').style.width		= PageWidth;
		Cont_Height	= PageHeight - ((PageHeight - document.body.clientHeight) + 91 + 25 + 248 + 20);
		$('CONT_TOP').style.height		= Cont_Height + "px";
		$('CONT_TOP').style.fontFamily	= "ＭＳ Ｐゴシック";
		$('CONT_TOP').style.fontSize	= "12px";
		//$('CONT_TOP').style.border		= "1px solid " + varBorderColor;
		$('CONT_TOP').style.border		= "1px solid " + varBgColor;
		$('CONT_TOP').style.background	= varBgColor;
		$('CONT_TOP').style.color		= varBgColor;
		$('CONT_TOP').style.overflow	= "scroll";
		$('CONT_TOP').innerHTML	= "";

		// CONT補正

		//Cont_Height	= PageHeight - ((PageHeight - document.body.clientHeight) + 91 + 25 + 20);
		Cont_Height	= PageHeight - ((PageHeight - document.body.clientHeight) + 91 + 40 + 20);
		$('CONT').style.height		= Cont_Height + "px";
		$('CONT').style.overflow	= "hidden";
		break;
	default:
		Layout_CONT();
		$('CONT').innerHTML	= "";
	}

	$('MSK').style.display	= "none";
}
//	お問合せメール送信
//
function mail_Snd() {

	//-----	入力内容チェック

	if($('Inq_Cmp_Nm').value == "") {
		alert("氏名が未入力です。");
		return;
	}
	if(($('Inq_Tel_1').value == "") || ($('Inq_Tel_2').value == "") || ($('Inq_Tel_3').value == "")) {
		alert("電話番号が未入力です。");
		return;
	}
	if(($('Inq_Usr_madr_1A').value == "") || ($('Inq_Usr_madr_1B').value == "")) {
		alert("メールアドレスが未入力です。");
		return;
	}
	if(($('Inq_Usr_madr_2A').value == "") || ($('Inq_Usr_madr_2B').value == "")) {
		alert("メールアドレス（再入力）が未入力です。");
		return;
	}
	if($('Inq_Usr_madr_1A').value != $('Inq_Usr_madr_2A').value) {
		alert("メールアドレスが再入力したものと違います。");
		return;
	}
	if($('Inq_Usr_madr_1B').value != $('Inq_Usr_madr_2B').value) {
		alert("メールアドレスが再入力したものと違います。");
		return;
	}
	if($('Inq_Usr_adr').value == "") {
		alert("住所が未入力です。");
		return;
	}
	//if($('Inq_Contents').value == "") {
	//	alert("お問合せ内容が未入力です。");
	//	return;
	//}

	//-----	確認

	if(!window.confirm("この内容で送信しますか？")) {
		return;
	}

	//-----	メール送信

	var rnd_str     = Math.random();        // キャッシュ対策
	var	arg	= "";
	arg	+= $('Inq_Cmp_Nm').value	+ "__:__";
	arg	+= $('Inq_Usr_Nm').value	+ "__:__";
	arg	+= $('Inq_Usr_NmKn').value	+ "__:__";
	arg	+= $('Inq_Usr_dept').value	+ "__:__";
	arg	+= $('Inq_Tel_1').value	+ "__:__";
	arg	+= $('Inq_Tel_2').value	+ "__:__";
	arg	+= $('Inq_Tel_3').value	+ "__:__";
	arg	+= $('Inq_Usr_madr_1A').value	+ "__:__";
	arg	+= $('Inq_Usr_madr_1B').value	+ "__:__";
	arg	+= $('Inq_Usr_adr').value	+ "__:__";
	arg	+= $('Inq_Contents').value	+ "__:__" + rnd_str;

	cnt_Disp_Div	= 1;
	Disp_Div[0]	= "Contact_Form";
	HTTP_RET	= false;
	Request_HTTP("SYNC",arg,"../php/Mail_Snd.php");

	//-----	送信後メッセージ
	var	HT	= "";
	//if(HTTP_RET == true) {
		HT	+= "<table cellspacing=1 align='center' cellpadding=3 width='70%' bgcolor='#ffffff'>";
		HT	+= "<td class='C1N' bgcolor='#ffffff' width='100%' align='center'>";
		HT	+= "<br><br><br>お問合せ有難うございます。<br>";
		HT	+= "後ほど、ご入力頂きましたメールアドレスへご返信申し上げます。";
		HT	+= "</td>";
		HT	+= "</table>";
	//} else {
	//	HT	+= "<table cellspacing=1 align='center' cellpadding=3 width='70%' bgcolor='#ffffff'>";
	//	HT	+= "<td class='C1N' bgcolor='#ffffff' width='100%' align='center'>";
	//	HT	+= "<br><br><br>お問合せ有難うございます。<br>";
	//	HT	+= "お問合せ内容の送信でエラーが発生しました。<br>";
	//	HT	+= "恐れ入りますが、もう一度ご入力頂くか、「会社概要」ページの「本社総務」宛メールリンクから送信頂けますようお願い申し上げます。<br>";
	//	HT	+= "</td>";
	//	HT	+= "</table>";

	//}
	$('Contact_Form').innerHTML	= HT;

}

function PopMap() {
	
	if(Sub_Opn == 1) {	// ログインレイヤが開いている
		return;
	}

	Map_Opn	= 1;

	$('MAP').style.display	= "";
	$('MAP').style.position	= "absolute";
	$('MAP').style.top	= "114px";
	$('MAP').style.left	= "200px";
	$('MAP').style.width	= "500px";
	$('MAP').style.height	= "400px";
	$('MAP').style.background	= "#eeeeff";
	$('MAP').style.border	= "5px double " + varBorderColor;

}

function CloseMap() {
	$('MAP').style.display	= "none";
	Map_Opn	= 0;
}

function CloseSub() {
	Sub_Opn	= 0;
	$('SUB').style.display	= "none";
	$('MSK').style.display	= "none";
}

function Disp_Login() {

	switch(tm2_cnt) {
	case 10:
		$('SUB').style.border		= "8px double " + varBorderColor;
		clearInterval(tm2);

		$('SUB').innerHTML	= "";
		cnt_Disp_Div	= 1;
		Disp_Div[0]	= "SUB";
		Request_HTTP("ASYNC","Login","MyHomePage2/php/Read_Doc.php");
		break;
	default:
		$('SUB').style.top	= "260px";
		$('SUB').style.left	= ((PageWidth/2)-(tm2_cnt*15)) + "px";
		$('SUB').style.width	= (tm2_cnt*30) +"px";
		//$('SUB').style.height	= "180px";
		$('SUB').style.height	= "200px";
		tm2_cnt++;
		break;
	}
return;
}

function Login_Cnsl() {

	Sub_Opn	= 0;
	$('SUB').innerHTML	= "";
	$('SUB').style.display	= "none";
	$('MSK').style.display	= "none";

}

function Login_Chk() {

	var	arg	= $('LIN').value + "__:__" + $('PWD').value;

	Sub_Left	= $('SUB').style.left.replace("px","");
	cnt_Disp_Div	= 1;
	Disp_Div[0]	= "HDR_2R";
	Request_HTTP("SYNC",arg,"MyHomePage2/php/Login_Chk.php");


	if(HTTP_RET) {
		//$('Login_Err_Msg').innerHTML	= "";
		//location.href="https://ssl33.secureserver.jp/~ashimo/routewell.com/CP/dev/gw.html";
//V2		doApl();
		doApl($('LIN').value);	//V2
	} else {
		$('Err_Msg').innerHTML	= "<span class='C1R'>" + Err_Inf + "</span>";
		tm1_cnt  = 0;
		clearInterval(tm1);
		tm1      = setInterval('Move_Err()', 30);
	}


}

function Clr_Err() {
	$('Err_Msg').innerHTML	= "";
}

function Move_Err() {

	switch(tm1_cnt) {
	case 1:
	case 3:
		$('SUB').style.left	= (Sub_Left * 0.99) + "px";
		tm1_cnt++;
		break;
	case 0:
	case 2:
	case 4:
		$('SUB').style.left	= (Sub_Left * 1.01) + "px";
		tm1_cnt++;
		break;
	case 5:
		clearInterval(tm1);
		tm1_cnt  = 0;
		$('SUB').style.left	= Sub_Left + "px";
		break;
	}
}

function Set_Top_Dyn_Img() {

	//$('DYN_MSK_RIGHT').innerHTML   = "<img src='MyHomePage2/img/top/copystr.jpg'>";

	var	str	= "";
	str	+= "<div id='topics_bdy'></div>";
	str	+= "<div id='topics_hdr'><span class='C2R'><b>Ｔｏｐｉｃｓ&nbsp;＆&nbsp;Ｎｅｗｓ</b></span></div>";

	$('DYN_MSK_RIGHT').innerHTML	= str;	
	$('DYN_MSK_RIGHT').style.padding	= "10px";	
	$('DYN_MSK_RIGHT').align	= "left";	

	$('topics_hdr').style.position	= "absolute";	
	$('topics_hdr').style.top	= "0px";	
	$('topics_hdr').style.left	= "200px";	
	$('topics_hdr').style.width	= "400px";	
	$('topics_hdr').style.height	= "16px";	
	$('topics_hdr').style.background	= "#ffffff";	
	$('topics_hdr').style.filter	= "Alpha(Opacity=0,FinishOpacity=0,Style=1)";

	$('topics_bdy').style.position	= "absolute";	
	$('topics_bdy').style.top	= "0px";	
	$('topics_bdy').style.left	= "10px";	
	$('topics_bdy').style.width	= "400px";	
	$('topics_bdy').style.height	= "0px";	
	//$('topics_bdy').style.background	= "#ffffff";	
	$('topics_bdy').style.border	= "2px dotted #cccccc";

	$('DYN_IMG_8').innerHTML   = "<img src='MyHomePage2/img/top/top_1.jpg'>";
	$('DYN_IMG_8').style.filter	= "Alpha(Opacity=100,FinishOpacity=100,Style=1)";

	$('DYN_IMG_7').innerHTML   = "<img src='MyHomePage2/img/top/top_2.jpg'>";
	$('DYN_IMG_7').style.filter	= "Alpha(Opacity=100,FinishOpacity=100,Style=1)";

	$('DYN_IMG_6').innerHTML   = "<img src='MyHomePage2/img/top/top_3.jpg'>";
	$('DYN_IMG_6').style.filter	= "Alpha(Opacity=100,FinishOpacity=100,Style=1)";

	$('DYN_IMG_5').innerHTML   = "<img src='MyHomePage2/img/top/top_4.jpg'>";
	$('DYN_IMG_5').style.filter	= "Alpha(Opacity=100,FinishOpacity=100,Style=1)";

	$('DYN_IMG_4').innerHTML   = "<img src='MyHomePage2/img/top/top_5.jpg'>";
	$('DYN_IMG_4').style.filter	= "Alpha(Opacity=100,FinishOpacity=100,Style=1)";

	$('DYN_IMG_3').innerHTML   = "<img src='MyHomePage2/img/top/top_6.jpg'>";
	$('DYN_IMG_3').style.filter	= "Alpha(Opacity=100,FinishOpacity=100,Style=1)";

	$('DYN_IMG_2').innerHTML   = "<img src='MyHomePage2/img/top/top_7.jpg'>";
	$('DYN_IMG_2').style.filter	= "Alpha(Opacity=100,FinishOpacity=100,Style=1)";

	$('DYN_IMG_1').innerHTML   = "<img src='MyHomePage2/img/top/top_8.jpg'>";
	$('DYN_IMG_1').style.filter	= "Alpha(Opacity=100,FinishOpacity=100,Style=1)";


	tm0_cnt  = 0;
	clearInterval(tm0);
	tm0      = setInterval('Exec_Dyn_Img()', 100);

}

function Exec_Dyn_Img() {

	var     alp;
	var     cnt;
	var	tmp_DYN_IMG = "";
	var	MoveType = "";
	var	str_disp = 0;
	
	if(tm0_cnt<=10) {
		MoveType	= "";
		$('topics_hdr').style.left	= (200 - (tm0_cnt*20)) + "px";
		$('topics_hdr').style.filter	= "Alpha(Opacity="+(tm0_cnt*10)+",FinishOpacity="+(tm0_cnt*10)+",Style=1)";
		if(tm0_cnt==10) {
			$('topics_hdr').style.left	= "10px";
			$('topics_hdr').innerHTML	= "<span class='C2R'>★</span>" + $('topics_hdr').innerHTML;
			$('topics_bdy').style.top	= "26px";	
		}
		tm0_cnt++;
        }
	if((tm0_cnt>10)&&(tm0_cnt<=30)) {
		MoveType	= "";
		cnt	= tm0_cnt - 11;
		$('topics_bdy').style.height	= (cnt * 11) + "px";
		if(tm0_cnt==30) {
			$('topics_bdy').style.height	= "220px";
			$('topics_bdy').style.overflow	= "scroll";
			cnt_Disp_Div	= 1;
			Disp_Div[0]	= "topics_bdy";
			Request_HTTP("ASYNC","","MyHomePage2/php/Tpcs_List.php");
		}
		tm0_cnt++;
	}
	if((tm0_cnt>30)&&(tm0_cnt<=50)) {
		MoveType	= "";
		tm0_cnt++;
	}

	if((tm0_cnt>50)&&(tm0_cnt<=60)) {
		MoveType	= "U";
		cnt	=tm0_cnt - 50;
		tmp_DYN_IMG	= "DYN_IMG_8";
        }
	if((tm0_cnt>60)&&(tm0_cnt<=110)) {
		MoveType	= "";
		tm0_cnt++;
        }

	if((tm0_cnt>110)&&(tm0_cnt<=120)) {
		MoveType	= "L";
		cnt	=tm0_cnt - 110;
		tmp_DYN_IMG	= "DYN_IMG_7";
        }
	if((tm0_cnt>120)&&(tm0_cnt<=170)) {
		MoveType	= "";
		tm0_cnt++;
        }
	if((tm0_cnt>170)&&(tm0_cnt<=180)) {
		MoveType	= "U";
		cnt	=tm0_cnt - 170;
		tmp_DYN_IMG	= "DYN_IMG_6";
        }

	if((tm0_cnt>180)&&(tm0_cnt<=230)) {
		MoveType	= "";
		tm0_cnt++;
        }
	if((tm0_cnt>230)&&(tm0_cnt<=240)) {
		MoveType	= "L";
		cnt	=tm0_cnt - 230;
		tmp_DYN_IMG	= "DYN_IMG_5";
        }

	if((tm0_cnt>240)&&(tm0_cnt<=290)) {
		MoveType	= "";
		tm0_cnt++;
        }
	if((tm0_cnt>290)&&(tm0_cnt<=300)) {
		MoveType	= "U";
		cnt	=tm0_cnt - 290;
		tmp_DYN_IMG	= "DYN_IMG_4";
        }

	if((tm0_cnt>300)&&(tm0_cnt<=360)) {
		MoveType	= "";
		tm0_cnt++;
        }
	if((tm0_cnt>360)&&(tm0_cnt<=370)) {
		MoveType	= "U";
		cnt	=tm0_cnt - 360;
		tmp_DYN_IMG	= "DYN_IMG_3";
        }

	if((tm0_cnt>370)&&(tm0_cnt<=420)) {
		MoveType	= "";
		tm0_cnt++;
        }
	if((tm0_cnt>420)&&(tm0_cnt<=430)) {
		MoveType	= "L";
		cnt	=tm0_cnt - 420;
		tmp_DYN_IMG	= "DYN_IMG_2";
		str_disp	= 1;
        }

	if((tm0_cnt>430)&&(tm0_cnt<=450)) {
		MoveType	= "";
		tm0_cnt++;
        }

	if((tm0_cnt>450)&&(tm0_cnt<=460)) {
		cnt	= tm0_cnt - 450;
		if(cnt<9) {
			$('DYN_IMG_STR').style.filter     = "Alpha(Opacity="+(cnt*cnt)+",FinishOpacity="+(cnt*cnt)+",Style=1)";
		}
		tm0_cnt++;
        }


	if(tm0_cnt==500) {
		MoveType	= "";
		clearInterval(tm0);
		tm0_cnt  = 0;
	}

	if(MoveType != 0) {
		switch(cnt) {
		case 10:

			$($(tmp_DYN_IMG).id).style.filter     = "Alpha(Opacity=0,FinishOpacity=0,Style=1)";
			$($(tmp_DYN_IMG).id).style.display    = "none";
			tm0_cnt++;
			break;
		default:

			switch(MoveType) {
			case "U":
				$($(tmp_DYN_IMG).id).style.top        = ($($(tmp_DYN_IMG).id).style.top.replace("px","") - cnt) + "px";
				break;
			case "D":
				$($(tmp_DYN_IMG).id).style.top        = ($($(tmp_DYN_IMG).id).style.top.replace("px","") + cnt) + "px";
				break;
			case "L":
				$($(tmp_DYN_IMG).id).style.left        = ($($(tmp_DYN_IMG).id).style.left.replace("px","") - cnt) + "px";
				break;
			case "R":
				$($(tmp_DYN_IMG).id).style.left        = ($($(tmp_DYN_IMG).id).style.left.replace("px","") + cnt) + "px";
				break;
			default:
			}

			alp     = 100 - (cnt*cnt);
			$($(tmp_DYN_IMG).id).style.filter     = "Alpha(Opacity="+alp+",FinishOpacity="+alp+",Style=1)";


			tm0_cnt++;
		}
	}
}

