<html>
<head>
<title>14_FileBackupProgress.v1.06</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/main.css" rel="stylesheet" type="text/css" />
<link href="css.css" rel="stylesheet" type="text/css" />
</head>
<script language="javascript" src="js/comm.js" type="text/javascript"></script>
<script language="javascript">
// import js document
	_import("product");_import("function");
	
	
	_import("webmenuevent");
	_import("control");
	var ErrNum=0;
</script>
<script language="javascript">
if(FarstoneProductFlag_md=="DCPER")
{
	document.write('<OBJECT tabindex="-1" id="fileBackupCom" style="WIDTH: 0px; HEIGHT: 0px" 		classid="clsid:E8F2A56C-BD3A-4369-AC28-2A6992A4FCBB" VIEWASTEXT></OBJECT>');
}
else if(FarstoneProductFlag_md=="DCPRO" || FarstoneProductFlag_md=="DCSER")
{
	document.write('<OBJECT tabindex="-1" id="fileBackupCom" style="WIDTH: 0px; HEIGHT: 0px" 		classid="clsid:E8F2A56C-BD3A-4369-AC28-2A6992A4FC84" VIEWASTEXT></OBJECT>');
}
</script>
<script language="javascript">
if(FarstoneProductFlag_md=="DCPER")
{
	document.write('<OBJECT id="efbRestoreCtrl" style="WIDTH:0px; height:0px;" classid="clsid:FCB090DF-3E65-4FC2-8501-F12D49692C74" VIEWASTEXT></OBJECT>');
}
else if(FarstoneProductFlag_md=="DCPRO" || FarstoneProductFlag_md=="DCSER")
{
	document.write('<OBJECT id="efbRestoreCtrl" style="WIDTH: 0px; HEIGHT:0px" classid="clsid:B85974B7-1627-4086-8560-6DCB87121986" VIEWASTEXT></OBJECT>');
}
efbRestoreCtrl.SetPdName(FarstoneProductName);
</script>

<script language="javascript">
if(FarstoneProductFlag_md=="DCPER")
{
	document.write('<OBJECT tabindex="-1" id="cbpselectlocation" style="WIDTH: 0px; HEIGHT: 0px" 		classid="clsid:66043874-8B5A-415B-963E-6360C52B5BAB"></OBJECT>');
}
else if(FarstoneProductFlag_md=="DCPRO" || FarstoneProductFlag_md=="DCSER")
{
	document.write('<OBJECT tabindex="-1" id="cbpselectlocation" style="WIDTH: 0px; HEIGHT: 0px" 		classid="clsid:66043874-8B5A-415B-963E-6360C52B5BEF"></OBJECT>');
}
</script>
<script language="javascript">
if (FarstoneProductName){
	cbpselectlocation.SetTitle(FarstoneProductName);
}else{
	if(FarstoneProductFlag_md=="DCPER")
	{
		cbpselectlocation.SetTitle(FarstoneProductName);
	}
	else if(FarstoneProductFlag_md=="DCPRO" || FarstoneProductFlag_md=="DCSER")
	{
		cbpselectlocation.SetTitle(FarstoneProductName);
	}
}
</script>


<body style="margin:0px; padding:0px; background-color:#FFFFFF;">
<div class="PageAllPadding">
	<div class="arial22blue" id = "backupCurrenttitle"></div>
	<hr align="left" noshade="noshade" class="HRPageTitle"/>
	<div style="height:20px;"></div>
	<div id="FileBackupcountsize_Wait" class="PageSubTitle"; style="display:none;"></div>
	<div style="padding-top:5px;"></div>
	<div id="taskprgress"></div>
	<div id="FileBackupcountsize_Note" align="left" style="width:480px; display:none; overflow-x:auto; overflow-y:auto; padding-top:15px;" class="PageText"></div>
	<div id="FileBackupcountsize_current_file" align="left" style="width:480px; display:none;padding-top:15px; word-break:break-all;" class="PageText"></div>
	<div id="taskprgress1"></div>
	<div id="backupfilelefttime" style="padding-top:15px; width:480px;" class="PageText"></div>
	<div id="BackupInfomation" align="left" style="width:480px;padding-top:15px; word-break:break-all;" class="PageText"></div>
	
	<div id="customrestoreefb_Err" class="PageText" style="padding-top:12px;display:none;"><span id="Txt_thereis"></span><span id="Txt_ErrNum"></span><span id="Txt_errors"></span>. <a style="cursor:pointer;text-decoration:underline;color:#0000FF;" onClick="$('errinfo1').style.display='';" id="Txt_showerrors"></a></div>
	
	<div class="PageText" id="errinfo1" style="width:480px; background-color:#F9F9F9; height:260px; text-align:left; overflow-y:auto; display:none; padding-top:12px;" ></div>
	<div id="Div_Button_Position">
		<div style="float:right;">
			<button cstyle="rit" id="Button_BackupDriver_Cancel" onClick="javascript:Cancelp();">&nbsp;</button>
		</div>
	</div>
</div>
<script language="javascript" type="text/javascript">
var canceled=false;
var ipro=0;
var iprojob=0;
var leftTimeStr;
var timeOut1;
var pDst;
var pName;
var pType;
var backupFinishFlag=false;
var isCD=0;
var progressBar = new progressControl(480,"taskprgress");
var progressBarfile = new progressControl(480,"taskprgress1");
var XMLRA=new xmlResourceAgent("EFB_xmlStrings.xml",langType);
var cNum;
var fileSize;
var efbStoreLocation;
//project create flag   1  ---- create project succeed        other  ----- not create project
var stated;




var hiddenQueryCreateProgress_interval = null;
//var lastdwUsed;
document.body.onload=function()
{
	applyButton();
	$("Txt_showerrors").innerHTML = XMLRA.getString("Txt_showerrors");
$("Txt_thereis").innerHTML = XMLRA.getString("Txt_thereis");
$("Txt_errors").innerHTML = XMLRA.getString("Txt_errors");
	$("backupCurrenttitle").innerHTML = XMLRA.getString("backupCurrenttitle");
	//$("backupCurrentStep").innerHTML = XMLRA.getString("backupCurrentStep");
	$("FileBackupcountsize_Wait").innerHTML = XMLRA.getString("FileBackupcountsize_Wait");
	$("FileBackupcountsize_Note").innerHTML = XMLRA.getString("FileBackupcountsize_Note");
	$("Button_BackupDriver_Cancel").setValue(XMLRA.getString("Button_Cancel"));
	$("taskprgress1").style.display="none";
	pName=Request("name");
	pType=Request("dtype");
	stated=Request("state");
	cNum=Request("cNum");
	pDst=Request("dst");
	isCD = Request("iscd");
	//alert(pName+"____"+pDst+"__"+pType);
	if(FarstoneProductFlag_md=="DCPRO" || FarstoneProductFlag_md=="DCSER"){
		fileBackupCom.SetProductModule(0);
	}
	else if(FarstoneProductFlag_md=="DCPER")
	{
		fileBackupCom.SetProductModule(1);
	}
	pType=parseInt(pType);
	fileBackupCom.CreateAndSetProject(pName, pType, pDst, cNum);
	//alert(stated);
	EnableProcessFlag();
	
/*	if(typeof(parent.EFB_notDoBackupNow)!= "undefined")
	{
		if(parent.EFB_notDoBackupNow == true)
		{
		}
	}*/
	if(stated==1 || parent.EFB_notDoBackupNow)
	{
		if(parent.EFB_notDoBackupNow && stated!=1)
		{
			$("FileBackupcountsize_Wait").innerHTML = GS("IR_FileBackup_CountSize_CreatProject");
		}
		$("FileBackupcountsize_Wait").style.display="inline";
		$("FileBackupcountsize_Note").style.display="inline";
		$("FileBackupcountsize_current_file").style.display="inline";
		setTimeout("efbCreateProject()",100);
	}
	else
	{
		if(!checkBackupNowFlagAndJump())
		{
			return;
		}
		$("taskprgress").style.display="none";
		$("taskprgress1").style.display="inline";
		hiddenQueryCreateProgress_interval = setInterval(
			function()
			{
				iprojob= fileBackupCom.GetCreateProjectPoint();
				if(iprojob*1 < 100)
				{
					document.getElementById("backupfilelefttime").innerHTML=XMLRA.getString("FileBackupprocess_Preparing");
				}
				else
				{
					clearInterval(hiddenQueryCreateProgress_interval);
					setTimeout("backfile()",100);
				}
			},1000
		)
		
	}
}
function backfile(){
	$("Button_BackupDriver_Cancel").dsiabled=false;
	var dataBaseStatus=fileBackupCom.CheckContinue();
	if(dataBaseStatus==10)   ///if another backup is running, then cancel the backup progress.
	{
		DC3RIT_popMsg('',264,135,'ok',XMLRA.getString("FileBackupprocess_Backuprunning"),'alert');
		DisableProcessFlag();
		document.location  = "FileBackupName.htm";
		return;
	}
	if (pName=="" || pDst=="" || pType=="") {
		DC3RIT_popMsg('',264,135,'ok',XMLRA.getString("FileBackupprocess_Failedbackup"),'alert');
		DisableProcessFlag();
		document.location  = "FileBackupName.htm";
		return;
	}
	
	//alert(pName+"____"+pDst+"__"+pType);
	var outlookStatus = fileBackupCom.ProductRunningStates(pName);
	if (outlookStatus != 0){
		DC3RIT_popMsg('',274,135,'ok',GS_Back("outlook_errInfo"),'alert');
	}
	var backupRst=fileBackupCom.Backup(pName);
	if (backupRst==10) ///if another backup is running, then cancel the backup progress.
	{
		DC3RIT_popMsg('',264,135,'ok',XMLRA.getString("FileBackupprocess_Backuprunning"),'alert');
		DisableProcessFlag();
		document.location  = "FileBackupName.htm";
		return;
	}
	if (backupRst==8){
		DC3RIT_popMsg('',264,135,'ok',XMLRA.getString("CopyFileError"),'alert');
		DisableProcessFlag();
		document.location  = "FileBackupName.htm";
		return;
	}
	backupRst=backupRst+"";
	if (backupRst.indexOf("9008")!=-1)  //If this is not run in evalbrowser.exe , then cancel the progress.
	{
		//getEfbMsg(backupRst);
		try	{window.external.OnClose();}
		catch(e){
			window.opener=null;
			window.close();
		}
		return;
	}
	//SetAllInputTextEvent();
	//EnableProcessFlag();
	setTimeout("go90()",100);
}
function go90(){
	if (canceled) { return; }

	var ipro = fileBackupCom.GetProgressCtrl();

	var leftTimeStr = fileBackupCom.GetBackupLeftTime();
	if (ipro*1<=99) 
	{
		if(ipro!=0)
		{
		//backupPercent=ipro;
		progressBarfile.setProgress(ipro);
		}
	}
	if(ipro==99)
	{
		progressBarfile.setProgress(100);
		$("Button_BackupDriver_Cancel").dsiabled = true;
	}
	if (ipro==0) { document.getElementById("backupfilelefttime").innerHTML=XMLRA.getString("FileBackupprocess_Preparing"); }
	else if (leftTimeStr>3600) { document.getElementById("backupfilelefttime").innerHTML=XMLRA.getString("FileBackupprocess_Moreonehour"); }
	else if(leftTimeStr>60) {
	    var minit=Math.floor((leftTimeStr+30)/60)
	    document.getElementById("backupfilelefttime").innerHTML=XMLRA.getString("FileBackupprocess_About")+XMLRA.getString("FileBackupprocess_Remaining").replace("$x_lefttime",minit);
	}
	else if (leftTimeStr>5) { document.getElementById("backupfilelefttime").innerHTML=XMLRA.getString("FileBackupprocess_About")+XMLRA.getString("FileBackupprocess_Seconds").replace("$x_lefttime",leftTimeStr); }
	else { document.getElementById("backupfilelefttime").innerHTML=XMLRA.getString("FileBackupprocess_Less"); }
	if (backupFinishFlag && ipro>=100) {
	
		DisableProcessFlag();
		parent.jumpPageTo("FileBackupDone.htm?dstLocation=1&name="+escape(pName)+"&iscd="+isCD);
		return;
	}
	if(!window.labelNotFinished)
	{
		timeOut1=setTimeout("go90()",100);
	}
}
function OnEnterKeyPress() {
}
function Cancelp() {
	$("Button_BackupDriver_Cancel").dsiabled = true;
	if(stated==1){
		setTimeout("Cancelpjob()",1000);
	}
	else{
		Cancelptimeout();
	}
}
function Cancelptimeout()
{
	efbStoreLocation=(fileBackupCom.GetShownProjectPath(pName));
	var crst=fileBackupCom.StopBackup();
	if (crst==0) {
		canceled=true;
		writeLogInformation(0, XMLRA.getString("FileBackupprocess_Procanceled"),pName);
		fileBackupCom.DeleteProject(pName);
		DisableProcessFlag();
		goFirstPage();
	}
	else
	{   
		DC3RIT_popMsg('',264,135,'ok',XMLRA.getString("FileBackupprocess_Failedcancelop"),'alert');
		$("Button_BackupDriver_Cancel").dsiabled = false;
	}
}
function goFirstPage() {parent.jumpPageTo("FileBackupName.htm");}
function ShowBackupInfo( id, msg ) {
//alert(id+"___+"+msg);
// error  -1    delete projectname,  //        -2    process end
//         0    process succeed
//         1    process continue    //         2    process cancel   //         3    process continue without any memotion
		if (id==2)
		{
		ErrNum+=1;
		displayErrMsg(msg,0);
		}
		else if (id==3)
		{
		ErrNum+=1;
		displayErrMsg(msg,1);
		}
		if(id==7){//filespace not enough
		DC3RIT_popMsg('',260,135,'ok',XMLRA.getString("FileBackupprocess_Spacenotenough"),'alert');
		writeLogInformation(0, XMLRA.getString("FileBackupprocess_Disknotenough")+msg, pName);
		fileBackupCom.DeleteProject(pName);
		DisableProcessFlag();
		parent.jumpPageTo("FileBackupName.htm");
		return;
	}
	else{
		switch( parseInt(EFBChangeDiscFunctionBackupNow(id,msg,fileBackupCom,pName,efbRestoreCtrl)) ) {
		case -1:
			clearTimeout(timeOut1);
			fileBackupCom.DeleteProject(pName);
			DisableProcessFlag();
			parent.jumpPageTo("FileBackupName.htm");
			break;
		case -2:
			fileBackupCom.DeleteProject(pName);
			DisableProcessFlag();
			parent.jumpPageTo("FileBackupName.htm");
			break;
		case 0:
			backupFinishFlag=true;
			fileBackupCom.IsReady(0);
			break;
		case 1:
			fileBackupCom.IsReady(0);
			break;
		case 2:
			fileBackupCom.IsReady(1);
			break;
		case 3:
			break;
		case 4:
			backupFinishFlag=true;
			var msgArr = msg.split("|");
			for (i=1;i<msgArr.length;i++) { msgArr[i]=msgArr[i].toUpperCase(); }
			progressBarfile.setProgress(100);
			$("Button_BackupDriver_Cancel").dsiabled = true;
			//DisableProcessFlag();
			parent.processFlag = false;
			//$("Button_BackupDriver_Cancel").setValue(XMLRA.getString("finishButton"));
			fileBackupCom.IsReady(0);
			window.labelNotFinished = true;
			DC3RIT_popMsg('',264,135,'ok',GS_Back("F_JS_LabelFinish").replace(/\$labCDRom\$/g,msgArr[1]),'info');
			window.labelNotFinished = false;
			setTimeout("go90()",100);
			break;
		default:
			DC3RIT_popMsg('',264,135,'ok',XMLRA.getString("FileBackupprocess_Functionerror"),'alert');
			break;
	   }
	}
}
function writeLogInformation(errorID, errorDescribe, projectName ){
////////////efb writelog
//void LogWriteLog(
//int logType , //Log类别,9 为fileback , 10 为 fileback schedule 11 restore file
//int iType ,  //类别
//int iError , //错误码
//char *strPjName , //项目名称,用于显示来源
//char *describe , //log的描述
//BOOL bUnicode )// dc3所有UI都是unicode,如果传入的不是unicode置为false
//long CDC30OcxCtrl::LogWriteLogChar(long logType, LPCTSTR strType, LPCTSTR strError, LPCTSTR strPjName, LPCTSTR strDesc)
  var getedProjectPath=efbStoreLocation;
  efbRestoreCtrl.LogWriteLogChar(9,errorID,errorID,projectName,errorDescribe,getedProjectPath);	
}
//create project
function go900(){
	if (canceled){
		return;
	}
	iprojob= fileBackupCom.GetCreateProjectPoint();
	if (iprojob>100){
		iprojob=100;
	}
	if (iprojob*1<99)	{
		
		progressBar.setProgress(iprojob);
	}
	else{
		progressBar.setProgress(99);
		$("Button_BackupDriver_Cancel").dsiabled=true;
	}
	if (iprojob<100) {
		timeOut1=setTimeout("go900()",300);
	}
	else {
		if(typeof(parent.EFB_notDoBackupNow)!= "undefined")
		{
			if(parent.EFB_notDoBackupNow == true)
			{
				DisableProcessFlag();
    /************************************
	/* edit by summer on 2007-3-26
	/* to save the username and pwd
	************************************/
	var username=parent.HostUsername;
	var pwd=parent.HostUserPwd;
	var targetpath=pName;//工程名称
	var resultT=fileBackupCom.UpdateUser(targetpath,username,pwd);				
				parent.jumpPageTo("FileBackupDone.htm?dstLocation=1&name="+escape(pName)+"&iscd="+isCD);
				return;
			}
		}
		
		setTimeout("jumpToSelectDst()",100);
	}
}
function jumpToSelectDst(){
    /************************************
	/* edit by summer on 2007-3-26
	/* to save the username and pwd
	************************************/
	var username=parent.HostUsername;
	var pwd=parent.HostUserPwd;
	var targetpath=pName;//工程名称
	var resultT=fileBackupCom.UpdateUser(targetpath,username,pwd);
	
	
	
	//////////////////////////end///////////
    fileSize=fileBackupCom.GetTotalFileSize(pName);
//   	if(lastdwUsed<parseInt(fileSize))
//	{
//		DC3RIT_popMsg('',264,145,'ok','Not enough space to backup the selected files. Please select another location.','alert');
//		document.location="EFBEraseDiscProcess.html";
//	}
//	else  {
		setTimeout("goSelectDST()",100);
//	}
}
function goSelectDST(){
	stated = 2;
	if(!checkBackupNowFlagAndJump())
	{
		return;
	}
//	progressBar.setProgress(0);
	$("taskprgress").style.display="none";
	$("FileBackupcountsize_Wait").style.display="none";
	$("FileBackupcountsize_Note").style.display="none";
	$("FileBackupcountsize_current_file").style.display="none";
	$("taskprgress1").style.display="inline";
	setTimeout("backfile()",1000);
}

function checkBackupNowFlagAndJump()
{
	if(typeof(parent.EFB_notDoBackupNow)!= "undefined")
	{
		if(parent.EFB_notDoBackupNow == true)
		{	
			return true;
		}
		else
		{
			return true;
		}
	}
	return true;
}

function efbCreateProject()
{
		//pType=parseInt(pType);
	    //fileBackupCom.CreateAndSetProject(pName, pType, pDst, cNum);
		//EnableProcessFlag();
		//get process info
		go900();
}
function Cancelpjob()
{
	var stopResult=fileBackupCom.StopCreateProject(pName);
    if (stopResult==0){
		canceled=true;
		fileBackupCom.DeleteProject(pName);
		DisableProcessFlag();
	    setTimeout("goPPage()",100);
	}
	else{
	    DC3RIT_popMsg('',280,128,'ok',XMLRA.getString("FileBackupcountsize_Failedcancel"),'alert');
		$("Button_BackupDriver_Cancel").dsiabled=false;
	}
}
function goPPage(){
	parent.jumpPageTo("FileBackupName.htm");
}

function displayErrMsg(msg,id)//display error list
{
	var duoYuShu;
	var elementObj;
	//alert(msg);
	var msgfile=msg.split("|");
	msg=msgfile[0];
	var errorType=msgfile[1];	
	errorType=errorType.substring(errorType.length-4,errorType.length);
	msg=msg.replace(/\//g,"\\")
	if (msg.length>50)
	{
	
		if (msg.indexOf("\\")==-1)
		{
			msg=msg.substring(0,50);
			msg+="..."
		}
		else
		{
		
			duoYuShu=msg.length-50
			var tmpArr1=msg.match(/\\[^\\]*$/);
			var leftStr=msg.substring(0,3);
			//alert(tmpArr1[0].length)
			if (tmpArr1[0].length>45)
			{
				var filenameCutStr=tmpArr1[0].substr(tmpArr1[0].length-45,45)

				msg=leftStr+"..."+filenameCutStr;
			}
			else
			{
				var cutFilename=msg.replace(tmpArr1[0],"")
				var cutMiddle=cutFilename.substring(0,cutFilename.length-duoYuShu)
				msg=cutMiddle+"..."+tmpArr1[0];
			}
		}
	}
	//var isBrStr
	//isBrStr=document.getElementById("errinfo1").innerHTML==""?"":"<br>"
	if (id==0)
	{
		if(ErrNum>0){$("Txt_ErrNum").innerHTML=ErrNum+1;$("customrestoreefb_Err").style.display="";}
		$("BackupInfomation").style.display="none";
		//document.getElementById("errinfo1").style.visibility="visible";
		elementObj=document.createElement("div");
		if(errorType=="714b"){
			elementObj.innerHTML=XMLRA.getString("customrestoreefb_Thepathlong")+msg;
		}
		else if(errorType=="7011"){
			elementObj.innerHTML=XMLRA.getString("EFBFileSelection_Failedmemory")+msg;
		}
		else if(errorType=="7141"){
			elementObj.innerHTML=XMLRA.getString("customrestoreefb_Failedcopyfile")+msg;
		}
		else if(errorType=="7135"){
			elementObj.innerHTML=XMLRA.getString("Button_Cancel")+msg;
		}
		//else if(errorType=="711a"){
//			progressBar.setProgress(100);
//		$("Button_BackupDriver_Cancel").dsiabled=false;
//		}
		
		document.getElementById("errinfo1").appendChild(elementObj);
		
		//document.getElementById("errinfo1").innerHTML+=(isBrStr+)
	}
	else
	{
		if(ErrNum>0){$("Txt_ErrNum").innerHTML=ErrNum+1;$("customrestoreefb_Err").style.display="";}

$("BackupInfomation").style.display="none";
		//document.getElementById("errinfo1").style.visibility="visible";
		elementObj=document.createElement("div");
		elementObj.innerHTML=XMLRA.getString("Updateerror")+msg;
		document.getElementById("errinfo1").appendChild(elementObj);
		//document.getElementById("errinfo1").innerHTML+=(isBrStr+"Update database error: "+msg)
	}
}




function EFBEventFunction(id, msg)
{
 	//alert(id+msg);
//    if (id==1) {
//	//fileBackupCom.IsReady(0);
//	//setTimeout("popComf()",500)
//    }
//	else
 if (id==4)
	{	
		
		var msgid = msg.substring( msg.length-4, msg.length );
//		try	{
				//var outMsg=
				GetErrorMessage(msgid);
//			}
//		catch(e){
//				var outMsg="ErrorCode:"+msg;	
//				window.location="summary.htm";
//				}
//		DC3RIT_popMsg('',280,138,'ok',outMsg,'alert');
//		window.location="summary.htm";
		//parent.clickNavButton(3);
	}
}
//function getEfbMsg(msgId){
//	try	{		var outMsg=getErrMsg(msgId);	}
//	catch(e)	{		var outMsg="ErrorCode:"+msgId;	}
//	DC3RIT_popMsg('',280,138,'ok',outMsg,'alert');
//    return ;
//}
function GetEventForVB( id, msg) {
//project create flag   1  ---- create project succeed        other  ----- not create project
//var stated;
//	$("debug").value += "[" + id + "______" + msg + "______" + stated +"]";
	if (msg.length > 4){
		if (msg.substring(msg.length-4,msg.length) == "7145"){
			return;
		}
		//if (msg.substring(msg.length-4,msg.length) == "711a"){
//		progressBar.setProgress(100);
//		progressBarfile.setProgress(100);
//		$("Button_BackupDriver_Cancel").dsiabled=false;
//		}
	}
	if(id==41)
	{
		document.getElementById("FileBackupcountsize_current_file").innerHTML=msg;
		return;
	}else if (id == 42){
		document.getElementById("BackupInfomation").innerHTML=msg;
		return;
	}
	if ( stated ==1) {
		EFBEventFunction(id,msg);
		//ShowBackupInfo(id,msg);
		
	}
	else {
		ShowBackupInfo(id,msg);
	}
}

function showinfo (strPath, iType, dwAllSize, dwUsed, isWrite)
{
	lastdwUsed=dwUsed;
}

parent.iframepageLoadedFinished();
</script>
<script language="vbscript">
sub fileBackupCom_BackupInfo(id, msg)
	GetEventForVB id,msg
end sub
</script>
<SCRIPT LANGUAGE="vbs">
sub cbpselectlocation_DCTreePathChangedEx(strPath, iType, dwAllSize, dwUsed ,isWrite) 
	call showinfo(strPath, iType, dwAllSize, dwUsed, isWrite)
end sub
</SCRIPT>

</body>
</html>