/* js cached: /opt/inet6/inet6es-5.0/base/global/www/skins/default/javascript/yui/YAHOO.js:/opt/inet6/inet6es-5.0/base/global/www/skins/default/javascript/max_form.js:/opt/inet6/inet6es-5.0/base/global/www/skins/default/javascript/yui/dom/dom.js:/opt/inet6/inet6es-5.0/base/global/www/skins/default/javascript/imgen.js:/opt/inet6/inet6es-5.0/base/global/www/skins/default/javascript/global.js:/opt/inet6/inet6es-5.0/base/global/www/skins/default/javascript/nodomws.js:/opt/inet6/inet6es-5.0/base/global/inet6se/features/com.theangusnetwork.cattle.standard/skins/default/javascript/standard.js*/
eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[(function(e){return d[e]})];e=(function(){return'\\w+'});c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('4 7=9(){6{g:{},h:{},d:{},f:9(5){e(!5||!5.8){6 a}4 3=5.b(".");4 2=7;c(4 i=(3[0]=="7")?1:0;i<3.8;++i){2[3[i]]=2[3[i]]||{};2=2[3[i]]}6 2}}}();',19,19,'||currentNS|levels|var|sNameSpace|return|YAHOO|length|function|null|split|for|example|if|namespace|util|widget|'.split('|'),0,{}))
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[(function(e){return d[e]})];e=(function(){return'\\w+'});c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('f 7L;f 2X;f 8j;f 8k;f 7D;f 29;g 7F(B,Z,5m,X,N,2g){b.B=B;b.Z=Z;b.1p=W;c(F(X)){b.X=X;b.N=N;b.2g=2g}m{b.X=W;b.N=X;b.2g=N}b.1S=5m;b.34=T;b.2j=\'#8o\';b.2q=\'#7J\';b.2p=\'#8p\';b.3c=W;b.1M=1;c(!b.B.2y){b.B.2y=g(){}}b.8q=g(5R){c(5R){b.3c=T}};b.8s=g(){w b.3c};b.8t=g(1M){c(!1M){b.1M=1}m{b.1M=1M}};b.2e=g(){w b.1M};b.8u=g(2q,2j,2p){b.2j=2j;b.2q=2q;b.2p=2p};b.8v=g(){f 1f=b.B;f 3x=H 1o();f 3B=H 1o();f 3Z=H 1o();f 1U;f 3z;E(f i=0;i<1f.D.r;i++){J=1f.D[i];17=J.1b;3z=H 1C(J.1U);1U=3z.1t(\'||\');c(17!=\'2F\'&&17!=\'2B\'&&17!=\'31\'&&17!=\'8w\'&&1U[1]){3x[i]=J.u;3B[i]=1U[0];3Z[i]=1U[1]}}b.45(3x);b.4w(3B);b.48(3Z)};b.45=g(4V){b.58=4V;b.3b()};b.4w=g(47){b.4z=47;b.3b()};b.48=g(4f){b.5c=4f;b.3b()};b.61=g(){b.1p=W};b.3b=g(){b.1p=T};b.31=g(){b.5u()};b.42=g(){c(b.X&&!F(b.N)){b.3d();b.X.1z.h=b.N;b.2Y()}m{b.2Y()}};b.49=g(){c(!F(b.N)){b.B.1z.h=b.N-b.2e();b.B.4U.h=\'49\';c(b.B.1z.h<=0){b.2Y()}m{b.1r(b.B)}}};b.4a=g(2x,3h){b.B.1z.h=b.2g;b.B.4U.h=\'4a\';b.N=b.2g;b.2B(2x,3h,T)};b.2B=g(2x,3h,3l){b.B.2y();b.B.2y();c(2x)b.B.1J.h=2x;c((b.1p&&b.2T())||!b.1p){c(b.X&&!F(b.N)){b.3d();c(3l!=T)b.X.1z.h=b.N+b.2e();b.1r(b.X)}m c(!F(b.N)){c(3l!=T)b.B.1z.h=b.N+b.2e();b.1r(b.B)}m{b.1r(b.B)}}};b.2y=g(){c((b.1p&&b.2T())||!b.1p){c(b.X&&!F(b.N)){b.3d();b.X.1z.h=b.N+b.2e();b.1r(b.X);w W}m c(!F(b.N)){b.B.1z.h=b.N+b.2e();c(b.Z){b.B.Z=b.Z}w T}m{c(b.Z){b.B.Z=b.Z}w T}}};b.3d=g(){f 1f=b.B;f 5O=b.X;f l;f J;f 17;f 1j;f L;f 1a;f 38;38="";E(f i=0;i<1f.D.r;i++){J=1f.D[i];17=J.1b;1j=J.u;L=J.h;1a=3O(\'5O.\'+1j);c(b.3c&&!1a){2v("64 5P B 65 66 11 M: \'"+1j+"\'.")}c(17=="1d"||17=="55"||17=="5P"){1A=/\\"/2L;4g=H 1C(L);1a.h=4g.2M(1A,"\\"")}m c(17=="57"){c(38.1c(","+1j)<0){1a.h="";c(J.18){1a.h=L;38+=","+1j}}m c(J.18){1a.h+=","+L}}m c(17=="4G"){c(J.18){1a.h=J.h}}m c(17=="O-3u"){1a.h=J.A[J.2k].h}m c(17=="O-4D"){f 3i=H 1o();f y=0;E(f x=0;x<J.r;x++){c(J.A[x].1H){3i[y]=J.A[x].h;y++}}1a.h=3i.8c(",")}}w W};b.5s=g(){f 3T;c(!b.34){3T=5C("5y 69 8a 5B 1L b N. 5S 5K 1L 6a 88, 6c 1L 6d 6e 84 11 5B.");c(3T){w 1}m{w}}m{w}};b.6h=g(){b.34=W};b.1r=g(1f,1J){4i{{f 2a=t.6j("O");E(f i=0;i<2a.r;i++){f 3f=W;4i{3f=3O(\'6k\'+2a[i].u.G().2M(\'[]\',\'\'))}4m(e){}c(3f)3f.31();c(2a[i].5v(\'4l\')!=4v&&2a[i].5v(\'4l\')=="7T"){6l(2a[i])}}}}4m(e){}c(!1J){1J=b.Z}c(1J){1f.Z=1J}1f.2B()};b.5u=g(){b.34=T;b.B.31()};b.2Y=g(){f 4r=b.5s();f 4q=H 1C(b.1S);1A=/42-B=1/2L;5n=4q.2u(1A);c(4r){c((b.1p&&b.2T())||!b.1p){c(b.X){b.1r(b.X)}m{b.1r(b.B)}}}m c(5n>=0){b.1r(b.B,b.1S)}m{c(F(b.1S)){t.5U.5V=b.1S}m{6r.6s(b.1S)}}};b.4T=g(1Y){f 1x="";f 2r;f 1Z;f i=0;2Z(i<1Y.r){2r=1Y.1q(i);c(!F(2r)&&2r!=" "){1x+=2r}i++}c(1x.r<10){w W}m{i=10;1Z=" 5j. ";2Z(i<1x.r){1Z+=1x.1q(i);i++}c(1Z==" 5j. "){1Z=""}w"("+1x.S(0,3)+") "+1x.S(3,6)+"-"+1x.S(6,10)+1Z}};b.2T=g(){f 16,Q,l,z,3a,4A,4B,i;f 1R,1w,v,Y;1R=b.B;1w=b.58;v=b.5c;Y=b.4z;3a=b.2j;4A=b.2q;4B=b.2p;16="";Q="";i=1;E(l 1l 1w){c(1w[l]!=\'!\'){c(F(v[l])&&(v[l].G().1q(0)==\'R\'||v[l].G().1q(0)==\'C\')){z=1R.D[1w[l]][0]}m{z=1R.D[1w[l]]}c(z&&(z.1b=="O-3u"||z.1b=="O-4D")){c(z.2k==v[l]){15=1;Q+="19 O 6y h 1l 11 "+Y[l]+" M.\\n"}}m c(z&&(z.1b=="57")){f 2H=0;f y;f 3p=v[l].G().4E(0,1);f 2Q=v[l].G().1t("-");f 3C=2Q[0].G().4E(1);f 2o;c(2Q.r>1){2o=2Q[1].G()}f 1V=1R.D[1w[l]];E(y=0;y<1V.r;y++){c(1V[y].18){2H++}}c(3p!=\'!\'&&2H<3C){15=1;Q+="19 O 5k 4J "+3C+" 4H 11 A E "+Y[l]+".\\n"}c(3p!=\'!\'&&2o>0&&2H>2o){15=1;Q+="19 O "+2o+" 51 6C A E "+Y[l]+".\\n"}}m c(z&&(z.1b=="4G")){f 3q=0;f y;f 1V=1R.D[1w[l]];E(y=0;y<1V.r;y++){c(1V[y].18){3q=1}}c(v[l]!=\'!\'&&3q!=1){15=1;Q+="19 O 3u 4H 11 A E "+Y[l]+".\\n"}}m c(z&&!b.1n(z.h)&&((!F(v[l]))||(F(v[l])&&v[l].1q(0)!=\'!\'))){16+=Y[l]+\'\\n\';z.1i.3K=3a;c(i==1){z.3R()}i++}m c(z){f 15=0;c(!F(v[l])&&v[l]>0){f 4I=b.1n(z.h);c(4I.r<v[l]){15=1;Q+=Y[l]+" 6F 2W 5k 4J "+v[l]+" 6H.\\n"}}m c(v[l].G()=="K"||v[l].G()=="!K"){f 2l;f K=b.1n(z.h);f 3r=K.S(0,5);f 4R=K.S(5,6);f 4M=K.S(6,10);c(K.r>0){c(K.r<6){c(F(3r)||K.r<5){2l=T}}m c(K.r==7){c(!F(K.S(0,1))||F(K.S(1,2))||!F(K.S(2,3))||K.S(3,4)!=" "||F(K.S(4,5))||!F(K.S(5,6))||F(K.S(6,7))){2l=T}}m c(K&&K.r>5){c(F(3r)||4R!="-"||F(4M)||K.r<10){2l=T}}c(2l){15=1;Q+="19 6R 11 6K 6M 1l 11 "+Y[l]+" M: 6N.\\n"}}}m c(v[l].G()==\'1e\'||v[l].G()==\'!1e\'){f 1e=b.1n(z.h);c(1e.r>0&&((1e.1c("@")<3)||(1e.1c(".",1e.1c("@"))>(1e.r-3))||(1e.1c(".",1e.1c("@"))<(1e.1c("@")+3)))){Q+=Y[l]+" 6O 3W 6Q 1L 2W 5F 1l 6S.\\n";15=1}}m c(v[l].G()==\'4S\'||v[l].G()==\'!4S\'){f 1Y=b.1n(z.h);f 3t=b.4T(1Y);c(1Y.r>0){c(!3t){15=1;Q+="19 6V 5f 11 "+Y[l]+" M 5h. (6X: 6Y-71-72)\\n"}m{z.h=3t}}}m c(v[l].G()==\'2A\'||v[l].G()==\'!2A\'){f d=z.h;c(d.r>0){1T=H 1C(d);c(1T.1c(\'-\')>0){1A=/-/2L;2D=H 1C("/");d=1T.2M(1A,2D)}f V=H 2G(d);c(V.1K()<4X){V.4Y(V.1K()+1F)}c(F(V)){15=1;Q+="19 25 a 3H 2A 1l 11 "+Y[l]+" M. 1/2/52\\n"}m{z.h=(V.3y()+1)+"/"+V.3j()+"/"+V.1K()}}}m c(v[l].G()==\'4W\'||v[l].G()==\'!4W\'){f d=z.h;c(d.r>0){1T=H 1C(d);c(1T.1c(\'-\')>0){1A=/-/2L;2D=H 1C("/");d=1T.2M(1A,2D)}f 2N=H 2G();f 4Z=H 2G(2N.1K(),2N.3y(),2N.3j());f V=H 2G(d);c(V.1K()<4X){V.4Y(V.1K()+1F)}c(F(V)||V<4Z){15=1;Q+="19 25 a 2A 75 1L 51 76 78 79 1l 11 "+Y[l]+" M. 1/2/52\\n"}m{z.h=(V.3y()+1)+"/"+V.3j()+"/"+V.1K()}}}m c(v[l].G()==\'3F\'||v[l].G()==\'!3F\'){f 3A=b.1n(z.h);c(3A.r>0){f I,U,1X;1X=0;U=3A.1t(" ");c(U[0].1c(":")>0){I=U[0].1t(":")}m c(U[0].1c(".")>0){I=U[0].1t(".")}m{1X=1}c(I[1].G().r>=4){f l=I[1].G();I[1]=l.S(0,2);U[1]=l.S((l.r-2),(l.r))}c(U[1]){U[1]=b.1n(U[1].G().7e())}c((1X==0)){c((I[0]>12&&I[0]<=24)){c(I[0]==24){U[1]="2E"}m{U[1]="3D"}I[0]=I[0]-12}c((I[0]>0&&I[0]<=12&&I[1]>=0&&I[1]<=59)){c(U[1]!="2E"&&U[1]!="3D"){c(I[0]==12){U[1]="3D"}m{U[1]="2E"}}c(F(I[0])||I[0]==\'\'){I[0]=12}c(F(I[1])||I[1]==\'\'){I[1]="7h"}z.h=(I[0]+":"+I[1]+" "+U[1])}m{1X=1}}c(1X){15=1;Q+="19 25 a 3H 3F 1l 11 "+Y[l]+" M.  8:30 2E\\n"}}}m c(v[l].G()==\'2h\'||v[l].G()==\'!2h\'){f 2h=b.1n(z.h);c(2h.r>0){c(F(2h)){15=1;Q+="19 25 a 3H 7o 1l 11 "+Y[l]+" M.\\n"}}}m c(v[l].G()==\'2c\'||v[l].G()==\'!2c\'){f 2c=b.1n(z.h);f 3J=1;c(2c.r>0){E(f i=0;i<2c.r;i++){f 14=2c.1q(i);c(14!=" "&&14!="$"&&14!=","&&14!="."&&14!="0"&&!2b(14)){15=1;Q+="19 25 a 5o-5p 5q h 1l 11 "+Y[l]+" M\\n";3J=0;3S}}c(3J==1){}}}c(15==1){z.1i.3K=3a}m{z.1i.3K="7t"}}}}c(16||Q){f 3g,33;3g="";33="";c(16){3g="19 7v 7w 11 7x 7y 5z 5F 5f 5h.\\n\\n"}c(16&&Q){33="7z\\n\\n"}2v(3g+16+33+Q);w W}m{w T}};b.7B=g(3L){f 3M="";E(f i=0;i<3L.r;i++){f 14=3L.1q(i);c(2b(14)||14==\'.\'||14==\'0\'){3M+=14}m{c(14!=" "&&14!="$"&&14!=","){2v("19 25 a 5o-5p 5q h.");3S}}}w 3M};b.1n=g(L){2Z(\'\'+L.1q(0)==\' \'){L=L.S(1,L.r)}2Z(\'\'+L.1q(L.r-1)==\' \'){L=L.S(0,L.r-1)}w L};b.7H=g(1u){f 1f=b.B;1a=3O(\'1f.\'+1u);1a.h=\'\'}}g 7M(2n,Z,1u,q){c(!q)q="";b.2n=2n;b.Z=Z;b.1u=1u;b.3e="&7N=1&3e=d&1J=d"+q;b.16="\\7O 7P 7Q 7R b 3V 5E 2W 5G.";b.3m="5y 5z 3W 7S 1L 7U b 3V.";b.7V=g(43,1j,q){f 2u;f 2f=\'\';f N=\'\';f 3Q=\'\';c(b.2n>0&&b.2n==43){2v(b.3m)}m{c(!1j){1j="7X 3V"}5N=5C(1j+" 5E 2W 5G 83 11 86."+b.16+"\\87 8b 5M 5K. 8e 8f 5M 42.");c(5N){3Q=H 1C(b.Z);3o=3Q.1t(\'?\');2u=H 8n(\'?\'+3o[1]);E(o 1l 2u){2f=2f+\'&\'+o+\'=\'+2u[o]}2f=b.1u+"="+43+2f+b.3e+q;t.5U.5V=3o[0]+"?"+2f}}};b.5X=g(16){b.16="\\n"+16};b.5Y=g(16){b.3m=16};b.60=g(4p){b.3e="&"+4p}}g 62(J,5I,x,y){f 41=t.P(J).3G;f 35;c(41==x){3X=y;35=\'63.5H\'}m c(41==y){3X=x;35=\'68.5H\'}t.P(J).3G=3X;t.P(5I).6f=(\'/6g/6i/\'+35);t.P(J).3R()}g 4n(2C,32){b.3P=2C;b.2U=0;c(32){b.20=T}m{b.20=W}b.3P.39=b.20;b.4t=g(L){c(L){b.2U++}m{b.2U--}c(b.2U>0){b.20=W}m{b.20=T}b.3P.39=b.20}}g 6n(2C,L,32){f 2X;2X=H 4n(2C,32);2X.4t(L)}g 2R(u){w t.6t(u)}g 4y(u){D=2R(u);c(D){E(i=0;i<D.r;i++){c(D[i].18){w D[i]}}}w 4v}g 6u(u){s=4y(u);c(s){w s.h}w\'\'}g 6v(u){D=2R(u);c(D){E(i=0;i<D.r;i++){c(D[i].18){w T}}}w W}g 4C(u){D=2R(u);18=H 1o();c(D){E(i=0;i<D.r;i++){c(D[i].18){18.56(D[i])}}}w 18}g 6x(u){D=4C(u);1E=H 1o();c(D){E(i=0;i<D.r;i++){1E.56(D[i].h)}}w 1E}g 4F(1g){s=t.P(1g);1H=H 1o();c(s){E(i=0;i<s.A.r;i++){c(s.A[i].1H){1H[1H.r]=s.A[i]}}}w 1H}g 6z(1g){A=4F(1g);1E=H 1o();E(i=0;i<A.r;i++){1E[1E.r]=A[i].h}w 1E}g 4N(1k,1h){w 1k.1d<1h.1d?-1:1k.1d>1h.1d?1:0}g 6B(1k,1h){w 1k.h<1h.h?-1:1k.h>1h.h?1:0}g 6D(1k,1h){f 28=2b(1k.1d);f 23=2b(1h.1d);w 28<23?-1:28>23?1:0}g 6E(1k,1h){f 28=2b(1k.h);f 23=2b(1h.h);w 28<23?-1:28>23?1:0}g 6I(O,2I){c(!2I){2I=4N}f A=H 1o(O.A.r);E(f i=0;i<A.r;i++){A[i]=H 4x(O.A[i].1d,O.A[i].h,O.A[i].6L,O.A[i].1H)}A.6P(2I);O.A.r=0;E(f i=0;i<A.r;i++){O.A[i]=A[i]}}g 6T(M,2P,2w,6W,50){f 2O=21(M.6Z)-5;f 3v=M.h.r;c(3v>2w){M.h=M.h.S(0,2w)}m{c(2O<0)2O=0;f 1N=21(1F-((2w-3v)*1F)/2w);t.P(2P).1i.73=21((2O*1N)/1F)+"74";c(50){t.P(2P).37="77: "+1N+"%"}53(t.P(2P),1N,"7b-5Q")}}g 53(1u,1N,54){1u.1i[54]="7d(80%,"+(1F-1N)+"%,"+(1F-1N)+"%)"}g 7i(5a,2s,3I,5r){f 2t=(7j.7l=="7m")?3I.7p:3I.7q;7r=2s.h;5i=2s.u;5d=5a.u;5l=21(2s.h.r);5b=21(t.27.r);E(p=0;p<5b;p++){c(t.27[p].u==5d){5g=21(t.27[p].D.r);E(i=0;i<5g;i++){c(t.27[p].D[i].u==5i){E(k=0;k<5l;k++){j=i+1;c((2t!=8)&&(2t!=46)){5x=t.27[p].D[j].u;c((2s.h.r==5r)||(2t==9)||(2t==13)){t.27[p][5x].3R();3S}}}}}}}}g 7W(1g,2J){f 5D=t.P(1g);f 22=t.P(\'5A\');f 4h=4b.4c.4e.7Y(5D);2J=2J+\'<2K 1i="81-40: 82; 85-40: 89; 8d-40: 8g 8i #8l; 5Q: #8r;">5S 1L 5W</2K>\';22.37=2J;22.1i.4j="5Z";4b.4c.4e.67(22,4h)}g 6b(){f 22=t.P(\'5A\');22.1i.4j="6m"}g 6o(4s,4o,3U){f 2V=t.P(4o);f 1G=t.P(4s);f 4u=W;c(1G.2k>=0){4u=1G.A[1G.2k]}f i;1G.r=0;E(i=0;i<2V.A.r;i++){f 2i=H 4x();2i.h=2V.A[i].h;2i.1d=2V.A[i].1d;1G[i]=2i;c(3U){c(2i.h==3U){1G.2k=i}}}}g 6G(4K,4L){f 4P=t.P(4K);f 4O=t.P(4L);4O.h=4P.h}g 6U(M){E(i=0;i<M.r;i++){M[i].18=T}}g 70(M){E(i=0;i<M.r;i++){M[i].18=W}}g 7a(2S,1O){b.2S=2S;b.2z=0;b.1g=0;c(1O){b.1O=1O}m{b.1O=-1};b.5e=g(s){c(s.7c==\'7f\'&&s.1b==\'3Y\'){s.u=\'7g\'+b.1g++;s.1m=\'7k\';s.7n=\'7\';s.29=b;s.7s=g(){f 36=t.1v(\'1W\');36.1b=\'3Y\';b.1s.7u(36,b);b.29.5e(36);b.29.5J(b);b.1i.7C=\'7E\';b.1i.7I=\'-7K\'};c(b.1O!=-1&&b.2z>=b.1O){s.39=T};b.2z++;b.4d=s}m{2v(\'7Z: 3W a 3Y 1W s\')}};b.5J=g(s){f 1B=t.1v(\'2K\');f 26=t.1v(\'1W\');26.1b=\'2F\';26.1m=\'3s\';26.h=\'8h\';1B.s=s;1B.1m=\'8m\';26.3w=g(){b.1s.s.1s.5T(b.1s.s);b.1s.1s.5T(b.1s);b.1s.s.29.2z--;b.1s.s.29.4d.39=W;w W};f 2d=t.1v(\'1W\');2d.1b=\'2F\';2d.1m=\'3s\';2d.h=\'6p\';2d.3w=g(){t.P(\'3N\'+s.u).1m=\'44-3n-3E-6q\'};1B.37=s.h;f 2m=\'\';c(6w==\'6A\'){2m=s.h.1t("\\\\")}m{2m=s.h.1t(\'/\')}f u=2m[2m.r-1];f 1I=t.1v(\'2K\');1I.1g=\'3N\'+s.u;1I.1m=\'44-3n-3E-4Q\';f 1D=t.1v(\'1W\');1D.u=\'3k\'+s.u;1D.1g=\'3k\'+s.u;1D.1b=\'1d\';1D.h=u;1D.5t=g(){t.P(\'3k\'+s.u).O()};1D.1m=\'5L\';f 1P=t.1v(\'55\');1P.u=\'5w\'+s.u;1P.3G=\'3\';1P.37=\'[7A a 7G]\';1P.5t=g(){t.P(\'5w\'+s.u).O()};1P.1m=\'5L\';f 1y=t.1v(\'1W\');1y.u=\'4k\'+s.u;1y.1g=\'4k\'+s.u;1y.1b=\'2F\';1y.h=\'6J\';1y.1m=\'3s\';1y.3w=g(){t.P(\'3N\'+s.u).1m=\'44-3n-3E-4Q\'};1I.1Q(1D);1I.1Q(1P);1I.1Q(1y);1B.1Q(2d);1B.1Q(26);1B.1Q(1I);b.2S.1Q(1B)}};',62,529,'|||||||||||this|if|||var|function|value||||tmp|else|||||length|element|document|name|fldchktyp|return|||tmpobj|options|form||elements|for|isNaN|toString|new|tmary|elmnt|zip|val|field|page|select|getElementById|mssg2||substring|true|tmary2|dt|false|hform|fldarynm|action||the|||digit|clrbg|mssg|typ|checked|Please|nam|type|indexOf|text|email|frm|id|option2|style|nm|option1|in|className|trim_whitespace|Array|check|charAt|submit_form|parentNode|split|obj|createElement|chkfldary|newphn|new_meta_hide|pg|rExp|new_row|String|new_meta_name|values|100|tbox|selected|new_meta|actn|getFullYear|to|paging|percentage|max|new_meta_capt|appendChild|nfrm|curl|myString|alt|tmpobj2|input|ntvld|phn|phnext|disable|parseInt|elc|value2||enter|new_row_button|forms|value1|multi_selector|select_arr|parseFloat|mny|new_meta_button|get_paging|qry|maxpage|num|no|bgerr|selectedIndex|bdzip|paths|sky|chkmax|fg|bg|phnprt|thisElement|kCode|search|alert|maxlimit|myactn|onsubmit|count|date|submit|fld|newString|AM|button|Date|chkbx|compareFunction|txt|div|gi|replace|tdt|fieldWidth|counter|chktmp|getFormGroup|list_target|check_form|cnt|fbox|be|disfld|cancel_changes|while||reset|dfault|alrt2|saved|img|new_element|innerHTML|chkbxlst|disabled|bgBad|set_check_true|debug|process_form|process|fFilter|alrt|mylon|aryval|getDate|upmeta_name_|disable_paging|mssg_sky|info|urls|no_use|rdchk|zipprim|listbutton|frmtphn|one|charcnt|onclick|fnames|getMonth|ftmp|tm|flabels|chkmin|PM|upload|time|rows|valid|thisEvent|frmtmny|backgroundColor|inputValue|returnValue|upmeta_|eval|dfld|url|focus|break|cnfm|defaultid|record|not|rwnum|file|ftypes|top|rws|cancel|ky|meta|set_field_names||labels|set_field_types|back|finish|YAHOO|util|current_element|Dom|types|myStr|pos|try|display|upmeta_hide_|picklist|catch|disableObj|blistid|proc|str|sv|pid|check_field|hold|null|set_field_labels|Option|getRadio|fieldlabels|bgGood|bgfntGood|getCheck|multiple|substr|getSelect|radio|of|fldval|least|fromid|toid|zipscnd|compareText|elemt|elemf|closed|zipdash|phone|format_phone|form_button_action|names|ndate|1970|setFullYear|ndt|showtext|or|2000|setcolor|prop|textarea|append|checkbox|fieldnames||thisForm|frmLength|checktype|frmName|addElement|out|elemntLength|completely|txtName|ext|at|tLength|cancelurl|results|non|zero|numeric|MaxLngth|check_saved|onfocus|reset_form|getAttribute|upmeta_capt_|nxtElmnt|You|are|field_help_container|changes|confirm|el|will|filled|deleted|gif|imgid|addListRow|OK|listmetafield|press|cnfrm|hdnfrm|hidden|color|dbg|Click|removeChild|location|href|close|set_message|set_message_ipermission|block|set_process|set_check_false|smlTxt|expandup|The|is|missing|setXY|expanddn|have|save|hideFieldHelp|CANCEL|exit|without|src|Images|modified|buttons|getElementsByTagName|myfilter|picklistSelectAll|none|disableField|syncSelectList|Info|open|history|go|getElementsByName|getRadioValue|isChecked|browser_platform|getCheckValue|another|getSelectValue|Windows|compareValue|less|compareTextAsFloat|compareValueAsFloat|must|copyValues|characters|sortSelect|Hide|correct|defaultSelected|syntax|12345|does|sort|seem|use|correctly|textCounter|checkAll|fill|linecounter|ex|970|offsetWidth|uncheckAll|353|6227|width|px|equal|later|Limit|than|today|MultiSelector|background|tagName|rgb|toUpperCase|INPUT|file_|00|nextFocusWithMaxLength|navigator|file_input|appName|Netscape|size|number|which|keyCode|txtVal|onchange|white|insertBefore|make|sure|following|fields|______________________|Enter|scrub_data|position|frm2|absolute|formObj|Caption|clear_field|left|FFFFFFF|1000px|delrec|delObj|qrystr_delete|nAll|records|associated|with|allowed|post|delete|delete_record|showFieldHelp|This|getXY|Error||margin|4px|from|saving|padding|database|nTo|them|2px|made|continue|join|border|To|abort|1px|Remove|solid|frm0|frm1|cccccc|file_list_item|parseSearchString|ACDAB4|000000|set_debug|999999|get_debug|set_paging|set_colors|populate_field_checks|image'.split('|'),0,{}))
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[(function(e){return d[e]})];e=(function(){return'\\w+'});c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('a.8.J=G 6(){3.E=6(2){5(22 2==\'29\'){2=k.24(2)}7 2};3.H=6(2,f){4 u=s;4 N=k.25;2=3.E(2);5(f==\'v\'&&2.R){u=1;1q{u=2.R.1r(\'26.27.28\').v/Z}17(e){1q{u=2.R.1r(\'1c\').v/Z}17(e){}}}q 5(2.o[f]){u=2.o[f]}q 5(2.O&&2.O[f]){u=2.O[f]}q 5(N&&N.15){4 B=\'\';1s(i=0,1p=f.1u;i<1p;++i){5(f.V(i)==f.V(i).1v()){B=B+\'-\'+f.V(i).1h()}q{B=B+f.V(i)}}5(N.15(2,\'\').19(B)){u=N.15(2,\'\').19(B)}}7 u};3.1o=6(2,f,F){2=3.E(2);1w(f){1x\'v\':5(2.R){2.o.1y=\'1c(v=\'+F*Z+\')\';5(!2.O.1R){2.o.1B=1}}q{2.o.v=F;2.o[\'-1C-v\']=F;2.o[\'-1D-v\']=F}1M;1E:2.o[f]=F}};3.C=6(2){2=3.E(2);5(2.M===s||3.H(2,\'1H\')==\'1I\'){7 13}4 9=s;4 c=[];4 z;5(2.1d){z=2.1d();4 L=k.Q.L||k.I.L;4 K=k.Q.K||k.I.K;7[z.h+K,z.g+L]}q 5(k.1e){z=k.1e(2);c=[z.x,z.y]}q{c=[2.1f,2.12];9=2.1g;5(9!=2){1k(9){c[0]+=9.1f;c[1]+=9.12;9=9.1g}}4 Y=1N.1O.1h();5(Y.1j(\'1P\')!=-1||(Y.1j(\'1Q\')!=-1&&3.H(2,\'14\')==\'1T\')){c[1]-=k.I.12}}5(2.M){9=2.M}q{9=s}1k(9&&9.1m!=\'1V\'&&9.1m!=\'1X\'){c[0]-=9.K;c[1]-=9.L;5(9.M){9=9.M}q{9=s}}7 c};3.1Y=6(2){7 3.C(2)[0]};3.1Z=6(2){7 3.C(2)[1]};3.P=6(2,c,1a){2=3.E(2);4 U=a.8.J.C(2);5(U===13){7 13}5(3.H(2,\'14\')==\'21\'){3.1o(2,\'14\',\'23\')}4 A=[1n(a.8.J.H(2,\'h\'),10),1n(a.8.J.H(2,\'g\'),10)];5(16(A[0])){A[0]=0}5(16(A[1])){A[1]=0}5(c[0]!==s){2.o.h=c[0]-U[0]+A[0]+\'18\'}5(c[1]!==s){2.o.g=c[1]-U[1]+A[1]+\'18\'}4 X=3.C(2);5(!1a&&(X[0]!=c[0]||X[1]!=c[1])){3.P(2,c,1l)}7 1l};3.1z=6(2,x){7 3.P(2,[x,s])};3.1A=6(2,y){7 3.P(2,[s,y])};3.W=6(2){2=3.E(2);7 G a.8.j.W(2)};3.1F=6(){7(k.Q.11||k.I.11)};3.1G=6(){7(1J.1L||k.Q.1i||k.I.1i)}};a.8.j=6(t,r,b,l){3.g=t;3.m=r;3.n=b;3.h=l};a.8.j.D.1S=6(d){7(d.h>=3.h&&d.m<=3.m&&d.g>=3.g&&d.n<=3.n)};a.8.j.D.1U=6(){7((3.n-3.g)*(3.m-3.h))};a.8.j.D.1W=6(d){4 t=w.T(3.g,d.g);4 r=w.S(3.m,d.m);4 b=w.S(3.n,d.n);4 l=w.T(3.h,d.h);5(b>=t&&r>=l){7 G a.8.j(t,r,b,l)}q{7 s}};a.8.j.D.20=6(d){4 t=w.S(3.g,d.g);4 r=w.T(3.m,d.m);4 b=w.T(3.n,d.n);4 l=w.S(3.h,d.h);7 G a.8.j(t,r,b,l)};a.8.j.D.1t=6(){7("j {"+"  t: "+3.g+", r: "+3.m+", b: "+3.n+", l: "+3.h+"}")};a.8.j.W=6(2){4 p=a.8.J.C(2);4 t=p[1];4 r=p[0]+2.11;4 b=p[1]+2.1K;4 l=p[0];7 G a.8.j(t,r,b,l)};a.8.1b=6(x,y){3.x=x;3.y=y;3.g=y;3.m=x;3.n=y;3.h=x};a.8.1b.D=G a.8.j();',62,134,'||el|this|var|if|function|return|util|parent|YAHOO||pos|region||property|top|left||Region|document||right|bottom|style||else||null||value|opacity|Math|||box|delta|converted|getXY|prototype|get|val|new|getStyle|body|Dom|scrollLeft|scrollTop|parentNode|dv|currentStyle|setXY|documentElement|filters|min|max|pageXY|charAt|getRegion|newXY|ua|100||offsetWidth|offsetTop|false|position|getComputedStyle|isNaN|catch|px|getPropertyValue|noRetry|Point|alpha|getBoundingClientRect|getBoxObjectFor|offsetLeft|offsetParent|toLowerCase|clientHeight|indexOf|while|true|tagName|parseInt|setStyle|len|try|item|for|toString|length|toUpperCase|switch|case|filter|setX|setY|zoom|moz|khtml|default|getClientWidth|getClientHeight|display|none|self|offsetHeight|innerHeight|break|navigator|userAgent|opera|safari|hasLayout|contains|absolute|getArea|BODY|intersect|HTML|getX|getY|union|static|typeof|relative|getElementById|defaultView|DXImageTransform|Microsoft|Alpha|string'.split('|'),0,{}))
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[(function(e){return d[e]})];e=(function(){return'\\w+'});c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('3 13(){2.A="";2.a=k;2.r="";2.9="";2.l="";2.s=k;2.x=0;2.u=3(4){5(!4)4=0;5(2.v()>0)4=2.v();e 4};2.12=3(L){2.A=L;2.i()};2.16=3(M){2.a=M;2.i()};2.18=3(N,4){2.r=N;2.z()};2.19=3(){e 2.A};2.j=3(){m 8=2.r;5(!8){m 6=2.E();8=P Z(6.y)}e 8};2.Q=3(6){2.l=6};2.E=3(){e 2.l};2.S=3(B){2.9=B};2.i=3(f,T){m 4=2.u(4);5(2.p()){d=g.h(2.9+\'w\'+4);t=g.h(2.9+\'D\'+\'w\'+4)}n{d=g.h(2.9);t=g.h(2.9+\'D\')}5(2.a){q=V(d);5(q)d.W(2.a,q);n d.X(2.a);f=\'Y 10\'}n{d.I=\'\'}t.I=f};2.z=3(K){m 4=2.u(4);6=2.l;5(2.p())6=g.h(6+\'w\'+4);5(K)6.y=\'\';n 6.y=2.j()};2.15=3(f){2.a=k;2.z(H);2.i(f)};2.R=3(c){2.s=(c)?H:k};2.p=3(){e 2.s};2.11=3(4){2.x=4};2.v=3(){e 2.x};2.G=3(o,7){8=2.j();b=8.J(\'|\');5(b[1])7=O(\'14-17-B\',b[1],7);o.C(7)}}3 G(o,F,7){8=F.j();b=8.J(\'|\');5(b[1])7=O(\'U\',b[1],7);o.C(7)}',62,72,'||this|function|key|if|fld|url|imgkey|span_id|image_node|imgdata||img|return|mssg|document|getElementById|refresh_image|get_data|false|field|var|else|wobj|use_prefix|imgNode|data|useprefix|imgtxt|define_key|get_key|_|current_key|value|update_field|path|id|win_open|_action_label|get_data_field|iobj|open_image_browser|true|innerHTML|split|none|pt|node|dt|addQueryToUrl|new|set_data_field|set_use_prefix|set_span_id|tag|ialbum_id|first_child|replaceChild|appendChild|Replace|String|Image|set_key|set_path|imGen|images|remove_image|set_image_node|album|set_data|get_path'.split('|'),0,{}))
/* initialize window popup variables */
var win, win0, win1, win2, win3, winimgv, winsimgv;

var img0, img1, img2, img3;

var list = new Array;



function addEvent(obj, evType, fn){ 
  if (obj.addEventListener){ 
    obj.addEventListener(evType, fn, true); 
    return true; 
  } else if (obj.attachEvent){ 
    var r = obj.attachEvent("on"+evType, fn); 
    return r; 
  } else { 
    return false; 
  } 
 }
 
 function addLoadEvent(func) {

  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}


/*function _body_onload()
{

}

function _body_onunload()
{
	
}

*/

/*
var da = (document.all) ? 1 : 0;
var pr = (window.print) ? 1 : 0;
var mac = (navigator.userAgent.indexOf("Mac") != -1);

function printPage(frame, arg) {
  if (frame == window) {
    printThis();
  } else {
    link = arg; 
    printFrame(frame);
  }
  return false;
}

function printThis() {
  if (pr) { 
    window.print();
  } else if (da && !mac) { 
    vbPrintPage();
  } else { 
    alert("Sorry, your browser doesn't support this feature.");
  }
}

function printFrame(frame) {
  if (pr && da) { 
    frame.focus();
    window.print();
    if (link) { link.focus(); }
  } else if (pr) {
    frame.print();
  } else if (da && !mac) { 
    frame.focus();
    setTimeout("vbPrintPage(); link.focus();", 100);
  } else { 
    alert("Sorry, your browser doesn't support this feature.");
  }
}

if (da && !pr && !mac) with (document) {
  writeln('<OBJECT ID="WB" WIDTH="0" HEIGHT="0" CLASSID="clsid:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>');
  writeln('<' + 'SCRIPT LANGUAGE="VBScript">');
  writeln('Sub window_onunload');
  writeln('  On Error Resume Next');
  writeln('  Set WB = nothing');
  writeln('End Sub');
  writeln('Sub vbPrintPage');
  writeln('  OLECMDID_PRINT = 6');
  writeln('  OLECMDEXECOPT_DONTPROMPTUSER = 2');
  writeln('  OLECMDEXECOPT_PROMPTUSER = 1');
  writeln('  On Error Resume Next');
  writeln('  WB.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER');
  writeln('End Sub');
  writeln('<' + '/SCRIPT>');
}
*/

/* Window Nav Object -- Used to open new windows */
function navObj()
{
    this.win = "";
    this.url = "";
    this.nm = "winOne";
    this.prop = "";
    this.wdth = "";
    this.hght = "";
    this.cordx = "100";
    this.cordy = "100";
    this.trgt = "_self";

    this.location = "yes";
    this.menubar = "yes";
    this.scrollbars= "yes";
    this.resizable = "yes";
    this.status = "yes";
    this.toolbar = "yes";
	this.modal = "no";
	this.personalbar = "no";

    this.set_url = function(url)
    {
        this.url = url;
    };

    this.get_url = function()
    {
        return this.url;
    };

    this.set_name = function(nm)
    {
        this.nm = nm;
    };

    this.get_name = function()
    {
        return this.nm;
    };

    this.set_location = function(loc)
    {
        this.location = loc;
    };

    this.get_location = function()
    {
        return this.location;
    };

    this.set_menubar = function(mnu)
    {
        this.menubar = mnu;
    };

    this.get_menubar = function()
    {
        return this.menubar;
    };

	this.set_personalbar = function(mnu)
    {
        this.personalbar = mnu;
    };

    this.get_personalbar = function()
    {
        return this.personalbar;
    };

	this.set_modal = function(mnu)
    {
        this.modal = mnu;
    };
    this.get_modal = function()
    {
        return this.modal;
    };

    this.set_scrollbars = function(brs)
    {
        this.scrollbars = brs;
    };

    this.get_scrollbars = function()
    {
        return this.scrollbars;
    };

    this.set_resizable = function(rsz)
    {
        this.resizable = rsz;
    };

    this.get_resizable = function()
    {
        return this.resizable;
    };

    this.set_status = function(sts)
    {
        this.status = sts;
    };

    this.get_status = function()
    {
        return this.status;
    };

    this.set_toolbar = function(br)
    {
        this.toolbar = br;
    };

    this.get_toolbar = function()
    {
        return this.toolbar;
    };

	this.set_width_height = function(w, h)
	{
		this.wdth = w;
		this.hght = h;
	};

	this.get_width = function()
	{
		return this.wdth;
	};

	this.get_height = function()
	{
		return this.hght;
	};

	this.set_coordinate = function(x, y)
	{
		this.cordx = x;
		this.cordy = y;
	};

	this.get_cordx = function()
	{
		return this.cordx;
	};

	this.get_cordy = function()
	{
		return this.cordy;
	};

    this.set_predefined_properties = function(prop)
    {
        if (prop == 0) {
            this.set_location('no');
            this.set_menubar('no');
            this.set_scrollbars('no');
            this.set_resizable('no');
            this.set_status('no');
            this.set_toolbar('no');
        } else if (prop == 1) {
            this.set_location('no');
            /* following item changed to remove toolbar by km 4/7/05 */
			this.set_menubar('no');
            this.set_scrollbars('no');
            this.set_resizable('yes');
            this.set_status('no');
            this.set_toolbar('no');
			this.set_modal('yes');
        } else if (prop == 2) {
            this.set_location('no');
            this.set_menubar('no');
            this.set_scrollbars('yes');
            this.set_resizable('yes');
            this.set_status('no');
            this.set_toolbar('no');
			this.set_modal('yes');
        } else if (prop == 3) {
            this.set_location('no');
            this.set_menubar('yes');
            this.set_scrollbars('yes');
            this.set_resizable('yes');
            this.set_status('no');
            this.set_toolbar('no');
        } else if (prop == 4) {
            this.set_location('no');
            this.set_menubar('yes');
            this.set_scrollbars('yes');
            this.set_resizable('yes');
            this.set_status('no');
            this.set_toolbar('yes');
        } else {
            this.set_location('yes');
            this.set_menubar('yes');
            this.set_scrollbars('yes');
            this.set_resizable('yes');
            this.set_status('yes');
            this.set_toolbar('yes');
        }
    };

    this.get_properties = function()
    {
        var nProp;
        nProp = 'location=' + this.get_location() + ',menubar=' + this.get_menubar() + ',scrollbars=' + this.get_scrollbars() + ',resizable=' + this.get_resizable() + ',status=' + this.get_status() + ',toolbar=' + this.get_toolbar() + ',personalbar=' + this.get_personalbar();
        if (this.get_width() && this.get_height()) {
            nProp = nProp + ',width=' + this.get_width() + ',height=' + this.get_height();
        }
		if(this.get_modal())
		{
			nProp = nProp + ',modal=' + this.get_modal();
		}
        return nProp;
    };

    this.win_open = function(url)
    {
		var oldurl = this.get_url();
		var newurl = false;
		if (url) {
			this.set_url(url);
			newurl = true;
		}
        if (this.win && this.win.open && !this.win.closed) {
            this.win.focus();
			if (oldurl != this.get_url())
			{
				this.win.location.href = this.get_url();
			}
        } else {
            this.win = window.open(this.get_url(),this.get_name(),this.get_properties());
			this.win.focus();
			this.win.moveTo(this.get_cordx(),this.get_cordy());
        }

    };

   	this.win_close = function() {
        if (this.win && this.win.open && !this.win.closed) {
            this.win.close();
        }
    };
}


function placebo() {}



function set_innerHTML(item,txt)
{
	document.getElementById(item).innerHTML = txt;
}

function goToUrl(url, target)
{
	if (target == 'blank')
	{
		window.open(url,'newwindow');
	} else if (target == 'top')
	{
		top.location.href = url;
	} else if (target == 'parent')
	{
		parent.location.href = url;
	} else if (target == 'javascript')
	{
		eval(url);
	} else
	{
		document.location.href = url;
	}
}

function changeClass(id, clss)
{
	var obj = document.getElementById(id);
	obj.className = clss;
}

function toggle_class(elem, clss1, clss2)
{
	var mclass = elem.className;
	elem.className = (mclass == clss1) ? clss2:clss1;
}


function getTargetElement(evt) {
    var elem;
    if (evt.target) {
        elem = (evt.target.nodeType == 3) ? evt.target.parentNode : evt.target
    } else {
        elem = evt.srcElement
    }
    return elem

}

function toggle_element(elem, mode, val, over)
{
    if (!mode)
	    mode = 'display';

	if (typeof val != undefined)
	{
	    valt = (val) ? true : false;
	}

    setting = document.getElementById(elem);
	if (mode == 'display')
	{
		if(over)
		{
			if (valt)
			{
				setting.style.display = 'block';
				return true;
			} else
			{
				setting.style.display = 'none';
				return false;
			}
		} else
		{
			if (valt || setting.style.display == 'none')
			{
				setting.style.display = 'block';
				return true;
			} else
			{
				setting.style.display = 'none';
				return false;
			}
		}
	} else if (mode == 'collapse')
	{
        if (valt || setting.style.visibility == 'collapse')
	    {
            setting.style.visibility = 'visible';
			return true;
	    } else
	    {
	        setting.style.visibility = 'collapse';
			return false;
	    }
	} else if (mode == 'hidden')
	{
		if(over)
		{
			if (valt)
			{
				setting.style.visibility = 'visible';
				return true;
			} else
			{
				setting.style.visibility = 'hidden';
				return false;
			}
		} else
		{
			if (valt || setting.style.visibility == 'hidden')
			{
				setting.style.visibility = 'visible';
				return true;
			} else
			{
				setting.style.visibility = 'hidden';
				return false;
			}
		}
	} else if (mode == 'disabled')
	{
        if (valt || setting.style.disabled == true)
	    {
            setting.disabled = false;
			return true;
	    } else
	    {
	        setting.disabled = true;
			return false;
	    }
	}
}

function getFormNode(node)
{
	var stop = false;
	var pNode;
	do
	{
		pNode = node.parentNode;
		if(pNode.nodeType == 1)
		{
			if(pNode.tagName == 'FORM')
				return pNode;
			else if (pNode.tagName == 'BODY')
				stop = true;
			else
				node = pNode;
		} else
		{
			node = pNode;
		}
	} while (stop == false);
	return false;
}

function parseSearchString(url)
{
	/*
	This line is the most complex as it is does several things in one hit
	substring(1) - get the querystring portion after the question mark
	unescape - return the data to 'readable' text
	replace(/\+/g," ") - change any "+" symbols with a " " (space)
	split('&') - take the data and create an array using any ampersands as delimiters
	e.g., this  [url]http://www.mypage.com/pageone.htm?one=six&two=hi%20there&three=five+six[/url]
	would come out as:
		["one=six","two=hi there","three=five six"] ( i think that's right:))
	*/
	var pairs;
	if (!url){
		pairs=unescape(location.search.substring(1).replace(/\+/g," ")).split('&');
	} else
	{
		url = new String(url);
		aurls = url.split('?');
		url = new String('?' + aurls[1]);
		pairs=unescape(url.substring(1).replace(/\+/g," ")).split('&');
	}
	
	for (var i=0;i<pairs.length;i++){
		
		var pair = pairs[i].split('=');
		
		this[pair[0]]=pair[1];
	}
}

function addQueryToUrl(key,val,url)
{
	var nsearch = new Array;
	var nxsearch = new Array;
	
	if(!url)
	{
	
		var asearch = new parseSearchString();
		url = location.href;
		aurls = url.split('?');
		alocation = aurls[0];
		for(o in asearch)
		{
			nsearch[o] = asearch[o];
		}
		nsearch[key] = val;
		var cnt = 0;
		for(o in nsearch)
		{
			nxsearch[cnt] = o + '=' + nsearch[o];
			cnt++;
		}
		nsearch = nxsearch.join("&");
		if(nsearch.length > 0)
			url = alocation + '?' + nsearch;
		else
			url = alocation;
	} else
	{
		var asearch = new parseSearchString(url);
		url = new String(url);
		aurls = url.split('?');
		alocation = aurls[0];
		for(o in asearch)
		{
			nsearch[o] = asearch[o];
		}

		nsearch[key] = val;
		var cnt = 0;
		for(o in nsearch)
		{
			nxsearch[cnt] = o + '=' + nsearch[o];
			cnt++;
		}
		nsearch = nxsearch.join("&");
		if(nsearch.length > 0)
			url = alocation + '?' + nsearch;
		else
			url = alocation;
	}
	return url;
}

function image_button_submit(node,val,fldid,fld_pst,msg)
{
	/* fix for ie browsers -- ie 6+ does not send the value of an image type submit button with the post. To fix this
	 * add a hidden input field in the form and call this function to set the value before posting. The name of the hidden field should be
	 * 'submit' */

	var formNode = getFormNode(node);

	if(!fldid)
		fldid = "do_action";

	if(fld_pst)
		fldid = fldid + '_' + fld_pst;

	var fld = document.getElementById(fldid);
	fld.value = val;

	formNode.submit();
}


/* The problem comes from IE ignoring the checked property and only using the checked attribute when you manipulate the DOM. And setting the checked property either programmatically or by physically clicking the checkbox does not set the attribute.
  Here is a function that sets the attribute when the checked property changes, thus works around the bug. You have to attach this function to all the checkboxes onpropertychange event */
function fixCheckedBug()
{
	if(event.propertyName != "checked")
			return;
	var el = event.srcElement;
	if(typeof el.attributes.getNamedItem != "undefined")
			el.attributes["checked"].nodeValue = el.checked;
	else
			el.attributes["checked"] = el.checked;
}

/* this function is needed to work around
 * a bug in IE related to element attributes */
function hasClass(obj) {
	var result = false;
	if (obj.getAttributeNode("class") != null) {
		result = obj.getAttributeNode("class").value;
	}
	return result;
}


function global_init()
{
	list_init();
	homepage_init();
}

function global_dispose()
{
	
}

function list_init()
{
	var lists;
	lists = document.getElementsByTagName('table');
	for(i = 0; i < lists.length; i++)
	{
		var el = lists[i];
		var elclass = el.className;

		if(elclass == 'orderby')
		{
			list[i] = new listObj(el,i);
			list[i].init();
		}
	}
}

function homepage_init()
{
	var theNode = document.getElementById('make_homepage');
	if(theNode)
	{
		var mssg;
		if (document.all)
		{
			url = location.href;
			aurls = url.split('?');
			alocation = aurls[0];
			mssg = '<img src="' + glbl_src_homebutton + '" border="0" /><a href="javascript:history.go(0);" onclick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'' + alocation + glbl_url_this_page + '\');">';
			mssg = mssg + 'Click Here to make this your homepage</a>';
		}

		else if (document.getElementById){
			mssg = '<img src="' + glbl_src_homebutton + '" border="0" /><a href="' + glbl_url_this_page + '">Drag this link onto your Home button to make this your home page.</a>';
		}

		
		else if (document.layers){
			
		}

		
		else {
			
		}

		theNode.innerHTML = mssg;
	}
}

function listObj(obj,objIndex)
{
	this.prevNode;
	this.classnm;
	this.id;
	this.prop_order = false;
	this.prop_cntperpg = 0;
	this.object = obj;
	this.metadata;
	this.object_index = objIndex;
	this.formNode;


	this.get_class = function(cl)
	{
		return this.object.className;
	};

	this.get_id = function(id)
	{
		return this.object.id;
	};

	this.set_order = function(bool)
	{
		this.prop_order = bool;
	};

	this.init = function()
	{
		var tbodies = this.object.getElementsByTagName("tbody");
		var thead = this.object.getElementsByTagName("thead");
		var tfoot = this.object.getElementsByTagName("tfoot");

		this.metadata_thead_length = thead.length;
		this.metadata_tbody_length = tbodies.length;
		this.metadata_tfoot_length = tfoot.length;

		this.formNode = this.inForm();
		this.rebuild();
	};

	
	/* find the parent form node if present. Stop at body */
	this.inForm = function()
	{
		var node = this.object;
		var stop = false;
		var pNode;
		do
		{
			pNode = node.parentNode;
			if(pNode.nodeType == 1)
			{
				if(pNode.tagName == 'FORM')
					return pNode;
				else if (pNode.tagName == 'BODY')
					stop = true;
				else
					node = pNode;
			} else
			{
				node = pNode;
			}
		} while (stop == false);
		return false;
	};

	/* move rows up and down */
	this.moveUp = function(node)
	{
		var newNode = node.cloneNode("true");
		newNode.setAttribute("position", (newNode.getAttribute("position") - 1));

		var prevRow = node_before(node);
		var prevRowNode = prevRow.cloneNode("true");
		prevRowNode.setAttribute("position", (parseInt(prevRowNode.getAttribute("position")) + 1.0));
		var tableNode = node.parentNode;

		var oddColor = newNode.style.backgroundColor;
		var evenColor = prevRowNode.style.backgroundColor;

		var reattachee = tableNode.replaceChild( newNode, prevRow);
		var reattachee = tableNode.replaceChild(prevRowNode, node);
		this.rebuild(tableNode);

		newNode.style.backgroundColor = evenColor;
		prevRowNode.style.backgroundColor = oddColor;
	};

	this.moveDown = function(node)
	{
		var newNode = node.cloneNode("true");
		newNode.setAttribute("position", (parseInt(newNode.getAttribute("position")) + 1.0));

		var nextRow = node_after(node);

		var nextRowNode = nextRow.cloneNode("true");
		nextRowNode.setAttribute("position", (nextRowNode.getAttribute("position") - 1));
		var tableNode = node.parentNode;

		var oddColor = newNode.style.backgroundColor;
		var evenColor = nextRowNode.style.backgroundColor;

		var reattachee = tableNode.replaceChild( newNode, nextRow);
		var reattachee = tableNode.replaceChild(nextRowNode, node);
		this.rebuild(tableNode);

		newNode.style.backgroundColor = evenColor;
		nextRowNode.style.backgroundColor = oddColor;
	};

	this.rebuild = function()
	{
		var tableNode = this.object;


		/* set display order */
		var lengthOffset = this.metadata_tfoot_length + this.metadata_thead_length;
		if (!lengthOffset)
			lengthOffset = 0;
		var count =0;
		var movedown = '<div class="common_button"><span onclick="list[' + this.object_index + '].moveDown(this.parentNode.parentNode.parentNode);"><img src="' + glbl_src_downbutton + '" width="16" height="16" /></span></div>';
		var moveup = '<div class="common_button"><span onclick="list[' + this.object_index + '].moveUp(this.parentNode.parentNode.parentNode)"><img src="' + glbl_src_upbutton + '" width="16" height="16" /></span></div>';
		var thenode;
		var prevbutton;
		var upbutton;
		var downbutton;
		var tasks = tableNode.getElementsByTagName("TR");
		var numtasks = tasks.length - lengthOffset;

		var stopMax = 2;
		for(var i=0; i<tasks.length;i++)
		{
			thenode = tasks.item(i);
			stop = 0;
			
			var navNode = last_child(thenode);
			do
			{
				var attr = navNode.getAttribute("inet6_content");
				if(attr == 'order_upbutton')
				{
					upbutton = navNode;
					this.prop_order = true;
					stop++
				} else if(attr == 'order_downbutton')
				{
					downbutton = navNode;
					this.prop_order = true;
					stop++;
				}
				navNode = node_before(navNode);
			} while (stop < stopMax && navNode)

			if(thenode.getAttribute("position") && downbutton && upbutton)
			{
				count++;
				if(count == 1) {
					upbutton.innerHTML="";
				} else {
					upbutton.innerHTML = moveup;
				}
				if(count  == numtasks) {
					downbutton.innerHTML="";
				} else {
					downbutton.innerHTML = movedown;
				}
			}
		}
		if (this.prop_order == true)
		{
			this.updateMasterList(tableNode,lengthOffset);
		}
	};

	this.updateMasterList = function(tableNode,lengthOffset)
	{
		var taskidlist= new Array(1);
		var tasks = tableNode.getElementsByTagName("TR");
		var count = 0;
		for(var i=0; i<tasks.length;i++)
		{
			thenode = tasks.item(i);
			if(thenode.getAttribute("taskid"))
			{
				taskidlist[count] =  thenode.getAttribute("taskid");
				count++;
			}
		}
		var tmpdoc = document.getElementById(tableNode.getAttribute("id") + "_master_display_order");

		if(lengthOffset)
			document.getElementById(tableNode.getAttribute("id") + "_master_display_order").value = taskidlist.join(",");
		else
			document.getElementById(tableNode.parentNode.getAttribute("id") + "_master_display_order").value = taskidlist.join(",");
	};
}


   function inArray(key, arr)
   {
   		for (var i=0; i < arr.length; i++)
		{
			if (key == arr[i])
				return true;
		}
		return false;
   }

	function buttonEffect( buttonName, imgUrl )
	{
		if (!imgUrl)
			return;

  		buttonNameReset = new Image();
  		buttonNameReset.src = imgUrl;
  		document[buttonName].src = buttonNameReset.src;
	}


	function pagingNextPage(pg, formNode)
	{
		
		if(formNode)
		{
			
			var frmobj = formNode.getAttribute('inet6-form-obj');
			var frmnm = formNode.getAttribute('name');
			eval('init_' + frmnm + '();' + frmobj + ".submit('page-next','Loading Next Page')");
		} else
		{
			document.location.href = addQueryToUrl('record-paging-page',pg,addQueryToUrl('do-action','page-next'));
		}
	};

	function pagingPrevPage(pg, formNode)
	{
		if(formNode)
		{
			var frmobj = formNode.getAttribute('inet6-form-obj');
			var frmnm = formNode.getAttribute('name');
			eval('init_' + frmnm + '();' + frmobj + ".submit('page-previous','Loading Previous Page')");
		} else
		{
			document.location.href = addQueryToUrl('record-paging-page',pg,addQueryToUrl('do-action','page-previous'));
		}
	};



eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[(function(e){return d[e]})];e=(function(){return'\\w+'});c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('7 p(a){5!(/[^\\t\\n\\r ]/.y(a.4))}7 d(a){5(a.o==8)||((a.o==3)&&p(a))}7 x(6){e((6=6.s)){9(!d(6))5 6}5 f}7 A(6){e((6=6.j)){9(!d(6))5 6}5 f}7 C(b){c 2=b.D;e(2){9(!d(2))5 2;2=2.s}5 f}7 q(b){c 2=b.F;e(2){9(!d(2))5 2;2=2.j}5 f}7 v(u){c 4=u.4;4=4.w(/[\\t\\n\\r ]+/g," ");9(4.l(0)==" ")4=4.m(1,4.h);9(4.l(4.h-1)==" ")4=4.m(0,4.h-1);5 4}7 z(b){c i=B E();c 2=b.q;c k=0;e(2){9(!d(2)){i[k]=2;k++}2=2.j}9(i.h>0)5 i;G 5 f}',43,43,'||res||data|return|sib|function||if|nod|par|var|is_ignorable|while|null||length|children|nextSibling|cnt|charAt|substring||nodeType|is_all_ws|first_child||previousSibling||txt|data_of|replace|node_before|test|child_nodes|node_after|new|last_child|lastChild|Array|firstChild|else'.split('|'),0,{}))
function updatePedigree(ar)
{
	var myRE = new RegExp("xajax_getPedigreeInfo\\(.*\\)", "im");

	var cnt = 0;

	for(i = 0; i < ar.length; i++)
	{
		var elem = document.getElementById("ped" +ar[i]['pos']);

		if(cnt <= 0 && !ar[i]['name']) {
			elem.innerHTML = 'Add Pedigree';
		} else {
			elem.innerHTML = ar[i]['name'];
		}
		elem.style.backgroundColor = '#FFFFFF';

		var myString = new String(elem.onclick);
 		var results = myString.match(myRE);
 		var newString = new String(results[0]);
		var myArray = newString.split(",");
		myArray[1] = ar[i]['id'];
		if(ar[i]['childid'] > 0) {
			myArray[2] = ar[i]['childid'];
		}

		var cmd = myArray.join(',');

		elem.setAttribute('onclick',cmd);
		cnt++;
	}
	document.getElementById('set_pedigree_block').style.visibility = 'hidden';
	document.getElementById('setpedigree').style.visibility = 'hidden';
	document.getElementById('remove_pedigree_block').style.display = 'none';
	document.getElementById('modify_pedigree_link').style.visibility = 'hidden';

}

function modifyPedigree()
{
	document.getElementById('modify_pedigree_block').style.visibility = 'visible';
	document.getElementById('setpedigree').style.visibility = 'hidden';
	document.getElementById('modify_pedigree_link').style.visibility = 'hidden';
}

function hidePedigreeForm()
{
	document.getElementById('modify_pedigree_block').style.visibility = 'hidden';
}

function removePedigree()
{


}