223 lines
5.3 KiB
HTML
223 lines
5.3 KiB
HTML
<html XMLNS:helpcenter>
|
|
<head>
|
|
<!--
|
|
Copyright (c) 2000 Microsoft Corporation
|
|
-->
|
|
<TITLE>Remote Assistance</TITLE>
|
|
<meta http-equiv="MSThemeCompatible" content="Yes">
|
|
<LINK REL="STYLESHEET" HREF="Css/rc.css" TYPE="text/css">
|
|
</head>
|
|
<helpcenter:context id=idCtx />
|
|
|
|
<body id='idBody' tabIndex=-1 OnLoad="DoLoad()" scroll="no" >
|
|
<Div class="styPosition">
|
|
<TABLE border="0" cellspacing="5" class="MaxLayout" cellpadding="6" align="center">
|
|
<TR>
|
|
<td colspan=2 class="PageTitle styText VAlign" align="left" >
|
|
<strong>Invitation Accepted </strong>
|
|
</td>
|
|
</TR>
|
|
<TR>
|
|
<td colspan=2>
|
|
<div id=idNormal>
|
|
<font class="styText">
|
|
<SPAN id="idHelperName">One expert</SPAN> has responded to your invitation <SPAN id="idVerb">sent to</SPAN> <SPAN id="idHelper">him/her</SPAN>
|
|
, and is ready to connect to your computer.<br>
|
|
<p>
|
|
Do you want to let this person view your screen and chat with you?
|
|
</font></P>
|
|
</div>
|
|
<div id=idUnSolicited style="display:none;">
|
|
<font class="styText">
|
|
<SPAN id="idUnSolicHelper">Your helper</SPAN> is ready to connect to your computer.<br>
|
|
<p>
|
|
Do you want to let this person view your screen and chat with you?
|
|
</font></P>
|
|
</div>
|
|
|
|
</td>
|
|
</TR>
|
|
<TR>
|
|
<TD> </td>
|
|
<TD align="right">
|
|
<BUTTON class=styButton name="btnAccept" id="btnAccept" tabIndex=1 onClick="DoAccept()" accesskey="Y"><u>Y</u>es</BUTTON>
|
|
|
|
<BUTTON class=styButton name="btnDecline" id="btnDecline" tabIndex=2 OnClick="Decline()" accesskey="N"><u>N</u>o</BUTTON>
|
|
</TD>
|
|
</TR>
|
|
<TR>
|
|
<TD colspan=2> <HR> </TD>
|
|
</TR>
|
|
<TR>
|
|
<TD valign="top">
|
|
<Input type="checkbox" id="idPerfChkbox" name="idPerfChkBox">
|
|
</TD>
|
|
<TD id="PerfMsg" name="PerfMsg" class="styText vAlign" align="left">
|
|
Optimize performance for <Span id="idUserName1"> </Span> <P>
|
|
Optimizing temporarily turns off background graphics and lowers color quality
|
|
on your computer.
|
|
</TD>
|
|
</TR>
|
|
</TABLE>
|
|
</Div>
|
|
</body>
|
|
|
|
<Script Language="JavaScript">
|
|
var g_oSetting = null;
|
|
|
|
/*
|
|
Function : DoLoad()
|
|
Description : This function gets called on Onload event of the window.
|
|
Resizes the window to the below co-ordinates and sets the focus.
|
|
*/
|
|
function DoLoad()
|
|
{
|
|
var L_ERRACCESSDENIED_MSG = "Directly launching this page is not allowed. ";
|
|
var L_SAVEAS_VERB = "saved as";
|
|
if( null == parent.TraceFunctEnter )
|
|
{
|
|
idBody.style.visibility = "hidden";
|
|
alert( L_ERRACCESSDENIED_MSG );
|
|
return;
|
|
}
|
|
|
|
parent.TraceFunctEnter("DoLoad");
|
|
if (document.URL.indexOf("Unsolicited=1") != -1)
|
|
{
|
|
idUnSolicited.style.display = "";
|
|
idNormal.style.display = "none";
|
|
if (parent.gHelperName)
|
|
{
|
|
idUnSolicHelper.innerText = parent.gHelperName;
|
|
if(null == parent.gHelper)
|
|
{
|
|
parent.gHelper = parent.gHelperName;
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
try
|
|
{
|
|
if (parent.gHelper)
|
|
{
|
|
if (parent.gIsFile)
|
|
idVerb.innerText = L_SAVEAS_VERB;
|
|
|
|
idHelper.innerText = "\"" + parent.gHelper + "\"";
|
|
}
|
|
if (parent.gHelperName)
|
|
{
|
|
idHelperName.innerText = parent.gHelperName;
|
|
idUserName1.innerText = parent.gHelperName;
|
|
}
|
|
}
|
|
catch(error)
|
|
{
|
|
parent.FatalError("", error );
|
|
}
|
|
}
|
|
|
|
try
|
|
{
|
|
g_oSetting = new ActiveXObject("RcBdyCtl.Setting");
|
|
var sTmp = g_oSetting.GetProfileString("PerfOpt");
|
|
if (sTmp == "-1")
|
|
{
|
|
idPerfChkbox.checked = false;
|
|
}
|
|
else
|
|
{
|
|
idPerfChkbox.checked = true;
|
|
}
|
|
|
|
btnAccept.focus();
|
|
}
|
|
catch(error)
|
|
{
|
|
parent.FatalError(error.description, error );
|
|
}
|
|
|
|
parent.TraceFunctLeave();
|
|
}
|
|
|
|
|
|
/*
|
|
Function : DoAccept()
|
|
Description :This function is called when the helper is granted permission to
|
|
make the connection.
|
|
*/
|
|
function DoAccept()
|
|
{
|
|
parent.TraceFunctEnter("DoAccept");
|
|
if (parent.oRCSession == null)
|
|
{ // this comes from RcRequest.
|
|
try
|
|
{
|
|
if( idPerfChkbox.checked == true )
|
|
{
|
|
parent.g_bOptimizedPerf = true;
|
|
parent.DoChangeColorDepth();
|
|
g_oSetting.SetProfileString("PerfOpt", 1);
|
|
}
|
|
else
|
|
{
|
|
parent.g_bOptimizedPerf = false;
|
|
g_oSetting.SetProfileString("PerfOpt", -1);
|
|
}
|
|
|
|
parent.gTimerId = setTimeout('ConnectionTimeout()', parent.c_iCONNECTION_TIMEOUT);
|
|
parent.Accepted();
|
|
}
|
|
catch (error)
|
|
{
|
|
parent.FatalError("", error );
|
|
}
|
|
}
|
|
parent.TraceFunctLeave();
|
|
}
|
|
|
|
/*
|
|
Function : Decline()
|
|
Description : This function is called when the helpee declines the helper from connecting
|
|
*/
|
|
function Decline()
|
|
{
|
|
parent.TraceFunctEnter("Decline");
|
|
if (parent.oRCSession == null)
|
|
{ // comes from RcRequest.
|
|
try
|
|
{
|
|
parent.gTimerId = setTimeout('ConnectionTimeout()', parent.c_iCONNECTION_TIMEOUT);
|
|
parent.Rejected();
|
|
}
|
|
catch (error)
|
|
{
|
|
parent.FatalError("",error);
|
|
}
|
|
}
|
|
|
|
parent.TraceFunctLeave();
|
|
}
|
|
|
|
function ConnectionTimeout()
|
|
{
|
|
parent.TraceFunctEnter("ConnectionTimeout");
|
|
|
|
try
|
|
{
|
|
alert( parent.L_ERRCONNECTIONTIMEDOUT_MSG );
|
|
parent.pchealth.Close();
|
|
}
|
|
catch(error)
|
|
{
|
|
// Dont do anything...
|
|
}
|
|
|
|
parent.TraceFunctLeave();
|
|
return;
|
|
}
|
|
|
|
</Script>
|
|
</html>
|