//4/16/03 - C Schanzmeyer - this file created by Jonathan Bruder//NOTE:  I.E. 6.0 for PC requires that either height or width be specified in css for the box object for script to work// Checks a box object's browser-computed size and changes it if it doesn't meet a minimum required size. // To use, insert in a javascript event attribute, like the body tag's onload attribute.              // boxName is a string variable or quoted string.																					// boxHeight and boxWidth are the unquoted height and width minimums to check against, in units of pixels without 'px'. // The box name is required, but either size check can be disabled by putting an empty set of quotes in its place // in the function parameters. function MinSize(boxName, boxHeight, boxWidth) {	//alert('Script call successful');	// script call debug alert 		boxObj = document.getElementById(boxName);// This code block was replaced by the following code block, which references // boxObj.offsetHeight for Internet Explorer 6 PC compatibility. This code is // functional for all preceding 5.x browsers and platforms and is left as a// cautionary measure.// // set boxObj to the getElement of the block-level element object boxName// if (boxObj && (boxObj.clientWidth || boxObj.clientHeight)) { // check for boxObj and the boxObj property clientWidth to determine if user has// IE-compatible browser// var defaultWidth = boxObj.clientWidth; // set the defaultWidth to the computed width as used by IE-compatible browsers// var defaultHeight = boxObj.clientHeight; // set the defaultHeight to the computed Height as used by IE-compatible// browsers//} else	 if (boxObj && (boxObj.offsetWidth || boxObj.offsetHeight)) { 	// check for boxObj and the boxObj property clientWidth to determine if user has IE-compatible browser			var defaultWidth = boxObj.offsetWidth; 		// set the defaultWidth to the computed width as used by IE-compatible browsers			var defaultHeight = boxObj.offsetHeight; 		// set the defaultHeight to the computed Height as used by IE-compatible browsers		} else if (boxObj && document.defaultView.getComputedStyle(boxObj,'')) { 	// else check for boxObj and the default style of boxObj to determine if user has Netscape-compatible browsers			var defaultWidth = parseInt(document.defaultView.getComputedStyle(boxObj, "").getPropertyValue("width"));		//set defaultWidth to the computed width as used by Netscape-compatible browsers			var defaultHeight = parseInt(document.defaultView.getComputedStyle(boxObj, "").getPropertyValue("height"));		//set defaultHeight to the computed height as used by Netscape-compatible browsers		} else {		//document.write(This browser is not standards compliant and may not display all pages correctly.);	// give a hidden comment to those checking the source of an HTML page in an incompatible browser to alert them 	// of incompatibility.                                                                                        		}			//alert('default width: '+defaultWidth+'\ndefault height: '+defaultHeight);	// the above is a debug alert 			if (boxWidth && (defaultWidth < boxWidth)) {	// checks to see if there is a boxWidth and if defaultWidth is less than boxWidth 			//alert('changing Width');		//the above is a debug alert			boxObj.style.width = boxWidth+'px';		// corrects the boxWidth 		} 			if (boxHeight && (defaultHeight < boxHeight)) {	// checks to see if there is a boxHeight and if defaultHeight is less than boxHeight 	// 80px were added to this to avoid changing every php file		//alert('changing Height');		//the above is a debug alert		boxObj.style.height = (parseInt(boxHeight)+80)+'px';		// corrects the boxHeight 	}	}