
function createDefaultMsgBox() {
	var L = applyInherit(document.createElement("TABLE"), new CustomElement());
	var G = applyInherit(document.createElement("THEAD"), new CustomElement());
	var C = applyInherit(document.createElement("TFOOT"), new CustomElement());
	var Q = applyInherit(document.createElement("TBODY"), new CustomElement());
	L.setAtributeOther("cellpadding", "0");
	L.setAtributeOther("cellspacing", "0");
	L.setAtributeOther("border", "0");
	L.setAtributeOther("width", "100%");
	L.setAtributeOther("id", "msgboxAlert");
	L.style.zIndex = "500";
	L.style.position = "absolute";
	L.style.width = "300px";
	L.style.left = "20";
	L.style.top = "20";
	L.style.backgroundColor = "#FFEE90";
	L.style.borderSize = "1px";
	L.style.borderColor = "#666666";
	L.style.borderStyle = "solid";
	var I = applyInherit(document.createElement("tr"), new CustomElement());
	var K = applyInherit(document.createElement("td"), new CustomElement());
	var H = applyInherit(document.createElement("td"), new CustomElement());
	I.setAtributeOther("id", "titleBar");
	K.setAtributeOther("id", "titleBarMsg");
	K.setAtributeOther("width", "100%");
	H.setAtributeOther("id", "closeX");
	H.setAtributeOther("width", "100%");
	H.setAtributeOther("onclick", "closeMsgWindow()");
	var R = document.createTextNode("Messages");
	var J = document.createTextNode("X");
	I.style.cursor = "move";
	I.style.backgroundColor = "#ccc";
	I.style.color = "#FFFFFF";
	K.style.backgroundColor = "#ccc";
	H.style.backgroundColor = "#ccc";
	H.style.cursor = "pointer";
	K.appendChild(R);
	H.appendChild(J);
	I.appendChild(K);
	I.appendChild(H);
	var F = document.createElement("tr");
	var O = applyInherit(document.createElement("td"), new CustomElement());
	O.setAtributeOther("id", "msgboxFooter");
	O.style.backgroundColor = "#FFEE90";
	var S = document.createTextNode("Footer Example");
	O.appendChild(S);
	F.appendChild(O);
	F.style.textAlign = "center";
	var B = document.createElement("tr");
	var N = document.createElement("td");
	var A = applyInherit(document.createElement("TABLE"), new CustomElement());
	var D = applyInherit(document.createElement("THEAD"), new CustomElement());
	var E = applyInherit(document.createElement("tr"), new CustomElement());
	var P = applyInherit(document.createElement("td"), new CustomElement());
	A.setAtributeOther("id", "msgboxBody");
	A.setAtributeOther("cellpadding", "0");
	A.setAtributeOther("cellspacing", "0");
	A.setAtributeOther("border", "0");
	P.setAtributeOther("id", "msgboxAlertInner");
	P.style.backgroundColor = "#FFEE90";
	A.style.width = "100%";
	A.style.backgroundColor = "#FFEE90";
	var M = document.createTextNode("My Example Body Cell Area");
	P.appendChild(M);
	E.appendChild(P);
	D.appendChild(E);
	A.appendChild(D);
	N.appendChild(A);
	B.appendChild(N);
	G.appendChild(I);
	C.appendChild(F);
	Q.appendChild(B);
	L.appendChild(G);
	L.appendChild(C);
	L.appendChild(Q);
	return L;
}
var winW = 0, winH = 0;
function getBrowserViewableDimensions() {
	if (parseInt(navigator.appVersion) > 3) {
		if (navigator.appName == "Netscape") {
			winW = window.innerWidth - 16;
			winH = window.innerHeight - 16;
		}
		if (navigator.appName.indexOf("Microsoft") != -1) {
			winW = document.body.offsetWidth - 20;
			winH = document.body.offsetHeight - 20;
			if (winW < 0) {
				winW = document.clientHeight;
			}
			if (winH < 0) {
				winH = document.clientHeight;
			}
		}
	}
}
function closeMsgWindow() {
	document.getElementById("msgboxAlert").style.display = "none";
	restoreDropdown();
}
function getScrollXY() {
	var B = 0, A = 0;
	if (typeof (window.pageYOffset) == "number") {
		A = window.pageYOffset;
		B = window.pageXOffset;
	} else {
		if (document.body && (document.body.scrollLeft || document.body.scrollTop)) {
			A = document.body.scrollTop;
			B = document.body.scrollLeft;
		} else {
			if (document.documentElement && (document.documentElement.scrollLeft || document.documentElement.scrollTop)) {
				A = document.documentElement.scrollTop;
				B = document.documentElement.scrollLeft;
			}
		}
	}
	return A;
}
function bVer() {
	msieIndex = navigator.appVersion.indexOf("MSIE") + 5;
	return (parseFloat(navigator.appVersion.substr(msieIndex, 3)));
}
function coordinates() {
	var A = document.getElementById("msgboxAlert").offsetLeft;
	var D = (document.getElementById("msgboxAlert").offsetTop * 1) + (document.getElementById("msgboxAlert").offsetHeight * 1);
	var B = (A * 1) + (document.getElementById("msgboxAlert").offsetWidth * 1);
	var C = (D * 1) + (document.getElementById("msgboxAlert").offsetHeight * 1);
}
function searchForDropdownsHIDE() {
	var K = getPageOffsetLeft(document.getElementById("msgboxAlert"));
	var H = (getPageOffsetTop(document.getElementById("msgboxAlert")) * 1);
	if (document.all) {
		K += document.getElementById("msgboxAlert").offsetParent.clientLeft;
		H += document.getElementById("msgboxAlert").offsetParent.clientTop;
	}
	var D = K;
	var J = (H * 1);
	var C = (K * 1) + (document.getElementById("msgboxAlert").offsetWidth * 1);
	var I = (H * 1) + (document.getElementById("msgboxAlert").offsetHeight * 1);
	if (document.all) {
		for (var F = 0; F < document.all.length; F++) {
			objectid = document.all[F].id;
			objectx = document.all[F];
			if (objectid.substring(0, 4) == "drop") {
				var B = getPageOffsetLeft(objectx);
				var G = getPageOffsetTop(objectx);
				var E = (B * 1) + (objectx.offsetWidth * 1);
				var A = (G * 1) + (objectx.offsetTop * 1);
				if (B >= D && B <= C) {
					if (G >= J && G <= I) {
						document.all[F].style.visibility = "hidden";
					}
				}
				if (E >= D && E <= C) {
					if (A >= J && A <= I) {
						document.all[F].style.visibility = "hidden";
					}
				}
				if (B <= D && E >= C) {
					if (G >= J && A <= I) {
						document.all[F].style.visibility = "hidden";
					}
				}
			}
		}
	}
}
function restoreDropdown() {
	var B;
	var A;
	if (document.all) {
		for (A = 0; A < document.all.length; A++) {
			B = document.all[A].id;
			if (B.substring(0, 4) == "drop") {
				document.all[A].style.visibility = "visible";
			}
		}
	}
}
function MsgOkCancel(B) {
	var A;
	A = confirm(B);
	return A;
}


