// JS popup to replace target="_blank"
function popUp(URL, target) {
	var newWin = window.open(URL, target, "");
	newWin.focus();
	return false;
}
// Send message to user - used for onlick events etc
function sendMsg(text) {
	if (window.event) window.event.cancelBubble = true;
	return window.confirm(text);
}
// On Form submit - change submit button text to show that somethings happening
var submitted = false;
function lockButton(obj, msg) {
	if (!submitted) {
		obj = document.getElementById(obj);
		obj.value = msg;
		submitted = true;
		return true;
	}
	return false;
}