
// Application-specific JavaScript function library
// -----------------------------------------------------------------------

function em_access(){
   // Validates email address, then calls next page if valid

	// Get value of address input
	emailobj = document.getElementById('em_addr') ;
	emailaddr = emailobj.value ;

	// make sure address has been entered
	if ((emailaddr==null)||(emailaddr=="")){
		alert("Please enter your email address") ;
		emailobj.focus() ;
		return false ;
   }

   // validate address
   emvalid = EmailValid(emailaddr)    // returns error message if invalid


	if (emvalid>"") {
		alert(emvalid) ;
		return false ;
	}

   return true ;
}

// end of function em_access
// -----------------------------------------------------------------------
