<!--
		// This function is requested from the Home Page and is used to validate user credentials via
		// an AJAX request object. If the user is a valid user then they get passed onto the main menu page
		// via the document.showmenu.submit() function, otherwise the response text indicates an error during 
		// validation.
  		function submitForm(theform) {
  		var session;
		var status = AjaxRequest.submit(
    	theform
    	,{
      	 'onSuccess':function(req){  
		 Result_Div.innerHTML = req.responseText;
		 document.all.Result_Div.style.visibility='visible';
		 if (req.responseText.substring(0,1) == 'Y')
			{ 
			Result_Div.innerHTML = '';
			document.all.Result_Div.style.visibility='hidden';
			theform.session.value = req.responseText.substring(1,51);
			document.showmenu.sessid.value = theform.session.value;	
			document.showmenu.Instance2.value = theform.Instance1.value;
			document.showmenu.submit();
			}
		 }
   	 	 }
  		 );
  		 return status;
		}
		
//-->
