function checkData(){
var problem = "";

if (document.form.realname.value.length <= 0) {
	problem = problem + "Name\n";
}

if (document.form.Address1.value.length <= 0) {
	problem = problem + "Address 1\n";
}

if (document.form.Town.value.length <= 0) {
	problem = problem + "Town/City\n";
}

if (document.form.State.value.length <= 0) {
	problem = problem + "State\n";
}

if (document.form.Zip.value.length <= 0) {
	problem = problem + "Zip Code\n";
}

if (document.form.usrEmail.value.length <= 0) {
	problem = problem + "E-mail address\n";
} else {
// check for proper e-mail address
 var theEmail = document.form.usrEmail.value;
 var atLoc = theEmail.indexOf("@",1);
 var dotLoc = theEmail.indexOf(".",atLoc+2);
 var len = document.form.usrEmail.value.length;
 // alert ("atLoc="+atLoc+"\ndotLoc="+dotLoc);
 if (atLoc <= 0 || dotLoc <= 0 || len <= dotLoc+2) {
 	problem = problem + "Check the E-mail address you have entered\n";
 }
}

// Check Degree
var degreeChecked = 99;
for (x = 0; x < document.form.Degree.length; x++) {
	if  (document.form.Degree[x].check || document.form.Degree[x].checked){
		degreeChecked = x;
	}
}

if (degreeChecked == 99) {
	problem = problem + "Degree\n";
}

// and Check BM Instrumental
if (degreeChecked == 0){
	var insChecked = 99;
	for (x = 0; x < document.form.insArea.length; x++) {
		if  (document.form.insArea[x].check || document.form.insArea[x].checked){
			insChecked = x;
		}
	}
	if (insChecked == 99) {
		problem = problem +"B.M. Instrumental Performance Study Area\n";
	}
}

if (document.form.Instrument.value.length <= 0) {
	problem = problem + "Major Instrument\n";
}

// Figure results
if (problem == "") {
	return true;
	}
else {
	alert("Please complete the following information:\n" + problem);
	return false;
	}
}