function findTargets() {
  var tds=document.getElementsByTagName('td');
  try {
    for(var i=0;i<tds.length;i++)
      tds[i].focus();
  } catch(e) {
  }
}

function startResize(obj) {
  if(obj.allowResize && obj.target){
    obj.oldX=event.clientX;
    obj.oldW=obj.target.width;
    obj.isResizing=true;
    document.getElementById('div1').style.width='100%';
    document.getElementById('div1').style.height='100%';
    obj.hnd=0;
  }
}

function resize(obj) {
  if(obj.isResizing){
    newW=obj.oldW*1+1*(event.clientX-obj.oldX);
    clearTimeout(obj.hnd);
    if(newW > 0)
      obj.hnd=setTimeout("document.getElementById('t1').target.width="+newW,60);
//      obj.target.width=newW;
	  window.parent.menuWidth=newW;
  }
}

function stopResize(obj) {
  obj.isResizing=false;
  document.getElementById('div1').style.width='1px';
  document.getElementById('div1').style.height='1px';
}

function canResize(obj,f) {
  obj.parentNode.parentNode.parentNode.allowResize=f;
}

function setTarget(obj){
  obj.parentNode.parentNode.parentNode.target=obj;
//  if(window.parent.menuWidth>=0)
//	  obj.width=window.parent.menuWidth;
}

function printCloseTr(doc) {
  doc.write('</tr>');
}

