//@design by JOLE@


/*
		除了表单信息
*/

var _form = {
	//必填表单
	$:function(obj){return document.getElementById(obj)},
	check:function(_id,_label,_type,_txt)
	{
		if(_type)
		{
			if(_type==1)
			{
				if(this.$(_id).value=="")
				{
					this.$(_label).innerHTML = _txt;
					return false;
				}
				else
					return true;
			}
		}
	},
	btnDel:function(_url)
	{
		if(_url)
		{
			if(confirm("确定要删除吗？"))
			location.href=_url;
		}
	},
	href:function(_url)
	{
		location.href=_url;
	},
	hrefBack:function(url)
	{
		if(url!="")
		{
			location.href = url+"&url="+escape(location.href);	
		}	
	}
		
}
