//フォーム送付
function sendFromDirection(direction){
	if(direction == "next"){
		incRunstep();
	}
	else if(direction == "decide"){
		incRunstep();
	}
	else if(direction == "back"){
		decRunstep();
	}
	else{
		//	
	}
	document.naviWebForm.submit();//送信
}
//inc runstep
function incRunstep(){
	rSV = parseFloat(document.naviWebForm.RUNSTEP.value);
	rSV++;
	document.naviWebForm.RUNSTEP.value = rSV;
}
//dec runstep
function decRunstep(){
	rSV = parseFloat(document.naviWebForm.RUNSTEP.value);
	rSV--;
	document.naviWebForm.RUNSTEP.value = rSV;
}
//set runstep
function setRunstep(rS){
	document.naviWebForm.RUNSTEP.value = rS;
}
//set runmode
function setRunmode(rM){
	document.naviWebForm.RUNMODE.value = rM;
}
//send form
function sendForm(){
	document.naviWebForm.submit();
}
//send form after setting runmode and runstep
function sendWithSetRunmodeAndRunStep(rM, rS){
	setRunstep(rS);
	setRunmode(rM);
	sendForm();
}
//set data no
function setDataNo($dataNo){
	document.naviWebForm.DATANO.value = $dataNo;
}
//
//change event
function changeDisabled(parentIns, trueList, falseList){
	//alert(falseList);
	tNum = trueList.length;
	fNum = falseList.length;
	status = parentIns.checked;
	rstatus = false;

	if(status == "false"){
		rstatus = true;
	}
	for(var i=0;i<fNum;i++){
		var childInst = eval("document.naviWebForm."+falseList[i]);
		//childInst.disabled = false;
		if (typeof(childInst) != 'undefined') {
			childInst.disabled = rstatus;
		}
	}
	for(var i=0;i<tNum;i++){
		var childInst = eval("document.naviWebForm."+trueList[i]);
		if (typeof(childInst) != 'undefined') {
			//childInst.disabled = false;
			childInst.disabled =status;
		}
	}
}

//open window
function openW(URLStr, WinName){
	newWin = window.open(URLStr, WinName, 'toolbar=no, location=no, status=no, menu=no, width=650, height=650, scrollbars=1');
	newWin.focus();
}

//open window2
function openW2(URLStr, WinName, WW, WH, SCB, RS){
	newWin = window.open(URLStr, WinName, 'toolbar=no, location=no, status=no, menu=no, width='+WW+', height='+WH+', scrollbars='+SCB+', resizable='+RS);
	newWin.focus();
}
//---
function showDataList( analogyF ) {
	document.naviWebForm.ANALOGYF.value =  analogyF;
	document.naviWebForm.submit();
}
// -- set offset value
function setOffsetPage ( offsetValue ) {
	document.naviWebForm.offsetPage.value =  offsetValue;
	document.naviWebForm.submit();
}  
