function formCheck(formobj){
	if(document.getElementById('sib2').style.display == 'none' && document.getElementById('sib3').style.display == 'none') {
		var fieldRequired = Array("firstname", "lastname", "district", "email", "address1", "address2");
		var fieldDescription = Array("First Name", "Last Name", "School District", "E-mail Address", "Address Line 1", "Address Line 2");
	} else if(document.getElementById('sib2').style.display == 'block' && document.getElementById('sib3').style.display == 'none') {
		var fieldRequired = Array("firstname", "lastname", "district", "email", "address1", "address2", "firstname2", "lastname2", "district2", "email2", "address12", "address22");
		var fieldDescription = Array("First Name", "Last Name", "School District", "E-mail Address", "Address Line 1", "Address Line 2", "Sibling #1 First Name", "Sibling #1 Last Name", "Sibling #1 School District", "Sibling #1 E-mail Address", "Sibling #1 Address Line 1", "Sibling #1 Address Line 2");
	} else if(document.getElementById('sib3').style.display == 'block' && document.getElementById('sib3').style.display == 'block') {
		var fieldRequired = Array("firstname", "lastname", "district", "email", "address1", "address2", "firstname2", "lastname2", "district2", "email2", "address12", "address22", "firstname3", "lastname3", "district3", "email3", "address13", "address23");
		var fieldDescription = Array("First Name", "Last Name", "School District", "E-mail Address", "Address Line 1", "Address Line 2", "Sibling #1 First Name", "Sibling #1 Last Name", "Sibling #1 School District", "Sibling #1 E-mail Address", "Sibling #1 Address Line 1", "Sibling #1 Address Line 2", "Sibling #2 First Name", "Sibling #2 Last Name", "Sibling #2 School District", "Sibling #2 E-mail Address", "Sibling #2 Address Line 1", "Sibling #2 Address Line 2");
	}
	// dialog message
	var alertMsg = "Please complete the following fields:\n";
	
	var l_Msg = alertMsg.length;
	
	for (var i = 0; i < fieldRequired.length; i++){
		var obj = formobj.elements[fieldRequired[i]];
		if (obj){
			switch(obj.type){
			case "select-one":
				if (obj.selectedIndex == -1 || obj.options[obj.selectedIndex].text == ""){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "select-multiple":
				if (obj.selectedIndex == -1){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "text":
			case "textarea":
				if (obj.value == "" || obj.value == null){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			default:
			}
			if (obj.type == undefined){
				var blnchecked = false;
				for (var j = 0; j < obj.length; j++){
					if (obj[j].checked){
						blnchecked = true;
					}
				}
				if (!blnchecked){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
			}
		}
	}

	if (alertMsg.length == l_Msg){
		return true;
	}else{
		alert(alertMsg);
		return false;
	}
}