
function checkForm() {
	var flag=counter=0;
	for (counter=0; counter<document.addTix.category.length; counter++) {
		if (document.addTix.category[counter].checked){
			flag++;
		}
	}
	if(flag==0) {
		alert("Please select at least one category...");
		return false;
	} else {
		return true;
	}
}


function checkForm2() {
	if(document.addCust.firstname.value=="") {
		alert("Please enter customer's First Name.");
		document.addCust.firstname.focus();
		return false;
	}

	if(document.addCust.lastname.value=="") {
		alert("Please enter customer's Last Name.");
		document.addCust.lastname.focus();
		return false;
	}

	if(document.addCust.address1.value=="") {
		alert("Please enter customer's address.");
		document.addCust.address1.focus();
		return false;
	}

	if(document.addCust.city.value=="") {
		alert("Please enter customer's City of residence.");
		document.addCust.city.focus();
		return false;
	}

	if(document.addCust.state.value=="") {
		alert("Please enter customer's State of residence.");
		document.addCust.state.focus();
		return false;
	}

	if(document.addCust.homephone.value=="") {
		alert("Please enter customer's home telephone.");
		document.addCust.homephone.focus();
		return false;
	}

	if(document.addCust.prid.value=="") {
		alert("Please select a provider id.");
		document.addCust.prid.focus();
		return false;
	}

	if(document.addCust.login.value=="") {
		alert("Please enter a valid login.");
		document.addCust.login.focus();
		return false;
	}
}

function validatePwd() {
	if(document.frm.password.value==document.frm.mailbox.value){
		alert("Your password cannot be the same as the username. Try again.");
		return false;
	}
	if(document.frm.password.value.length < 6){
		alert("Your password must be at least 6 characters long. Try again.");
		return false;
	}
}
