function showMe(obj) {
	document.getElementById(obj).style.display = 'block';
}

function hideMe(obj) {
	document.getElementById(obj).style.display = 'none';
}

function closeParent(obj) {
	obj.parentNode.style.display = "none";
}

/* -- Input clean on focus function -- */
function clearText(input) {
	if (input.defaultValue == input.value) {
		input.value = "";
	}
}

var initialValue;

function cleanMe(object) {
	initialValue = object.value;
	clearText(object);
}

function restoreMe(object) {
	if (object.value == '') {
		object.value = initialValue;
	}
}


function showError() {
	var errorDiv = document.getElementById('errorContainer');
	var errorDisplay = errorDiv.style.display;
	
	if (errorDisplay == 'none') {
		errorDiv.style.display = 'block';
	} else {
		if (errorDisplay == 'block') {
			errorDiv.style.display = 'none';
		}
	}
	
	return false;
}