function newpanel(linkstr, vWidth, vHeight) {
	var winopts = "width=" + vWidth + ",height=" + vHeight + ",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no";
	var popWindow = window.open(linkstr,'panel1', winopts);
	if(navigator.appVersion.indexOf("(X11") != -1 || navigator.appVersion.indexOf("(Mac") != -1) {
		popWindow = window.open(linkstr,'panel1', winopts);
	}
}

function validateSearch() {
	// 検索時のルールとして
	// 登録日での検索（年月日全て入力）または地域の絞込検索
	if(document.search.searchDateYYYY.value != '' || document.search.searchDateMM.value != '' || document.search.searchDateDD.value != '') {
	
		//年が入力されていない時
		if(document.search.searchDateYYYY.value == '') {
			alert('絞り込む年を選んでください');

			//月が入力されていない時
		} else if(document.search.searchDateMM.value == '') {
			alert('絞り込む月を選んでください');

			//日が入力されていない時
		} else if(document.search.searchDateDD.value == '') {
			alert('絞り込む日を選んでください');
		
		} else {
			//検索実行
			//document.nextForm.PageNo.value = '';
			document.NextForm.PageNo.value = 1;
			document.search.submit();
		}

	} else {
		//検索実行
		document.NextForm.PageNo.value = 1;
		document.search.submit();
	}
}
function changeAgree(id){
	if(id=='X'){
		var element = document.getElementById('ProfitAgree');
		element.style.display = 'none';
	}else if(id=='0'){
		var element = document.getElementById('ProfitAgree');
		element.style.display = 'inline';
	}
}
function changeProfit( val ){
	document.frm.entryCheck.value = 'bbb';
	document.frm.action="entry.php";
	document.frm.submit();
}
function ChangePage(Pno){
	document.NextForm.PageNo.value = Pno;
	document.NextForm.submit();
}

