/**
 * 健診DB専用のJavaScriptです。
 */

/**
 * フォームのサブミットを行います。
 */
function formSubmit(formName, buttonId)
{
	// formオブジェクト取得
	formObject = eval('document.' + formName);
	
	// ボタンIDをhiddenにしてformにセット
	input = document.createElement("input");
    input.type  = "hidden";
    input.id    = 'buttonId';
    input.name  = 'buttonId';
    input.value = buttonId;
	
	formObject.appendChild(input);
	
	formObject.submit();
}

function setTarget(formName, target)
{
	document.getElementById(formName).target = target;
}

function lineShow()
{
	for (i = 1;i <= lineMax; i++) {
		document.getElementById(i).style.display = '';
	}
}

function lineHide(element)
{
	document.getElementById(element).style.display = 'none';
}

function isReadyState()
{
	if (window.document.readyState != null && window.document.readyState != 'complete') {
		return false;
	}else{
		return true;
	}
}

