   function submitform()  {
		var id = document.getElementById('UserID');
		var pswd = document.getElementById('Password');
	
		for (var i=0; i<3; i++) { 
			if (document.main.course[i].checked) {
				var theCourse = document.main.course[i].value;
			}
		}
	
		if (theCourse == "respite") {
			 document.main.action = "checkUserLogin.php";
		} else if (theCourse == "autism") {
			 document.main.action = "autism1/checkUserLogin.php";
		} else if (theCourse == "parent") {
			 document.main.action = "autism2/checkUserLogin.php";		
		}
		
		if ((id.value != "") && (pswd.value != "")) 
			document.main.submit();
		else
			alert("Please enter a userid and password to login.");
   }  /* submit form */

	function MM_openBrWindow(theURL,winName,features) { 
  		window.open(theURL,winName,features);
	}

