function opendiv(obj,cnt,trId) {
  tr = document.getElementById(trId);
  var str = ( tr.style.display == "none" ) ? "" : "none";
  while( cnt > 0 ) { tr.style.display = str; tr=tr.nextSibling; cnt--; }
}

var td;
var tr;
var wnd;
var str;

function  openwnd(obj,cnt) {
  wnd= window.open("blank.htm");
  str = "<CENTER>";
  str += "<h3>" + obj.parentElement.innerHTML + "</h3>";
  var tr= obj.parentElement.parentElement; tr=tr.nextSibling;
  str += "<TABLE cellSpacing=2 cellPadding=2 bgColor=#ffffff border=0 width=90%>";
  while( cnt > 0 ) { 
     str += "<tr>" + tr.innerHTML + "</tr>";
	 tr=tr.nextSibling; cnt--; 
  }
  str += "</TABLE></CENTER>";
  setTimeout("opencomplit()",100);
}

function  openwnd2(obj,cnt) {
alert(typeof(obj));
}

function opencomplit() {
  try {
    wnd.document.title = window.document.title;
    wnd.document.body.innerHTML = str;	  
  }	
  catch( e ) {
    setTimeout("opencomplit()",100);
  }
}

function openurl(url) {
  window.open(url);
}

function showblock(obj)
{
  if( obj.style.display == "none" )	
	  obj.style.display = "";
  else
	  obj.style.display = "none";
}

