	
	btn_close = new Image();
	btn_close.src = "images/right_icon.gif";
	
	btn_expand = new Image();
	btn_expand.src = "images/down_icon.gif";
	
	var iExpanded = false;
	
	function expand(iRow) {
		document.images['rowImg'+iRow].src = btn_close.src;
		oItem = document.getElementById('row' + iRow);
		oItem.className = 'expanded'
	}
		
	function collapse(iRow) {
		document.images['rowImg'+iRow].src = btn_expand.src;
		oItem = document.getElementById('row' + iRow);
		oItem.className = 'collapsed'
	}
	
	function expando(iRow) {		
		if(document.images['rowImg'+iRow].src == btn_close.src) {
			collapse(iRow);
		} else {
			expand(iRow);			
		}
	}


var popup=0;
var popup2=0;
function newWindow(newURL,left,top,width,height)
{
	popup = window.open(newURL,'popup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

function newWindow2(newURL,left,top,width,height)
{
	popup = window.open(newURL,'popup2','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}
