252 lines
		
	
	
		
			5.4 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			252 lines
		
	
	
		
			5.4 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <html>
 | |
| <head>
 | |
| <!--
 | |
| Copyright (c) 2000 Microsoft Corporation
 | |
| -->
 | |
| <TITLE>Remote Assistance</TITLE>
 | |
| <meta http-equiv="MSThemeCompatible" content="Yes">
 | |
| <LINK REL="STYLESHEET" HREF="../../Css/rcBuddy.css" TYPE="text/css">
 | |
| </head>
 | |
| <body id='idBody' OnLoad="DoLoad()">
 | |
| 
 | |
| <TABLE class="MaxLayout" border="0" cellspacing="0" cellpadding="0">
 | |
|   <TR >
 | |
| 	<TD colspan=2>
 | |
|       <font class="cssHeader">Remote Assistance - Send Invitation</font> 
 | |
|       <P></P>
 | |
| 	</TD>	
 | |
|   </TR>
 | |
|   <TR>
 | |
| 	<TD colspan=2>
 | |
| 		<font class="cssTitle"><STRONG>Step 1 of 2: Provide contact information</STRONG></font>
 | |
| 	</TD>
 | |
|   </TR>
 | |
|   <TR>
 | |
| 	<TD Class="VAlignTop" colspan=2>
 | |
| 		<font class="cssBody">
 | |
|            Instruction on how to use Remote Assistance are automatically sent with the invitation. You can also include a personal message and additional contact information. ( <FONT color=red>*</FONT>  Required)
 | |
|            <P>
 | |
|         </font>
 | |
|     </TD>   
 | |
|   </TR>
 | |
|   <TR>        
 | |
|     <TD> 
 | |
| 		<FONT color=red>*</FONT> 
 | |
| 		<font class="cssBody">To (recipient's e-mail address):</font> 
 | |
| 	</TD>	
 | |
| 	<TD align="right">
 | |
| 		<font class="cssBody" id="idAddressBox"><A href="" OnClick="DoAddressBox();return false;">Address Book</A></font>
 | |
|     </TD>
 | |
|   </TR>
 | |
|   <TR>    
 | |
|      <td colspan=2 class="VAlignTop" align="right"> 
 | |
|          <input class="MaxWidth Border" id="idTo" name="idTo" title="Enter recipient's email address" tabindex=0 onChange="DoChangeTo()">
 | |
|       </td>
 | |
|    </TR>
 | |
|    <TR>    
 | |
|       <td colspan=2>
 | |
|          <font class="cssBody">FROM:</font>
 | |
|       </td>
 | |
|    </TR>
 | |
|    <TR>   
 | |
|       <TD colspan=2 class="VAlignTop" align="right">
 | |
|          <input id="idFrom" name="idFrom" title="Enter your name" maxlength="256" tabindex=0 class="MaxWidth Border" onChange="DoChangeFrom()"> 
 | |
| 	 </TD>
 | |
|    </TR>
 | |
|    <tr> 
 | |
|      <td colspan=2> 
 | |
|         <font class="cssBody">MESSAGE:</font>
 | |
|      </td>
 | |
|    </tr>
 | |
|    <TR>      
 | |
|      <TD colspan=2 class="VAlignTop" align="right"><TEXTAREA id=idMsg title="Be sure to include your contact information in your message." class="Border MaxWidth" tabIndex=0 name=textarea rows=6 wrap=VIRTUAL onChange="DoChangeMsg()"></TEXTAREA>
 | |
| 	 </TD>
 | |
|    </TR>
 | |
|   <tr>
 | |
| 	<td colspan=2 class="VAlignBottom"><hr></td>
 | |
|   </tr>
 | |
|   <tr class="VAlignTop"> 
 | |
|    	<td align="right" colspan=2>
 | |
|    		<font class="cssAction">
 | |
|   		<A href="" OnClick="DoNext();return false;">
 | |
|   			Continue to Step 2  >>
 | |
|   		</A>
 | |
|   		</Font>
 | |
|   	</td>
 | |
|   </tr>
 | |
| </TABLE>
 | |
| 
 | |
| </body>
 | |
| <Script Language=JavaScript>
 | |
| 
 | |
| /* 
 | |
| Function : DoLoad()
 | |
| Description : This function gets called on Load of the window
 | |
| */
 | |
| function DoLoad() 
 | |
| {
 | |
| 	var L_ERRACCESSDENIED_MSG	= "Directly launching this page is not allowed. ";
 | |
| 
 | |
| 	if( null == parent.TraceFunctEnter )
 | |
| 	{
 | |
| 		idBody.style.visibility = "hidden";
 | |
| 		alert( L_ERRACCESSDENIED_MSG );
 | |
| 		return;
 | |
| 	}
 | |
| 
 | |
| 	parent.TraceFunctEnter("DoLoad");
 | |
| 
 | |
| 	try
 | |
| 	{   
 | |
| 		if (parent.sTo)
 | |
| 		{
 | |
| 			idTo.value = parent.sTo;
 | |
| 		}    
 | |
|     
 | |
| 		if (parent.sFrom == null)
 | |
| 		{
 | |
| 			try
 | |
| 			{
 | |
| 				parent.sFrom = parent.GetLocalUser();
 | |
| 			}
 | |
| 			catch(error)
 | |
| 			{
 | |
| 				parent.FatalError("",error);
 | |
| 			}
 | |
| 		}
 | |
| 		idFrom.value = parent.sFrom;
 | |
|     			
 | |
| 		if (parent.sMsg)
 | |
| 		{
 | |
| 			idMsg.value = parent.sMsg;
 | |
| 		}    
 | |
|     
 | |
| 		idTo.focus();   
 | |
| 		idTo.select();
 | |
| 	}
 | |
| 	catch(error)
 | |
| 	{
 | |
| 		parent.FatalError(error.description, error);
 | |
| 	}
 | |
|     
 | |
|     parent.TraceFunctLeave();	
 | |
| }
 | |
| 
 | |
| /* 
 | |
| Function : DoAddressBox()
 | |
| Description : This function pulls up the Address Book dialog
 | |
| */
 | |
| function DoAddressBox()
 | |
| {
 | |
| 	parent.TraceFunctEnter("DoAddressBox");
 | |
| 
 | |
| 	try
 | |
| 	{
 | |
| 		var i = 0;
 | |
| 		var s = "";
 | |
| 		var lRet = parent.oSmapi.Logon();
 | |
| 		if (lRet == 1)
 | |
| 		{
 | |
| 			try
 | |
| 			{
 | |
| 				parent.oSmapi.OpenAddressBox();
 | |
| 				for (i =0; i< parent.oSmapi.Recipients.Count ; i++)
 | |
| 				{
 | |
| 					if (i>0)
 | |
| 					{ 
 | |
| 						s += "; ";
 | |
| 					}	
 | |
| 					s += parent.oSmapi.Recipients.item(i).Name;
 | |
| 				}
 | |
| 				idTo.value = s;
 | |
| 			}
 | |
| 			catch(error)
 | |
| 			{
 | |
| 				parent.FatalError("",error);
 | |
| 			}	
 | |
| 		} 
 | |
| 		else 
 | |
| 		{
 | |
| 			var bSave = confirm(parent.L_MAPIFAIL2_MSG);
 | |
| 			if (bSave)
 | |
| 			{
 | |
| 				navigate("rcScreen8.htm");
 | |
| 			}
 | |
| 		}
 | |
| 	}
 | |
| 	catch(error)
 | |
| 	{
 | |
| 		parent.FatalError(error.description, error);
 | |
| 	}
 | |
| 		
 | |
|     parent.TraceFunctLeave();
 | |
| }
 | |
| 
 | |
| /* 
 | |
| Function : DoNext()
 | |
| Description : This function navigates to page2 of the Send Invitation through E-Mail
 | |
| */
 | |
| function DoNext() 
 | |
| {
 | |
| 	parent.TraceFunctEnter("DoNext");
 | |
| 	try
 | |
| 	{
 | |
| 		if (idTo.value.length == 0) 
 | |
| 		{
 | |
| 			alert(parent.L_NOTO_MSG);
 | |
| 			idTo.focus();
 | |
| 			idTo.select();
 | |
| 			return;
 | |
| 		}
 | |
| 		parent.sTo = idTo.value;
 | |
|    
 | |
| 		parent.sFrom = idFrom.value;
 | |
| 		if (idMsg.value.length > 40000)
 | |
| 		{
 | |
| 			idMsg.value =idMsg.value.slice(0, 40000);
 | |
| 		}    
 | |
| 		parent.sMsg = idMsg.value;
 | |
|     
 | |
| 		navigate("RcScreen5.htm");
 | |
| 	}
 | |
| 	catch(error)
 | |
| 	{
 | |
| 		parent.FatalError( error.description, error );
 | |
| 	}
 | |
| 
 | |
| 	parent.TraceFunctLeave();
 | |
| }
 | |
| 
 | |
| /* 
 | |
| Function : DoChangeTo()
 | |
| Description : This function gives the data entered in the "To" field to the oSmapi object 
 | |
| 			  so that it could be reflected in the "To" field of the Address Book
 | |
| */
 | |
| function DoChangeTo() 
 | |
| {
 | |
| 	parent.TraceFunctEnter("DoChangeTo");
 | |
| 	try
 | |
| 	{
 | |
| 		parent.oSmapi.ClearRecipList();
 | |
| 		parent.oSmapi.AddRecipient(idTo.value);
 | |
| 	}
 | |
| 	catch(error)
 | |
| 	{
 | |
| 		parent.FatalError("",error);
 | |
| 		return;
 | |
| 	}	
 | |
| 	parent.TraceFunctLeave();
 | |
| }
 | |
| 
 | |
| function DoChangeFrom()
 | |
| {
 | |
| 	parent.sFrom = idFrom.value;
 | |
| }
 | |
| 
 | |
| function DoChangeMsg()
 | |
| {
 | |
| 	parent.sMsg = idMsg.value;
 | |
| }
 | |
| </Script>
 | |
| </html>
 |