<!-- 

// autoWriteLink and changeFrame functions 
// by David Reinfurt, ORG inc.
// June 20, 2000 
// see also http://www.o-r-g.com



// ***** autoWriteLink *****

// firstItemNumber is a global that tracks 
// the first item number on a page
// starts at one less than page first item
// it is declared on page that links to this js

function autoWriteLink() {
    i = ++firstItemNumber;
    horizvert="v";

    // exceptions for h
    if (i==14 || 
         i==30 ||
         i==31 ||
         i==32 ||
         i==38 ||
         i==40 || 
         i==48 ||
         i==58 ||
         i==59 ||
         i==65 ||
         i==66 ||
									i==74 ||
         i==75 || 
		 i==76 ||
         i==78 ||
         i==79 || 
		 i==81 ||
         i==88 || 
         i==91 || 
         i==97 || 
         i==99 || 
         i==100 || 
         i==102 || 
         i==103 || 
         i==107 || 
         i==108 || 
         i==109 || 
         i==110 || 
         i==111 || 
         i==116 || 
         i==120 || 
         i==121 || 
         i==150 || 
         i==151 ||  
         i==152 || 
         i==154 || 
         i==156 || 
         i==160 || 
         i==161 || 
         i==164 ||
         i==178 ||
         i==183 ||
         i==187 ||
         i==188 ||
         i==190 || 
         i==191 ||
         i==208 ||
		 i==214 ||
         i==217 ||
         i==218 ||
		 i==221 ||
         i==224 ||
         i==228 ||
         i==233 ||
         i==247 || 
         i==249 ||
         i==250 ||
         i==252 ||
         i==258 ||
         i==259 ||
         i==260 ||
         i==269 ||
         i==279){
         horizvert="h";
    }

    // test for zeros
    if (i <= 9) {
        j = horizvert+"00"+eval('i');
    }
    else{
        if (i <= 99) {
            j = horizvert+"0"+eval('i');
        }
        else{
            j = horizvert+eval('i');
        }
    }

    // write html database query
    document.write("<A HREF=\"/ortiz_test/index" + eval('horizvert') + ".asp?itemid=" +eval('j') + "\">"); 
}



// ***** changeFrame *****

function changeFrame(frameName1,fileName1,frameName2,fileName2) {
     parent[frameName1].location = fileName1
     parent[frameName2].location = fileName2
}

//  -->