function emailPassword() {
	var strLogin = document.frmLogin.txtLogin.value;

	// if (strLogin.length == 0 || strLogin.indexOf("@") < 0)
	if (strLogin.length == 0)
		alert("Please enter your username.");
	else
	//20071225: ampersands split the field-value pairs, not the semicolon.
		self.location = "default.asp?txtAction=password&txtLogin=" + strLogin;
}

function confirmDelete(delUrl, sMsg) {
  if (confirm(sMsg)) {
    document.location = delUrl;
  }
}

function hideElement (elementId) {
	var element;
	if (document.all)
	element = document.all[elementId];
	else if (document.getElementById)
	element = document.getElementById(elementId);
	if (element && element.style)
	element.style.display = 'none';
}
function showElement (elementId) {
	var element;
	if (document.all)
	element = document.all[elementId];
	else if (document.getElementById)
	element = document.getElementById(elementId);
	if (element && element.style)
	element.style.display = '';
}