function launch( app, argument)
{
                rtnValue = NFWebUpdater.Launch( app, argument );
		alert( rtnValue );
}

function download( filename, url )
{
                rtnValue = NFWebUpdater.Download( filename, url );
		alert( rtnValue );
}

function exist( app )
{
                rtnValue = NFWebUpdater.Exist( app );
		alert( rtnValue );
}

function pipe( app, argument)
{
                rtnValue = NFWebUpdater.PipeOpen( app, argument );
		alert( rtnValue );
}

function vga_info()
{
                rtnValue = NFWebUpdater.GetDisplayDeviceName();
		alert( rtnValue );
}

function mem_info()
{
                rtnValue = NFWebUpdater.GetMemoryInfo();
		alert( rtnValue );
}

function cpu_info()
{
                rtnValue = NFWebUpdater.GetProcessorInfo();
		alert( rtnValue );
}

function windows_info()
{
                rtnValue = NFWebUpdater.GetWindowsVersion();
		alert( rtnValue );
}

function is_installed( app)
{
                rtnValue = NFWebUpdater.IsInstalled( app );
		alert( rtnValue );
}

function query( app, argument)
{
                rtnValue = NFWebUpdater.Query( app, argument );
		alert( rtnValue );
}

function update(app, version, url)
{	
        try {
//                rtnValue = NFWebUpdater.Update( "dxinfo", 1, "dxinfo.exe.000001.bin", 0 );
                rtnValue = NFWebUpdater.Update( app, version, url, 1 );
                // 0 ÀÌ¸é Äµ½½ÇÑ°Í,
                // 1 ÀÌ¸é ¾÷µ¥ ¼º°ø,
                // 2 ÀÌ¸é ÀÌ¹Ì ÃÖ½Å¹öÁ¯,
                // -1 ÀÌ¸é ¿À·ù¹ß»ý

        }
        catch(e){
				alert(e);
        }
}


function GetUserSystemInfo(form)
{
	 try {
		form.hdnCpu.value = NFWebUpdater.GetProcessorInfo();
		form.hdnRam.value = NFWebUpdater.GetMemoryInfo();
		form.hdnVga.value = NFWebUpdater.GetDisplayDeviceName();
		form.hdnOs.value = NFWebUpdater.GetWindowsVersion();
		form.hdnDx.value =NFWebUpdater.PipeOpen( "dxinfo", "");

		form.txtMyspec.value 	= 
			"[ CPU ] \n"
			+form.hdnCpu.value 
			+ "\n\n[ Memory ] \n"
			+ form.hdnRam.value 
			+ "\n\n[ VGA ] \n"
			+ form.hdnVga.value 
			+ "\n\n[ OS ] \n"
			+ form.hdnOs.value 
			+ "\n\n[ DX ] \n"
			+ form.hdnDx.value;
	 }
	 catch(e)
	{
		 alert("½Ã½ºÅÛ Á¤º¸¸¦ °¡Á®¿À±â À§ÇØ¼­´Â nFlavor Corp. ¿¡¼­ ¹èÆ÷ÇÑ\n\n'nFlavor Web Updater' ActiveX ÄÁÆ®·ÑÀ» ¼³Ä¡ ÇÏ¼Å¾ß ÇÕ´Ï´Ù.");
	}

}


