// JavaScript Document
function checkForm() {
	var lf     = window.document.labsForm;
	var errors = '';
	if (lf.Password.value != lf.ConfirmPassword.value) {
		alert('Initial and confirmed password do not seem to match.');
		return false;
	}	
	if (!lf.First_name.value.length) errors += " - First name\n";
	if (!lf.Last_name.value.length)  errors += " - Last name\n";
	if (!lf.Title.value.length)    errors += " - Title\n";
	if (!lf.Address.value.length)  errors += " - Street\n";
	if (!lf.Address2.value.length) errors += " - City/State\n";
	if (!lf.Email.value.length)    errors += " - Email address\n";
	//if (!lf.Phone.value.length) errors += " - Phone number\n";
	
	if (errors.length) { 
	alert("Please fill in the following: \n"+errors); return false;
	}
//	disableForm('labs');
	
	return true; 
}

function disableForm(theform) {
	if (document.all || document.getElementById) {
	for (i = 0; i < theform.length; i++) {
	var tempobj = theform.elements[i];
	if (tempobj.type.toLowerCase() == "submit" || tempobj.type.toLowerCase() == "reset")
	tempobj.disabled = true;
}
}}
