function checkPass(form)
{
 if (form.newPassword.value == "" || form.newPassword.value.length < 6)
	{
      	alert("Please enter a password. Passwords must be at least 6 characters long.");
      	form.newPassword.focus();
      	return false;
  }

  return true;
}

function openWindow(file)
{
  newWindow=window.open(file,"profile","toolbar=yes,resizable=yes,location=yes,scrollbars=yes,width=500,height=650");
  newWindow.focus();
}

// check an email address
function checkEmail(address) {
	var filter=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9])+$/;
	if (address==null || address=="" || !filter.test(address)) return false;
	return true;
}

