function getobjs(id){
	id=typeof id!="string"?id:document.getElementById(id);
	return id
}
function getTag(obj,tag){
	var m=/(.+)\[(\w*)(\W+)(.*)\]/.exec(tag);
	if(!m){tag=obj.getElementsByTagName(tag);return tag;
		}else{
			tag=obj.getElementsByTagName(m[1]);
			var ar=[],f=m[2],s=m[3],o;if(f=="class"&&(!-[1,])){f="className";}
			for(var i=0,n=tag.length;i<n;i++){
				o=tag[i];
				if(s=="<"&&o.parentNode.id==m[4]||s=="="&&(o.getAttribute(f)==m[4]||o[f]==m[4])||s=="!="&&(o.getAttribute(f)!=m[4]||o[f]!=m[4])){
					ar[ar.length]=o;
					}
					};return ar;}
					}
function cutMoreCase(){
	var o=getobjs('mkxcon'),
	totalDiv=parseInt(getTag(o,'div[class=mzdBox]').length);
	if(totalDiv <= 20)
	{
		o.style.height=((totalDiv)*311)+'px';
		getobjs('moreCaseBox').style.display='none';
	}
	else
	{
		o.style.height=(20*311)+'px';
	}
}
function doitMC(){
	var o=getobjs('mkxcon'),
	sta=false,
	totalDiv=getTag(o,'div[class=mzdBox]').length;
	var i=1;
	function getMore()
	{
		
		
		if(sta){return;}
		i++
		var heights=i*20*311;
		if(heights>(totalDiv)*311){heights=(totalDiv)*311;sta=true;getobjs('moreCaseBox').style.display='none';}
		o.style.height=heights+'px';
	}
	return getMore;
}

