var isW3C = (document.getElementById) ? true : false;
var isAll = (document.all) ? true : false;
var isMSIE = (navigator.appName == "Microsoft Internet Explorer");
function getObjectRef(doc,id) {
	if (isW3C) {
		if (obRef = doc.getElementById(id)) return obRef;
	} else if (isAll) {
		if (obRef = doc.all[id]) return obRef;
	}
	return false;
	//return (isW3C) ? doc.getElementById(id) : ((isAll) ? doc.all[id] : false);
}
function park_showHide(obj,force) {
	if (typeof obj == "string") obj = getObjectRef(document,obj);
	var disp = obj.style.display;
	if (force) {
		if (isMSIE) {
			if (obj.nodeName == "TR" && force == "table-row") {
				force = "block";
			} else if (obj.nodeName == "TBODY" && force == "table-row-group") {
				force = "block";
			}
		}
		obj.style.display = force;
	} else if (typeof disp == "undefined" || (disp != "none" && disp != "")) {
		obj.style.display = "none";
	} else {
		switch(obj.nodeName) {
			case "TABLE":
				obj.style.display = "table";
				break;
			case "TBODY":
				if (isMSIE) {
					obj.style.display = "block";
				} else {
					obj.style.display = "table-row-group";
				}
				break;
			case "TR":
				if (isMSIE) {
					obj.style.display = "block";
				} else {
					obj.style.display = "table-row";
				}
				break;
			case "A":
			case "SPAN":
			case "IMG":
			case "INPUT":
				obj.style.display = "inline";
				break;
			default:
				obj.style.display = "block";
		}
	}
	return false;
}
function imageUploader() {
	var url = "http://www.parkschool.net/scripts/omni/uploader.cfm";
	if (arguments.length > 1) {
		var height = arguments[1];
		var width = arguments[2];
	} else {
		var height = 400;
		var width = 500;
	}
	if (arguments.length == 4) {
		window.open(url,'New','top=80,left=80,width='+width+',height='+height+','+arguments[3]);
	} else {
		window.open(url,'New','top=80,left=80,width='+width+',height='+height+',toolbar=no,menubar=no,scrollbars=yes');
	}
	return false;
}
