// JavaScript Document

//These functions are for the page with the updates on it.

function pageOpening(id, rowid) { 
	var tr = document.getElementsByTagName(id); 
	for(var i=0;i<tr.length;i++) {
		var tagid = tr[i].id
		if (tagid.search(rowid)>-1) {
			tr[i].style.display ='none'; 
		}
	}  
} 

function togglerows(id, rowid) { 
	var tr = document.getElementsByTagName(id); 
	for(var i=0;i<tr.length;i++) {
		var tagid = tr[i].id
		if (tagid.search(rowid)==0) {
			var bExpand = tr[i].style.display == ''; 
			tr[i].style.display = (bExpand ? 'none' : ''); 
		}
	}  
} 
function changeimage(id, sMinus, sPlus) { 
	var img = document.getElementById(id); 
	if (img!=null) { 
		var bExpand = img.src.indexOf(sPlus) >= 0; 
		if (!bExpand) img.src = sPlus; else img.src = sMinus; 
	} 
} 

