// JavaScript Document
function highlightcell(c) {
var allcells = document.getElementsByTagName("TD")
for (i=0;i<allcells.length;i++) 
	{
	allcells[i].style.backgroundColor = "white";
	allcells[i].style.color = "black";
	}
c.style.backgroundColor = "highlight"
c.style.color = "highlighttext"
}




// go up one folder
function websn_upfolder(fldpath,imgpathTop,pathTop,pathDefault,extention)
{	
		arrloc = fldpath.split("/");
		str = "";
		for (i=0;i<arrloc.length-2;i++) 
			{
			str += arrloc[i] + "/";
			}
			location.href = "imglist.asp?RootPath="+ pathTop+"&StartPath="+ pathDefault +"&FilterExt="+ extention 
			+ "&loc=" + str + "&u=y";
		
			if (str=="") {
			location.href = "imglist.asp?RootPath="+ pathTop + "&StartPath="+pathDefault +"&FilterExt="+ extention+"&loc=" + "/" + "&u=y";
			}	  			
}

function dorefresh() {
 location.href = location.href
}

function doforward() {
 history.forward()
}

function dobackward() {
 history.back()
}