/*
 * 削除処理の前に確認ダイアログを表示させる
 */
function deleteConfirm(objForm, action, no)
{
	// 「OK」時の処理開始 ＋ 確認ダイアログの表示
	if(window.confirm('No.' + no + 'を削除してもよろしいでしょうか?'))
	{
		objForm.action = action;
		objForm.submit();
	}
	else // 「キャンセル」時の処理開始
	{
		// 何もしない。
	}
}

/**
  * [関数名] clearForm
  * [機　能] 複数の要素が混在するフォームのクリア処理
  * [説　明] フォーム内の指定した要素のみクリアする
  * [引　数] @param  type クリアする要素名（タイプ属性）
  * [戻り値] なし
 */
//function formClear(objForm, type){
function clearForm(objForm){
//alert('clearForm');

	for(i=0; i<objForm.length; i++)
	{
		type = objForm.elements[i].type;
		if(type == "select-one" || type == "select-multiple")
		{
			objForm.elements[i].selectedIndex = 0;
		}
		else if(type == "radio" || type == "checkbox")
		{
			objForm.elements[i].checked = false;
		}
		else if(type == "text" || type == "textarea")
		{
			objForm.elements[i].value = "";
		}
	}
}

