function loginNotEnabled() {
	alert("Login to the trading platform has not yet been enabled." + '\n' + '\n' + "Please contact Nodal Exchange for more information about joining our marketplace.");
}

function displayDate(elementId) {
	document.getElementById(elementId).innerHTML = new Date().format("dddd, mmmm d, yyyy");
}

//The following function was taken from http://www.htmlcodetutorial.com/forms/index_famsupp_157.html
function submitenter(myfield, e, formName) {
	var keycode;
	if (window.event) 
		keycode = window.event.keyCode;
	else if (e) 
		keycode = e.which;
	else 
		return true;

	if (keycode == 13) {
		document.forms[formName].submit();
		return false;
	}
	else
		return true;
}

//The following code was taken from http://www.developersdex.com/asp/message.asp?p=2978&r=6420654
function togglePasswordField(element) {
	var newElement = document.createElement('input');
	newElement.type = 'password';
	newElement.name = element.name
	newElement.value = '';
	newElement.className = element.className;
	element.parentNode.replaceChild(newElement, element);
	newElement.select();
}
