function fileupload_fetch(divname,objecttype,objid,updatefunc,project_id)
{
    ajaxObj.call("module=file&action=genericdoc&objecttype="+objecttype+
	"&objid="+objid+
	"&divname="+divname+
	"&update="+updatefunc+
	"&project_id="+project_id,
	divname);

    gc_show_div(divname);
}


function fileupload_remove(divname,objecttype,objid,fileid,filename)
{
    if (confirm("Really Remove "+filename+"?\nIt can not be undone."))
	{
          ajaxObj.call("module=file&action=removefile&objecttype="+objecttype+
	      "&objid="+objid+
	     "&divname="+divname+
	     "&fileid="+fileid,
             divname);
	}
}

function fileupload_process(divname,objecttype,objid)
{

    closeShadow();

    ajaxObj.call("module=file&action=genericlist&divname="+divname+"&objecttype="+objecttype+"&objid="+objid,divname);
}
