function delete_scan(file,state)
{
	ScanEventTracker._trackEvent('Scan', 'Delete', file);
	if(state==0)
	{
		a=parent.$('<div id="msgbox" class="dialog type2"><div class="content"><div id="innercontent"><span class="waiter">Please Wait...<br/><img src="/img/ajax-loader.gif"/></span></div><div class="t"></div></div><div class="b"><div></div></div></div>');
		a.hide();
		parent.$("#banner").after(a);
		a.fadeIn("slow");
		parent.$("#innercontent").load("Ajax/Ajax_DelScan.php",{  type: "POST", file:file,state:state  });
	} else if(state==1)
		$("#innercontent").load("Ajax/Ajax_DelScan.php",{  type: "POST", file:file , state:state });
	else if(state==2)
		$("#msgbox").fadeOut("slow").remove();
	else if(state==3)
	{
		ifr.$("a[@href="+file+"]").parent().remove();
		if(ifr.$("#history a")[0]==null)
			ifr.$("#history b:eq(0)").remove();
		$("#msgbox").fadeOut("slow").remove();
	}
}
