var _msg = {
	main:{
		cmmn_0:{mode:"I",type:"",error:"Now Loading･･･",discription:"current target:#0#"},
		cmmn_1:{mode:"I",type:"",error:"Now,Creating HTMLElements of Table･･･",discription:"#0#"},
		cmmn_10:{mode:"I",type:"O",error:"The process has been completed",discription:"#0#"},
		cmmn_E0:{mode:"F",type:"O",error:"communication error",discription:"url:#0#"},

		cmmn_100:{mode:"I",type:"OC",error:"Do you accept changes",discription:""},
		cmmn_101:{mode:"I",type:"OC",error:"Do you accept rollback",discription:""},


		cmmn_W0:{mode:"W",type:"O",error:"Validation error",discription:""},

		cmmn_W10:{mode:"W",type:"OC",error:"CAUTION",discription:"Rows are so much.\r\nTherefore, it takes a long time to display.\r\nDo you allow to display?\r\nnumber of rows : #0#"},

		dbmng_0:{mode:"I",type:"OC",error:"Database will be dropped",discription:"database name: #0#"},
		dbmng_1:{mode:"I",type:"OC",error:"Database will be exported",discription:"database name: #0#"},
		dbmng_2:{mode:"I",type:"OC",error:"Before import,changes are commited",discription:"filename: #0#"},
		dbmng_3:{mode:"I",type:"OC",error:"Database will be imported",discription:"filename: #0#"},

		srtmng_0:{mode:"I",type:"OC",error:"Sort infomation will be deleted",discription:"Sort name: #0#"},
		srtmng_W0:{mode:"W",type:"O",error:"Sort string error",discription:""},

		tblmng_0:{mode:"I",type:"OC",error:"Table will be dropped",discription:"Table name: #0#"},
		tblmng_1:{mode:"I",type:"OC",error:"Table will be exported",discription:"Table name: #0#"},
		tblmng_2:{mode:"I",type:"OC",error:"Table will be imported",discription:"filename: #0#"},
		tblmng_W0:{mode:"W",type:"O",error:"Table name error",discription:""},

		colmng_0:{mode:"I",type:"OC",error:"Column will be deleted",discription:"Column name: #0#"},
		colmng_1:{mode:"I",type:"OC",error:"Unique constraint will be deleted",discription:"Constraint: #0#"},
		colmng_2:{mode:"I",type:"OC",error:"Do you accept change of column type",discription:"#0# : #1# to #2#"},
		colmng_3:{mode:"I",type:"OC",error:"Do you accept change of primary key",discription:""},

		colmng_W0:{mode:"W",type:"O",error:"Column name error",discription:""},
		colmng_W1:{mode:"W",type:"O",error:"Illegal string",discription:"length must be a natural number"},
		colmng_W2:{mode:"W",type:"O",error:"Unique constraint error",discription:""},

		rltmng_0:{mode:"I",type:"OC",error:"Relation will be deleted",discription:"Relation: #0#:#1#"},
		rltmng_1:{mode:"I",type:"OC",error:"Do you accept change of table",discription:"#1# to #2#"},
		rltmng_2:{mode:"I",type:"OC",error:"Do you accept Do you accept change of column",discription:"#1# to #2#"},

		rltmng_W0:{mode:"W",type:"O",error:"Relation error",discription:""},

		lv_blk_0:{mode:"I",type:"OC",error:"Do you bulk copy",discription:""},
		lv_blk_1:{mode:"I",type:"OC",error:"Do you bulk delete",discription:""},
		lv_blk_W0:{mode:"W",type:"O",error:"Not selected",discription:"Target is none"},

		sub_sc_0:{mode:"I",type:"OC",error:"Criteria will be deleted",discription:""},

		sub_bk_0:{mode:"I",type:"OC",error:"Target column will be deleted",discription:"column name : #0#"},
		sub_bk_1:{mode:"I",type:"OC",error:"Do you accept bulk update",discription:""},

		dv_v_0:{mode:"I",type:"OC",error:"Data will be deleted",discription:""},
		dv_v_1:{mode:"I",type:"OC",error:"Data will be copied",discription:""},

		dv_e_0:{mode:"I",type:"OC",error:"Do you accept update",discription:""},

		dv_a_0:{mode:"I",type:"OC",error:"Do you accept insert",discription:""},

		dv_c_W0:{mode:"W",type:"O",error:"Data Not Found",discription:""}

	},
	sub:{
		srtmng_W0:{
			d:"Charcter duplicated : #1# > #2#",
			n:"Charcter is null : #1#"
		},
		tblmng_W0:{
			d:"Table name duplicated",
			c:"Illegal character : \',\",[,]",
			nm:"Illegal Name : _XXXX",
			n:"Table name is null"
		},
		colmng_W0:{
			d:"Column name duplicated",
			c:"Illegal character : \',\",[,]",
			r:"Illegal name : rowid",
			n:"Column name is null"
		},
		colmng_W2:{
			d:"Set of columns duplicated",
			n:"Not selected"
		},
		rltmng_W0:{
			d:"Set of columns duplicated",
			n:"Not selected"
		},
		cmmn_W0:{
			i:"#0# must be a Integer : #1#",
			r:"#0# must be a Real : #1#",
			t:"#0# must be a #2# format : #1#"
		}
	},
	//メッセージのクローンを作成して返す。
	getMessage:function( strId , ary ){
		var ret ={ main:{} , sub:{} };
		if( this.main[ strId ] ){
			for( var key in this.main[ strId ] ){
				ret.main[ key ] = this.main[ strId ][ key ];
			};
		}else{
			return null;
		};
		if( this.sub[ strId ] ){
			for( var key in this.sub[ strId ] ){
				ret.sub[ key ] = this.sub[ strId ][ key ];
			};
		};

		if( ary && ary.constructor == Array ){
			for( var i = 0 ; _U.isIdx( i , ary ) ; i ++ ){
				ret.main.discription = ret.main.discription.replace( new RegExp( "#"+i+"#" , "g") , ary[i] );
			};
		};
		return ret;
	}
};
