//escape out of frames
/*if (window != top) {
   top.location.href = location.href;
}
if (self.location != top.location) {
   top.location = self.location;
}*/

function checkLogon(frmLogon2) {
	var txtLogon = frmLogon2.txtLogon.value;
	var txtPassword = frmLogon2.txtPassword.value;
		
	if (txtLogon == " " || txtLogon == "" || txtLogon == "      ") {
	    alert('Please enter at least 4 characters for your logon')
	    frmLogon2.txtLogon.focus();
	    return false;
	}
	if (txtLogon.length < 4) {
	   alert('Please enter at least 4 characters for your logon')
	   frmLogon2.txtLogon.focus();
	   return false;
	}
	if (txtLogon.length > 20) {
	   alert('You entered too many characters for your logon')
	   frmLogon2.txtLogon.focus();
	   return false;
	}
	if (txtPassword == " " || txtPassword == "" || txtPassword == "      ") {
		alert('Please enter at least 5 characters for your password')
		frmLogon2.txtPassword.focus();
		return false;
	}
	if (txtPassword.length < 5) {
		alert('Please enter at least 5 character for your password')
		frmLogon2.txtPassword.focus();
		return false;
	}
	if (txtPassword.length > 20) {
		alert('You entered too many characters for your password')
		frmLogon2.txtPassword.focus();
		return false;
	}
	return true;	
}

function submitLogon(frmLogon2) {
   if(checkLogon(frmLogon2)) {
      frmLogon2.submit();
   }
}