//double click and get meaning
function selectWordNew()
				{
				sendWord(document.selection.createRange().text);
				}
//
function sendWord(ltext)
				{
					if (ltext != '')
						{
							var iCallID;
							document.getElementById("lblMeaning").innerHTML="Loading...."
							if (xmxWbSvc.wNmSvc)
								{
									iCallID= xmxWbSvc.wNmSvc.callService(gtMngRslt,"getXmxWordHelp",ltext);
								}
							else
								{
									document.getElementById("lblMeaning").innerHTML="Internal error."
								}
						}
				}
//
function gtMngRslt(result)
				{
				    // if there is an error, and the call came from the call() in init()
					if(result.error)
						{
				        // Pull the error information from the event.result.errorDetail properties
				        var xfaultcode   = result.errorDetail.code;
						var xfaultstring = result.errorDetail.string;
						var xfaultsoap   = result.errorDetail.raw;
				        // Add code to handle specific error codes here
						//status = "error " + xfaultcode + "  " + xfaultstring + "  " + xfaultsoap
						document.getElementById("lblMeaning").innerHTML="Error " + xfaultcode + "  " + xfaultstring + "  " + xfaultsoap;						
					    }
					else
						{
						//alert(result.value);
						document.getElementById("lblMeaning").innerHTML=result.value;
						//clear any selection
						var sRng;
						sRng = document.selection.createRange();
						sRng.execCommand("unselect"); 
						}
				}
//
function setFocus() //set focus on the first element(if any)
			{
				//strt web service
				xmxWbSvc.useService("xmxClientDictWebSvc.asmx?WSDL","wNmSvc");
			}
