function deleteConfirm(itemName,whereTo) {
	if (confirm('Are you sure you want to delete "' + itemName + '"?\n\nClick "OK" to delete or "Cancel" to save it.')){
		document.location.href = whereTo;
	}
}

function doubleCheckSubmit(message,formName) {
	if (confirm(message)){
		eval('document.' + formName + '.submit()');
	}
}


function showRef(a) {
	if(document.getElementById(a).style.display != 'block') {
		document.getElementById(a).style.display = 'block';
	} else {
		document.getElementById(a).style.display = 'none';
	}
}

function goURL(url) {
	document.location = url;
}

function limitTextArea(obj, maxChars) {
	if(obj.value.length > maxChars)
		obj.value = obj.value.substring(0, maxChars);
}
