var xml_http = null;

function create_xml_http ()
{
	if ( window.ActiveXObject ) {
		xml_http = new ActiveXObject('Microsoft.XMLHTTP');
	} else {
		xml_http = new XMLHttpRequest();
	}

}

function get_stat_info (num)
{
	var stat = {'-1': '没有获取到参数', 
				'0': '成功', 
				'1': '数据添加失败', 
				'2': '数据修改时失败',
				'3': '数据有重复', 
				'4': '图像添加失败' 
		};
	
	return stat[num]?stat[num]:'未知状态';
}
