<!--
var img_mem = new Array ();

function ch_im(nm,st,ln) {
  if (typeof(document.images[nm])=='object') {
    imag=document.images[nm].src;
    document.images[nm].src=imag.slice(0,imag.length-5)+st+'.gif';
  }
  else {
    imag=document.layers[ln].document.images[nm].src;
    document.layers[ln].document.images[nm].src=imag.slice(0,imag.length-5)+st+'.gif';
  }
}

function pre_auto(str,state) {
  stateArr = str.split(',');
  len=img_mem.length;
  for (i in stateArr) {
     g=len+Number(i);
	 img_mem[g] = new Image ();
     img_mem[g].src = path + stateArr[i] + state + ".gif";
  }
}

function img_resize(wm, hm, nm) {
  w = document.images[nm].width;
  h = document.images[nm].height;

  if ((w==0)||(h==0)) {
   setTimeout("img_resize("+wm+", "+hm+", '"+nm+"')", 100);
  } else {
  
  
  kw = w / wm;
  kh = h / hm;
  k = (kw>kh)?kw:kh;
  if (k>1) {
    document.images[nm].width = w/k;
    document.images[nm].height = h/k;
  }
  if ( h/k < hm ) document.images[nm].vspace = ( hm -(h/k)  ) / 2;
 }
}

function checkKey () {
  if (window.event.keyCode == 13)  { 
    if (document.main) {
      document.main.submit() 
    }
  }
}

//-->

