    //编辑数据
	EditIt = function(id, field, url) {
		location = url + "?action=EDIT" + '&' + field + '=' + id;
	}

	//删除数据
	DeleteIt = function(id, field, url) {
		if(confirm('确定要删除？')) {
			$(id).style.display = 'none';
			
			var pars = "action=DEL" + '&' + field + '=' + id;
			var myAjax = new Ajax.Request(url, {method: 'get', parameters: pars});
		}
	}


	EchoQueryCount = function(sum) {
		count_query.innerText = sum;
	}

	autoResize = function()	{ 
		try { 
				document.all["contentframe"].style.width = contentframe.document.body.scrollWidth;
				document.all["contentframe"].style.height = contentframe.document.body.scrollHeight + 50;
		} 
		catch(e){}
	}

