function list_search()
{
	document.search_form.action = 'list_search.php';
	document.search_form.submit();
}

//日付けから曜日を獲得
function weeks(num)
{
	var week = new Array("日","月","火","水","木","金","土");
	return(week[num]);
}
	
function get_week(year,month,day)
{
	var day =new Date(year,month-1,day);
			
	return(weeks(day.getDay()));	
}
function gipnewsfla_DoFSCommand(command, month){
	if (command == "flink"){
//		getFlashLink(args);
//	alert("Do[ " + command + " ]:[ " + month + " ]");
		var url = 'ajax_data.php?' ;
		var pars = '?month=' + month ;
	
		var myAjax = new Ajax.Request(
				url,
				{
					method: 'get',
					parameters: pars,
					onComplete: resFlashLink
				}
		) ;
	}
}

//発売日リクエスト送信
function getRelease(open_date,mode)
{
	var url = 'release_ajax.php' ;
	var pars = '?open_date=' + open_date + '&mode=' + mode ;

	var myAjax = new Ajax.Request(
			url,
			{
				method: 'get',
				parameters: pars,
				onComplete: resRelease
			}
	) ;
}
function resRelease(res)
{
	document.getElementById("main_release").innerHTML = res.responseText;
}
//開催公演リクエスト送信
function getPerformance(month,mode)
{
	var url = 'performance_ajax.php' ;
	var pars = '?month=' + month + '&mode=' + mode ;
	
	var myAjax = new Ajax.Request(
			url,
			{
				method: 'get',
				parameters: pars,
				onComplete: resPerformance
			}
	) ;
}
function resPerformance(res)
{
	document.getElementById("main_kouen").innerHTML = res.responseText;
}
//リクエスト送信
function getFlashLink(month)
{
	var url = 'ajax_data.php?' ;
	var pars = '?month=' + month ;

	var myAjax = new Ajax.Request(
			url,
			{
				method: 'get',
				parameters: pars,
				onComplete: resFlashLink
			}
	) ;
}

//受信時処理
function resFlashLink(res)
{
	document.getElementById("flash_link").innerHTML = res.responseText
	//var text = document.createTextNode(res.responseText);
	//document.getElementById("flash_link").appendChild(text) ;
}


//pop up表示
function WinOpen() 
{
	Wina02=window.open('renewal_open.html','Window02','width=500,height=600,left=100,top=100,menubar=no,toolbar=no,directories=no,location=no,status=no,scrollbars=no,resizable=no');
	if(navigator.appName.charAt(0) == "N" && navigator.appVersion.charAt(0)>=3)
	{
		Wina02.focus();
	}
} 