
function deletefile(){

	if (document.deleteform.delfilename.value != '0')
		{
			if (confirm('Are you sure you would like to delete ' + document.deleteform.delfilename.value + '?'))
			{
				document.deleteform.submit();
			}		
}
	else
		{
			alert ("Select a file to delete");
		}

}


function downloadfile(){

	document.dlform.submit();
}


function setfilename(thename)
{
document.deleteform.delfilename.value =thename;
document.dlform.dlfilename.value =thename;
}



function changeImage(imgName, ChangeTo){
	document[imgName].src = ChangeTo;
}


function buttonHover(theButton, thecolor) {
	theButton.color = thecolor;
}
function buttonOut(theButton, thecolor) {
	theButton.color = thecolor;
}
function cssHover(theObject, theColor, fontColor) {
	theObject.style.backgroundColor = theColor;
	theObject.style.color = fontColor;
	theObject.style.cursor = "hand";
}
function cssOut(theObject, theColor, fontColor) {
	theObject.style.backgroundColor = theColor;
	theObject.style.color = fontColor;
}
function cssDown(theObject, theColor, fontColor, downColor, upColor) {
	theObject.style.borderLeftColor = downColor;
	theObject.style.borderTopColor = downColor;
	theObject.style.borderRightColor = upColor;
	theObject.style.borderBottomColor = upColor;
	theObject.style.borderLeftWidth = "2px";
	theObject.style.borderTopWidth = "2px";
	theObject.style.borderRightWidth = "1px";
	theObject.style.borderBottomWidth = "1px";
	theObject.style.backgroundColor = theColor;
	theObject.style.color = fontColor;
}
function cssUp(theObject, theColor, fontColor, downColor, upColor) {
	theObject.style.borderLeftColor = upColor;
	theObject.style.borderTopColor = upColor;
	theObject.style.borderRightColor = downColor;
	theObject.style.borderBottomColor = downColor;
	theObject.style.borderLeftWidth = "1px";
	theObject.style.borderTopWidth = "1px";
	theObject.style.borderRightWidth = "2px";
	theObject.style.borderBottomWidth = "2px";
	theObject.style.backgroundColor = theColor;
	theObject.style.color = fontColor;
}
