//-- Turn on CHANGES MADE indicator and set marker for the item group that changed.
function ChangeMade(Item) {	
}

function ValidateJS() {
//this function is designed to validate all the data entered on this form
errmsg = 'Please fix these errors:\n';
err = 0;
//This collects Service Date and Recieved Date and keeps them in text as well as converts them to date format.
ParkNum=document.CreateLogin.ParkNum.value;
SpaceId=document.CreateLogin.SpaceId.value;
UnitSeq=document.CreateLogin.UnitSeq.value;
Contact1=document.CreateLogin.Contact1.value;
AmtToPay=document.CreateLogin.AmtToPay.value;
Email=document.CreateLogin.Email.value;
Password1=document.CreateLogin.Password1.value;
Password2=document.CreateLogin.Password2.value;
if ((ParkNum.length==0) || (SpaceId.length==0) || (UnitSeq.length==0) || (Contact1.length==0) || (AmtToPay.length==0) || (Email.length==0) || (Password1.length==0) || (Password2.length==0)) {
	errmsg=errmsg + '\t- ALL fields must be filled in to create a login. \n';
	err=1;
	}
else {
	if (!CheckEmailMask(Email)) {
		alert("The Email you entered is not valid.");
		document.CreateLogin.Email.focus();
		return false;
		}
	if (Password1!=Password2) {
		errmsg=errmsg + '\t- PASSWORD does not match CONFIRM PASSWORD. \n';
		err=1;
		}
	if (Password1.length<6) {
		errmsg=errmsg + '\t- PASSWORD must contain at least 6 characters and/or numbers. \n';
		err=1;
		}
	}
// Alert the user of the errors that were encountered.
if (err==1) {
	alert(errmsg);
	return false;
	}
else {
	document.CreateLogin.submit();
	return true;
	}
}
