var text = "Enter Page Name Please";

function switchMe(bool, div) {
	elem = document.getElementById(div);
	if (bool) {
		if (elem.value == "") {
			elem.value = text;
		}
	} else {
		if (elem.value == text) {
			elem.value = "";
		}
	}
}

function warnMe() {
	return confirm("Are you sure you want to delete this file?");
}

function checkCharCount(elem) {
	var arbitraryLowNum = 6;
	if	(document.getElementById(elem).value.length < arbitraryLowNum) {
		return warnEmpty();	
	} else {
		return true;	
	}
}
function warnEmpty() {	
	return confirm("Are you sure you want to leave this virtually empty? Doing so will make the page appear devoid of content to visitors.");
}
