



function GetPageText( nStartID, nEndID )
	
	On Error Resume Next
	Dim pCWQuickTipControl
	Dim retval

	Set pCWQuickTipControl = CreateObject("CSQuickTips.QuickTips.23")	'' VB test application.

	if (pCWQuickTipControl is nothing) then
		''''MsgBox "Error obtaining SwHtmlControl interface. 'swHTMLControl.dll' must be registered. SPR 162520 will get this registered for everyone, or see JPS."
		GetPageText = ""
	else
		retval = pCWQuickTipControl.GetContentString( nStartID, nEndID )
	end if
	if (retval = "") then
		GetPageText = "Error"		' Need to set some kind of value or else it is undefined when it gets back to the javascript code
	else
		GetPageText = retval
	end if


End function

function doCommand(arg1, arg2)
	
	On Error Resume Next
	Dim pCWQuickTipControl

	Set pCWQuickTipControl = CreateObject("CSQuickTips.QuickTips.23")	

	if (pCWQuickTipControl is nothing) then
		exit function
	else
		pCWQuickTipControl.ExecuteCWCommand3 2, arg1, arg2, 0, 0
	end if

End func