// JavaScript Document



window.onload = function() {

	resizeTextArea();

}

window.onresize=function(){

	resizeTextArea();

}




//indexのmarginとワイド・ヘイト関連	

function resizeTextArea(){

	
	var ta5=document.getElementById("container2_index");

	var myw=getBrowserWidth();

	var myh=getBrowserHeight();
	
	var mymargin2 = (myw-830)/2;
	
	var mycss2_index="margin:0 0 0 " +mymargin2+ "px;";
	
	ta5.style.cssText = ta5.style.cssText + mycss2_index;/*画面サイズに関係なくセンター寄せ*/
	


}
//ワイド取得
function getBrowserWidth() {  

	if ( window.innerWidth ) {

		return window.innerWidth; 

	} 

	else if ( document.documentElement && document.documentElement.clientWidth != 0 ) {

		return document.documentElement.clientWidth; 

	}

	else if ( document.body ) {

		return document.body.clientWidth;

	}

	return 0;  

}  
//ヘイト取得
function getBrowserHeight() {  

	if ( window.innerHeight ) {

		return window.innerHeight; 

	} 

	else if ( document.documentElement && document.documentElement.clientHeight != 0 ) {

		return document.documentElement.clientHeight; 

	}

	else if ( document.body ) {

		return document.body.clientHeight;

	}

	return 0;  

} 
