function initContent() { 
	if (document.getElementById("content")) { 
		contentHeight = document.getElementById("content").offsetHeight; 
		if (contentHeight < 300) {
			document.getElementById("content").style.height = "300px";
		} 
	}
}
	
// checks if a text element is filled in a form
function isFilled(element) {
	if ((element.value == "") || (element.value == null)) { return false; }
	else { return true; }
}

// checks to see if string is a monetary value
function isPrice(value) {
	var pattern = /^(\d{1,5})((\.)(\d{2}))?$/;
	if (pattern.test(value)) { return true; }
	return false;
}

// checks to see if string is a number between min and max
function isNumeric(value, minimum, maximum) {
	var pattern = eval("/^\\d{" + minimum + "," + maximum + "}$/");
	if (pattern.test(value)) { return true; }
	return false;
}

// checks to see if a select box has any options
function hasOptions(obj) {
	if (obj.options[0] != undefined) { return true; }
	return false;
}

