



//--------------------------------------
//
//	フレーム読み込み用
//
//--------------------------------------
function window_location(head_url,contents_url){

	if(head_url != ""){
		if(parent.head){
			parent.head.location.href = head_url;
		}
		else{
			window.open(head_url, "head");
		}
	}
	if(contents_url != ""){
		if(window.contents){
			window.contents.location.href = contents_url;
		}
		else{
			window.open(contents_url, "contents");
		}
	}
}


function check_date(year, month, day){
	if( get_month_days(year, month) < day){
		return false;
	}
	return true;
}


//--------------------------------------
//
//指定した月の日数を返す
//
//--------------------------------------
//function get_month_days(year, month){
//	if( year%4 == 0 || (year%100 != 0 && year%400 == 0) ){
//		month_days  = new Array(31,31,29,31,30,31,30,31,31,30,31,30,31);
//	}
//	else{
//		month_days  = new Array(31,31,29,31,30,31,30,31,31,30,31,30,31);
//	}
//	return month_days[month];
//}

//function parse_date(year, month, day){

//	mydate = new Date();
	
//	mydate.setFullYear(year);
//	mydate.setMonth( (month-1) );
//	mydate.setDate(day);

//	rtn_array = new Array();

//	rtn_array[0] = mydate.getFullYear();
//	rtn_array[1] = mydate.getMonth() + 1;
//	rtn_array[2] = mydate.getDate();
//	return rtn_array;
	
//}





var disp_cnd = new Object;

function show(id){

	var obj;

	if(document.all){
		obj = document.all(id);
	}
	else if(document.getElementById){
		obj = document.getElementById(id);
	}
	else{
		obj = document.layers[id];
	} 
	
	var disp = obj.display;

	if(!disp_cnd[id] || disp_cnd[id] == 0){
		obj.style.display = "block";
		disp_cnd[id] = 1;
	}
	else{
		obj.style.display = "none";
		disp_cnd[id] = 0;
	}

}
