
		 function toggle_all(selectBox) {
		 	 var id, i, a;
		 	 id = 'iftr' + selectBox.options[selectBox.selectedIndex].innerHTML 
		 	 	+ selectBox.options[selectBox.selectedIndex].value;
		 	 
		 	 // Remove spaces for XHTML	
		 	 id = removeSpaces(id);
		 	 	
		 	 for(i=0; ( a = document.getElementsByTagName('tr')[i]); i++)
		 	 {
		 	 	// Grab our ID
		 	 	var s = a.id;
		 	 	
		 	 	if (id != "iftrAll0") {
		 	 	if (s.substr(0, 4) == 'iftr') {
		 	 	  
		 	 	  // Find the first period (used to make
		 	 	  // unique ids) 
		 	 	  var posPeriod = s.indexOf(".");
		 	 	  
		 	 	  // If posPeriod is > 0 then we are at
		 	 	  // a file and need to remove the .xxxx
		 	 	  if (posPeriod > 0) {
		 	 	  	s = s.substr(0, posPeriod);
		 	 	  }
		 	 	  
		 	 	  // Remove spaces for XHTML
		 	 	  s = removeSpaces(s);
		 	 	  
		 	 	  // Test to see if we have a match
		 	 	  if (s == id) {
		 	 	 	 a.style.display = '';
		 	 	  }
		 	 	  else {
		 	 	 	 a.style.display = 'none';
		 	 	  }
		 	 	}
		 	 	}
		 	 	else {
		 	 	a.style.display = '';
		 	 	}
		 	
		 	 }
		 }
		
			function toggle_visibility(id) {
				var e = document.getElementById(id);
				if(e.style.display == 'none')
				e.style.display = 'block';
				else
				e.style.display = 'none';
			}
			
			// Remove spaces of ids for XHTML
			function removeSpaces(string) {
				var tstring = "";
				string = '' + string;
				splitstring = string.split(" ");
				for(i = 0; i < splitstring.length; i++)
				tstring += splitstring[i];
				return tstring;
			 }
			
					
	function flip(img, flipto) {
	 if(!img.old) {
		img.old = img.src;
		img.src = flipto;
	 }
	 else {
		var src = img.src;
		img.src = img.old;
		img.old = src;
	 }
	}

