
/**
 * 半角文字のみで入力されているかチェックする。
 *
 * @param string text チェックしたい文字列
 * @return bool チェック結果
 */
function userIDCheck()
{
	/*var ch;
	var text = document.getElementById("user_id").value; 
	var len = text.length;
	if(len==0) 
	{
		alert(UMSG0102);
		document.getElementById("user_password").value = "";
		document.getElementById("user_id").focus(); 
		return false;
	}
	for (var i = 0; i < len; i++)
	{
		ch = text.charCodeAt(i);
        if ( ch < 0 || ch > 255)
		{
			alert(UMSG0101);
			document.getElementById("user_id").value = "";
			document.getElementById("user_password").value = "";
			document.getElementById("user_id").focus(); 
			return false;
		}
		
    }*/
    document.getElementById("loginconfirm").submit();
}

function onEnterKey_index1(info)
{
	if(info != null)  // Mozila (Firefox)
	{
		if(info.which==13)
		{
		    userIDCheck();
        }
	}
	else if (event.type=="keydown") // IE
	{
		if (event.keyCode==13)
		{
		    userIDCheck();
		}
	}

	return true;
}

// ローディング時の処理
function onload2()
{
	if(document.getElementById("loginconfirm"))
	{
		    document.getElementById( "user_id" ).onkeydown = onEnterKey_index1;
            document.getElementById( "user_password" ).onkeydown = onEnterKey_index1;
	}
      
}
