<!--//
function setFocusX(aField) {
document.forms[2][aField].focus();
}
function isEmptyX(aTextField) {  
if ((document.forms[2][aTextField].value.length==0) ||
 (document.forms[2][aTextField].value==null)) {
return true;
}
else { return false; }
}

function isOKLengthX(aTextField,aLen) { 
  if ((document.forms[2][aTextField].value.length<aLen)) {
	return true;
  }
else { return false; }
}

function SubmitForm() {
	
	// Step 1: keywords
	if ( isEmptyX("keywords") ) {
		alert("Please enter 'keywords' for course search.");
		setFocusX("keywords");
		return false;		
	}
	return true;
}

function validateKnowMore() {

	// Step 1: Contact
	if ( isEmptyX("Contact") ) {
		alert("Please enter your Contact info (email or phone)?");
		setFocusX("Contact");
		return false;		
	}		
	// Step 2: ContactName
	if ( isEmptyX("ContactName") ) {
		alert("Please enter your Contact Name?");
		setFocusX("ContactName");
		return false;		
	}	
	// Step 3: PreferredTime
	if ( isEmptyX("PreferredTime") ) {
		alert("Please enter your Preferred Time to be contacted.");
		setFocusX("PreferredTime");
		return false;		
	}
	
	return true;
}
-->
