
function change_it2(txt1,tx,t,pics,thnum)
{
var x=0;
numpics=pics.length
//thenum=0;
var thenum
var tnum

tnum=thnum + "+=1";
thenum=eval(tnum)
if (thenum>numpics-1)
{
//document.time.time2.value=txt[0];
//document[imgName].src=pics[0];
//document[imgName].alt=txt[0];

document[tx].src='Thumbnails/' + pics[0]+ ".thumb.jpg";
document[tx].alt=txt1[0]+" Click to see Larger View";


document.getElementById(t).href="Thumbnails/" + pics[0] + ".sized.jpg";
//document.getElementById(sel).value=txt1[0];

tnum=thnum + "=0";
tnum=eval(tnum)

}
else
{

document[tx].src='Thumbnails/' + pics[thenum] + ".thumb.jpg";
document[tx].alt=txt1+" Click to see Larger View";
document.getElementById(t).target="Thumbnails/" + pics[thenum] + ".sized.jpg";
document.getElementById(t).href="Thumbnails/" + pics[thenum] + ".sized.jpg";

x+=1;
}
}




function change_it(txt1,tx,t,pics,tpics,sel)
{

{
thenum=0;
txt=eval(txt1)

document.write('<A href=Thumbnails/'+ tpics[thenum]+ ".sized.jpg" +' target=Thumbnails/'+ pics[thenum] + ".sized.jpg"+' id=' + t + '><IMG src=Thumbnails/'+  tpics[thenum] + ".thumb.jpg" +' alt="'+txt+' Click to see Larger View" border=0 name=' + tx +'></a>');
document.write("<FORM><INPUT TYPE='button' value='Click to Change View' onClick='change_it2(" + txt1 + "," + '"' + tx + '"' + "," + '"' + t + '"' + "," + ''  + pics + ''  +  ',"' + sel + '"' +')' +"'></FORM>");

}
}


