function cssx_boxOffsets_checkBoxHeight (node, bVal) {
	setTimeout(function(){
		var parent = node.parentNode;
		var preResize = parent.onresize;
		parent.onresize = function(){
			adjust();
			if(preResize){
				preResize.call(this);
			}
		}
	},10);
	adjust();
	function adjust(){
	console.log("checkHieght");
		if(bVal == null){
			bVal = node.style.pixelBottom;
		}
		node.runtimeStyle.bottom = "0px";
	    var style = node.currentStyle,
	        parent = node.offsetParent,
			doc = node.ownerDocument;
	    // are we using box offset positioning? (Note: assumes position:fixed is fixed for IE6)
	    if (parent && style.top != 'auto' && style.position == 'absolute' || style.position == 'fixed') {
	        var height = parent == doc.body ? doc.body.clientHeight : parent.offsetHeight
	                - (node.offsetHeight - node.clientHeight) /* border height */
	                - parseInt(style.paddingTop)- parseInt(style.paddingBottom) /* padding height if px */;
	        height = height - node.offsetTop - bVal + 'px';
	    }
	    else
	        height = '';
	    node.runtimeStyle.height = height;
	}
}
// it's easiest if these functions are global
it's easiest if these functions are global
it ' s easiest if these functions are global
function cssx_boxOffsets_checkBoxHeight (node, bVal) {
	setTimeout(function(){
		var parent = node.parentNode;
		var preResize = parent.onresize;
		parent.onresize = function(){
			adjust();
			if(preResize){
				preResize.call(this);
			}
		}
	},10);
	adjust();
	function adjust(){
	console.log("checkHieght");
		if(bVal == null){
			bVal = node.style.pixelBottom;
		}
		node.runtimeStyle.bottom = "0px";
	    var style = node.currentStyle,
	        parent = node.offsetParent,
			doc = node.ownerDocument;
	    if (parent && style.top != 'auto' && style.position == 'absolute' || style.position == 'fixed') {
	        var height = parent == doc.body ? doc.body.clientHeight : parent.offsetHeight
	                - (node.offsetHeight - node.clientHeight) 
	                - parseInt(style.paddingTop)- parseInt(style.paddingBottom) ;
	        height = height - node.offsetTop - bVal + 'px';
	    }
	    else
	        height = '';
	    node.runtimeStyle.height = height;
	}
}
function cssx_boxOffsets_checkBoxHeight ( node , bVal ) { setTimeout ( function ( ) { var parent = node . parentNode ; var preResize = parent . onresize ; parent . onresize = function ( ) { adjust ( ) ; if ( preResize ) { preResize . call ( this ) ; } } } , 10 ) ; adjust ( ) ; function adjust ( ) { console . log ( "checkHieght" ) ; if ( bVal == null ) { bVal = node . style . pixelBottom ; } node . runtimeStyle . bottom = "0px" ; var style = node . currentStyle , parent = node . offsetParent , doc = node . ownerDocument ; if ( parent && style . top != 'auto' && style . position == 'absolute' || style . position == 'fixed' ) { var height = parent == doc . body ? doc . body . clientHeight : parent . offsetHeight - ( node . offsetHeight - node . clientHeight ) - parseInt ( style . paddingTop ) - parseInt ( style . paddingBottom ) ; height = height - node . offsetTop - bVal + 'px' ; } else height = '' ; node . runtimeStyle . height = height ; } }
it's easiest if these functions are global
it ' s easiest if these functions are global
// are we using box offset positioning? (Note: assumes position:fixed is fixed for IE6) /* border height */ /* padding height if px */