function getParentElement(x) {
	var i;
	if (document.getElementById) {
		i = window.parent.document.getElementById(x);
	}
	else if (document.all) {
		i = window.parent.document.all[x];
	}
	else if (document.layers) {
		i = window.parent.document.layers[x];
	}
	return i;
}

function getElement(x) {
	var i;
	if (document.getElementById) {
		i = window.document.getElementById(x);
	}
	else if (document.all) {
		i = window.document.all[x];
	}
	else if (document.layers) {
		i = window.document.layers[x];
	}
	return i;
}

