function getElementByIdCompatible (the_id) {
	if (typeof the_id != 'string') {
		return null;
	}

	if (typeof document.getElementById != 'undefined') {
		return document.getElementById(the_id);
	} else if (typeof document.all != 'undefined') {
		return document.all[the_id];
	} else if (typeof document.layers != 'undefined') {
		return document.layers[the_id];
	} else {
		return null;
	}
}

function focusOnText(txtBoxId,boxTxt) {
	var txtBox;
	txtBox = getElementByIdCompatible(txtBoxId);
	if (txtBox.value == boxTxt) {
		txtBox.value = '';
	}
}

function blurOnText(txtBoxId,boxTxt) {
	var txtBox;
	txtBox = getElementByIdCompatible(txtBoxId);
	if (txtBox.value == '') {
		txtBox.value = boxTxt;
	}
}