<!--
function window_onload() {
	document.frmAccountInfo.fname.focus();
}

function Update_Edit_Flag() {
	document.frmAccountInfo.hdnEditFlag.value="Y";
}

function frmAccountInfo_onsubmit() {
	if (document.frmAccountInfo.hdnEditFlag.value=="Y"){
		if (document.frmAccountInfo.fname.value.length==0) {
			alert("Please enter a first name for the account.");
			document.frmAccountInfo.fname.focus();
			return false;
		}
		else {
			if (document.frmAccountInfo.lname.value.length==0) {
			alert("Please enter a last name for the account.");
			document.frmAccountInfo.lname.focus();
			return false;
			}
			else {
				if (document.frmAccountInfo.email.value.length==0) {
				alert("Please enter an e-mail address.");
				document.frmAccountInfo.email.focus();
				return false;
				}
				else {	
					if ((document.frmAccountInfo.email.value.indexOf("@")==-1)||(document.frmAccountInfo.email.value.indexOf(".")==-1)) {
					alert("Please enter a valid e-mail address.");
					document.frmAccountInfo.email.focus();
					return false;
					}
					else {		
						if (document.frmAccountInfo.email.value != document.frmAccountInfo.confirm_email.value) {
						alert("E-mail address entries do not match. Please enter a valid e-mail address.");
						document.frmAccountInfo.email.focus();
						return false;
						}
						else {	
							if (document.frmAccountInfo.password.value.length!=0) {
								if (document.frmAccountInfo.password.value != document.frmAccountInfo.confirm_password.value) {
								alert("Passwords do not match. Please enter valid passwords.");
								document.frmAccountInfo.password.focus();
								return false;
								}
								else {
									return true;
								}
							}
							else {										
								return true;
							}
						}
					}
				}
			}
		}
	}
	else {
		return true;
	}
}

function Reset_Original_Values() {
	document.frmAccountInfo.fname.value = document.frmAccountInfo.original_fname.value;
	document.frmAccountInfo.lname.value = document.frmAccountInfo.original_lname.value;
	document.frmAccountInfo.email.value = document.frmAccountInfo.original_email.value;	
	document.frmAccountInfo.confirm_email.value = document.frmAccountInfo.original_email.value;
	document.frmAccountInfo.password.value = "";	
	document.frmAccountInfo.confirm_password.value = "";	
	document.frmAccountInfo.hdnEditFlag.value="N";

	if (document.frmAccountInfo.original_chkTC.value == "checked") {
		document.frmAccountInfo.chkTC.checked = true;
		}
	else {
		document.frmAccountInfo.chkTC.checked = false;
		}
		
	if (document.frmAccountInfo.original_chkMailList.value == "checked") {
		document.frmAccountInfo.chkMailList.checked = true;
		}
	else {
		document.frmAccountInfo.chkMailList.checked = false;
		}
		
	if (document.frmAccountInfo.original_news_letter_indic.value == "checked") {
		document.frmAccountInfo.news_letter_indic.checked = true;
		}
	else {
		document.frmAccountInfo.news_letter_indic.checked = false;
		}	
			
	if (document.frmAccountInfo.original_road_detour_closure_indic.value == "checked") {
		document.frmAccountInfo.road_detour_closure_indic.checked = true;
		}
	else {
		document.frmAccountInfo.road_detour_closure_indic.checked = false;
		}
			
	if (document.frmAccountInfo.original_schedule_indic_pda.value == "checked") {
		document.frmAccountInfo.schedule_indic_pda.checked = true;
		}
	else {
		document.frmAccountInfo.schedule_indic_pda.checked = false;
		}
							
	if (document.frmAccountInfo.original_schedule_indic_pdf.value == "checked") {
		document.frmAccountInfo.schedule_indic_pdf.checked = true;
		}
	else {
		document.frmAccountInfo.schedule_indic_pdf.checked = false;
		}
		
	if (document.frmAccountInfo.original_special_event_shuttle_indic.value == "checked") {
		document.frmAccountInfo.special_event_shuttle_indic.checked = true;
		}
	else {
		document.frmAccountInfo.special_event_shuttle_indic.checked = false;
		}		
		
	if (document.frmAccountInfo.original_new_program_indic.value == "checked") {
		document.frmAccountInfo.new_program_indic.checked = true;
		}
	else {
		document.frmAccountInfo.new_program_indic.checked = false;
		}		
	if (document.frmAccountInfo.original_metrovan_indic.value == "checked") {
		document.frmAccountInfo.metrovan_indic.checked = true;
		}
	else {
		document.frmAccountInfo.metrovan_indic.checked = false;
		}		

	if (document.frmAccountInfo.original_initiative_indic.value == "checked") {
		document.frmAccountInfo.initiative_indic.checked = true;
		}
	else {
		document.frmAccountInfo.initiative_indic.checked = false;
		}		
}
//-->