function rowHideShow(e_RowId)
{
	rowCollapse('collapsible');
	ShowRow(e_RowId);	
	}
	
	
function ShowRow(e_RowId)
{
	var myrows		= e_RowId.parentNode.parentNode.rows;
    myrows[e_RowId.rowIndex + 1].style.visibility = "visible";
}

function getElementsByTagAndMatchAttribute(tag, matchit, attname)
{
     
     var elem = document.getElementsByTagName(tag);
     var arr = new Array();
     for(i = 0,iarr = 0; i < elem.length; i++) {
          att = elem[i].getAttribute(attname);
          if(att == matchit) {
               arr[iarr] = elem[i];
               iarr++;
          }
     }
     return arr;
}
	
function rowCollapse(e_RowName)
{
	//var x = document.getElementsByName(e_RowName);
	
	var x = getElementsByTagAndMatchAttribute('tr', e_RowName, 'name')
	for (i=0;i<x.length;i++)
	  {
		var id_element = x[i].style;
		  	
            id_element.visibility = "collapse"; 
	  }
}
var newwindow = ''
function popitup(url) {
if (newwindow.location && !newwindow.closed) {
    newwindow.location.href = url;
    newwindow.focus(); }
else {
    newwindow=window.open(url,'htmlname','width=404,height=316,resizable=1');}
}

function tidy() {
if (newwindow.location && !newwindow.closed) {
   newwindow.close(); }
}