
/***********************************************************************
This attribute is supported only by IE4/5 and NN6. With NN4 you can 
setup an array of form elements defining the tab order and use the 
onblur handlers to enforce the desired tabbing by focussing on the next 
element in the array. Note however that using onblur places undesired 
limitations on your users (it fires not only when the user tabs but 
also select another window with the mouse) so use this solution with 
care:

This script written on May 21, 2001 by kevin ma

window.onerror=null;
var NS = (document.layers) ? 1:0
var IE = (document.all) ? 1:0
var tabElements;
var activeElement = 0;
function initTabElements (elements) {
  if (!document.all && !document.getElementById) {
    tabElements = elements;
    for (var e = 0; e < tabElements.length; e++) {
      tabElements[e].tabIndex = e;
      tabElements[e].onBlur = tabNextElement;
    }	
   tabElements[0].select();
  }
   
}

function tabNextElement () {
java.lang.System.out.println(this.name + ': ' + this.tabIndex);
  if (this.tabIndex == activeElement) {
    activeElement = (this.tabIndex + 1) % tabElements.length;
    tabElements[(this.tabIndex + 1) % tabElements.length].select();
 }
}

function prepareTabbing () {
var form = document.paymentCaculation;
var tabElements = new Array (form.ApplicantName,form.ApplicantNumber,form.FiscalYear,form.MembershipDollar, form.TCEDollar,form.LCRDollar,form.BSPDollar,form.AttendanceRatio, form.LOTProration, form.CWDRate,form.PriorYear, form.StateAverage, form.LApplicant,form.BSPb,form.CWDd,form.LateAppRed,
form.FederalForm1,form.FederalForm2,form.FederalForm3,form.FederalForm4,form.FederalForm5,
form.FederalForm6,form.FederalForm7,form.FederalForm8,form.FederalForm9,form.FederalForm10,
form.FederalFormD1,form.FederalFormD2,form.FederalFormD3,form.FederalFormD4,form.FederalFormD5);
initTabElements (tabElements);

}

var ReadMsgTop = false;
function ReadOnlyTop() {
   if (!ReadMsgTop) {   
       document.paymentCaculation.MembershipDollar.focus();
              alert("This field is read-only.\n");
                ReadMsgTop = "";        
 }
}

var ReadMsg = false;
function ReadOnly() {
   if (!ReadMsg) {   
       document.paymentCaculation.FederalForm1.focus();
              alert("This field is read-only.\n");
                ReadMsg = "";        
 }
}
var ReadMsgBottom = false;
function ReadOnlyBottom() {
   if (!ReadMsgBottom) {   
       document.paymentCaculation.FederalFormD1.focus();
              alert("This field is read-only.\n");
                ReadMsgBottom = "";        
 }
}
*/
var IE = (document.all) ? 1:0
var NS=false;
if((navigator.appName=="Netscape")&&(parseInt(navigator.appVersion)>=3))
NS=true;
var skip = false;
function ReadOnlySkip() {
if (IE){
   if (!skip) {   
       document.paymentCaculation.MonthDayYear.focus();
	   //form.paymentCaculation.PriorYear.value.select();
              //alert("This field is read-only.\n");
                //skip1 = "";        
 }
}
else if (NS) {
document.paymentCaculation.MonthDayYear.focus();
}
}

var skip1 = false;
function ReadOnlySkip1() {
if (IE){
   if (!skip1) {   
       document.paymentCaculation.PriorYear.focus();
	   //form.paymentCaculation.PriorYear.value.select();
              //alert("This field is read-only.\n");
                //skip1 = "";        
 }
}
else if (NS) {
document.paymentCaculation.PriorYear.focus();
//form.paymentCaculation.PriorYear.value.select();
}
}
var skipASform = false;
function ReadOnlyskipASform() {
if (IE){
   if (!skipASform) { 
       document.paymentCaculation.StateAverage.focus();
	   
              //alert("This field is read-only.\n");
              //skip2 = "";        
 }
}
else if (NS) {
document.paymentCaculation.StateAverage.focus();
}
}

var skip2 = false;
function ReadOnlySkip2() {
if (IE){
   if (!skip2) {   
       document.paymentCaculation.LApplicant.focus();
	   
              //alert("This field is read-only.\n");
              //skip2 = "";        
 }
}
else if (NS) {
document.paymentCaculation.BSPb.focus();
}
}
var skip3 = false;
function ReadOnlySkip3() {
if (IE){
   if (!skip3) {   
       document.paymentCaculation.BSPb.focus();
              //alert("This field is read-only.\n");
                //skip3 = "";        
 }
}
else if (NS) {
document.paymentCaculation.BSPb.focus();
}
}
var skip34 = false;
function ReadOnlySkip34() {
if (IE){
   if (!skip34) {   
       document.paymentCaculation.CWDd.focus();
              //alert("This field is read-only.\n");
                //skip34 = "";        
 }
}
else if (NS) {
document.paymentCaculation.CWDd.focus();
}
}

var skip4 = false;
function ReadOnlySkip4() {
if (IE){
   if (!skip4) {   
       document.paymentCaculation.LateAppRed.focus();
              //alert("This field is read-only.\n");
                //skip4 = "";        
 }
}
else if (NS) {
document.paymentCaculation.LateAppRed.focus();
}
}
var skip5 = false;
function ReadOnlySkip5() {
if (IE){
   if (!skip5) {   
       document.paymentCaculation.FederalForm1.focus();
              //alert("This field is read-only.\n");
                //skip5 = "";        
 }
}
else if (NS) {
document.paymentCaculation.FederalForm1.focus();
}
}
var skip6 = false;
function ReadOnlySkip6() {
if (IE){
   if (!skip6) {   
       document.paymentCaculation.FederalForm2.focus();
              //alert("This field is read-only.\n");
                //skip6 = "";        
 }
}
else if (NS) {
document.paymentCaculation.FederalForm2.focus();
}
}
var skip7 = false;
function ReadOnlySkip7() {
if (IE){
   if (!skip7) {   
       document.paymentCaculation.FederalForm3.focus();
              //alert("This field is read-only.\n");
                //skip7 = "";        
 }
}
else if (NS) {
document.paymentCaculation.FederalForm3.focus();
}
}
var skip8 = false;
function ReadOnlySkip8() {
if (IE){
   if (!skip8) {   
       document.paymentCaculation.FederalForm4.focus();
             // alert("This field is read-only.\n");
                //skip8 = "";        
 }
}
else if (NS) {
document.paymentCaculation.FederalForm4.focus();
}
}

var skip9 = false;
function ReadOnlySkip9() {
if (IE){
   if (!skip9) {   
       document.paymentCaculation.FederalForm5.focus();
              //alert("This field is read-only.\n");
                //skip9 = "";        
 }
}
else if (NS) {
document.paymentCaculation.FederalForm5.focus();
}
}
var skip10 = false;
function ReadOnlySkip10() {
if (IE){
   if (!skip10) {   
       document.paymentCaculation.FederalForm6.focus();
              //alert("This field is read-only.\n");
               // skip10 = "";        
 }
}
else if (NS) {
document.paymentCaculation.FederalForm6.focus();
}
}
var skip11 = false;
function ReadOnlySkip11() {
if (IE){
   if (!skip11) {   
       document.paymentCaculation.FederalForm7.focus();
             // alert("This field is read-only.\n");
               // skip11 = "";        
 }
}
else if (NS) {
document.paymentCaculation.FederalForm7.focus();
}
}
var skip12 = false;
function ReadOnlySkip12() {
if (IE){
   if (!skip12) {   
       document.paymentCaculation.FederalForm8.focus();
              //alert("This field is read-only.\n");
                //skip12 = "";        
 }
}
else if (NS) {
document.paymentCaculation.FederalForm8.focus();
}
}
var skip13 = false;
function ReadOnlySkip13() {
if (IE){
   if (!skip13) {   
       document.paymentCaculation.FederalForm9.focus();
              //alert("This field is read-only.\n");
               // skip13 = "";        
 }
}
else if (NS) {
document.paymentCaculation.FederalForm9.focus();
}
}

var skip14 = false;
function ReadOnlySkip14() {
if (IE){
   if (!skip14) {   
       document.paymentCaculation.FederalForm10.focus();
              //alert("This field is read-only.\n");
               // skip14 = "";        
 }
}
else if (NS) {
document.paymentCaculation.FederalForm10.focus();
}
}
var skip15 = false;
function ReadOnlySkip15() {
if (IE){
   if (!skip15) {   
       document.paymentCaculation.FederalFormD1.focus();
             // alert("This field is read-only.\n");
              //  skip15 = "";        
 }
}
else if (NS) {
document.paymentCaculation.FederalFormD1.focus();
}
}
var skip16 = false;
function ReadOnlySkip16() {
if (IE){
   if (!skip16) {   
       document.paymentCaculation.FederalFormD2.focus();
              //alert("This field is read-only.\n");
                //skip16 = "";        
 }
}
else if (NS) {
document.paymentCaculation.FederalFormD2.focus();
}
}
var skip17 = false;
function ReadOnlySkip17() {
if (IE){
   if (!skip17) {   
       document.paymentCaculation.FederalFormD3.focus();
              //alert("This field is read-only.\n");
                //skip17 = "";        
 }
}
else if (NS) {
document.paymentCaculation.FederalFormD3.focus();
}
}
var skip18 = false;
function ReadOnlySkip18() {
if (IE){
   if (!skip18) {   
       document.paymentCaculation.FederalFormD4.focus();
	             //alert("This field is read-only.\n");
                //skip18 = "";        
 }
}
else if (NS) {
document.paymentCaculation.FederalFormD4.focus();
}
}
var skip19 = false;
function ReadOnlySkip19() {
if (IE){
   if (!skip19) {   
       document.paymentCaculation.FederalFormD5.focus();
	   //document.form.paymentCaculation.FederalFormD5.value.select();
              //alert("This field is read-only.\n");
                //skip19 = "";        
 }
}
else if (NS) {
document.paymentCaculation.FederalFormD5.focus();
}
}
var done = false;
function ReadOnlyDone() {
if (IE){
   if (!done) {   
       document.paymentCaculation.Calculate.select();
              //alert("This field is read-only.\n");
                //done = "";        
 }
}
else if (NS) {
document.paymentCaculation.Calculate.focus();
}
}

