

function uploadFile(strUploadDirectory, strReturnFunctionToCall, strFileTypesToAllow)
{
	var popup = window.open("file_select.asp?uploadDir=" + strUploadDirectory + "&returnFunctionToCall=" + strReturnFunctionToCall + "&allowedFileTypes=" + strFileTypesToAllow,"file_upload","height=100,width=350,menubar=no,location=no,status=yes");
	popup.focus();
}


function viewFile(strDirAbsoluteUrl)
{
	/*if(cbo.options[cbo.selectedIndex].value!="")
	{
		var popup = window.open(strDirAbsoluteUrl + "/" + cbo.options[cbo.selectedIndex].value,"previewFile");
		popup.focus();
	}
	else
	{
		alert("Please select a file to view");
		cbo.focus();
	}*/			
	
	if(strDirAbsoluteUrl!="")
	{
		var popup = window.open(strDirAbsoluteUrl,"previewFile");
		popup.focus();
	}	
}

function deleteFile(strAbsolutePath)
{	
	var popup = window.open("file_delete.asp?fileToDelete=" + strAbsolutePath, "delete_file", "width=1,height=1,resizable=yes,status=yes");	
}

function deleteFilePerformingMapPath(strNonAbsoluteFilePath)
{
	var popup = window.open("file_delete.asp?fileToDelete=" + strNonAbsoluteFilePath + "&performMapPath=true" , "delete_file", "width=1,height=1,resizable=yes,status=yes");	
}