function gfncOpenWindow(strUrl, strName) {
	window.open(strUrl, strName, "menubar=yes, toolbar=no, location=no, status=yes, scrollbars=yes, resizable=yes, width=800, height=600");
	return false;
}

function gfncCloseWindow() {
	window.close();
	return false;
}

function gfncPrintWindow() {
	if (document.getElementById || document.layers) window.print();
	return false;
}

function gfncSetParent(objLink) {
	if (window.opener) {
		if (window.opener.parent) {
			window.opener.parent.location.href = objLink;

		} else {
			window.opener.location.href = objLink;
		}

		gfncCloseWindow();

		return false;
	}

	return true;
}

function gfncDisableForm(objForm) {
	for (i = 0; i < objForm.elements.length; i++) {
		if (objForm.elements[i].type == "submit") {
			objForm.elements[i].disabled = true;
		}
	}
}

function gfncGetObject(strId) {
	if (document.getElementById) {
		return document.getElementById(strId);

	} else if (document.all) {
		return document.all(strId);

	} else if (document.layers) {
		return false;
		return document.layers[strId];

	} else {
		return false;
	}
}

