			function setFocus() //set the focus on the first element in the URL frame
			{
				//strt web service
				xmxWbSvc.useService("xmxClientDictWebSvc.asmx?WSDL","wNmSvc");
				document.formStart.txtURL.focus();
			}
			function aboutus() // open a pop-up describing xemantex
			{
				window.open("aboutXmntx.aspx","about","toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=540,height=460,resizable=no");
			}
			function howtouse() // help screen on how to pass/allow URL and paste text to xemantex
			{
				window.open("xmxHowToUse.aspx","URL","toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=540,height=460,resizable=no");
			}
			function contactus() // open a pop-up of how to contact xemantex
			{
				window.open("contactXmntx.aspx","about","toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=540,height=460,resizable=no");
			}
			function selectAllText()
				{
				var txtURL = document.formStart.txtURL;
				txtURL.focus();
				txtURL.select();
				}
			function keyPressForTxtUrl(e, strUrlText)
			{
				var keyChar = (window.Event) ? e.which : e.keyCode; 
				if (keyChar == 10)
					{
					//concatenate "http://www." to the front and
					//".com" to the back of the existing strURLText and 
					//redirect to the default page with the url
					strUrlText = "http://www." + strUrlText
					strUrlText = strUrlText + ".com"
					document.formStart.txtURL.value = strUrlText
					//alert(strUrlText)
					location.href = "default.aspx?xmxurl="+ strUrlText;
					}
				if (keyChar == 13) 
					{
					location.href = "default.aspx?xmxurl="+ escape(strUrlText);
					}
			}
			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);
								}
						}
				}
			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"); 
						}
				}
