private void ScriptBuilder(string strSourceJavaScript)
{
GeckoDocument doc = GeckoDocument.Create((nsIDOMHTMLDocument)oDomWindow.GetDocumentAttribute());
GeckoElement ge = doc.GetElementById(CLIENT_SIDE_JAVASCRIPT_ID);
if (ge != null)
doc.Body.RemoveChild(ge);
ge = doc.CreateElement("script");
ge.SetAttribute("type", "text/javascript");
ge.SetAttribute("id", CLIENT_SIDE_JAVASCRIPT_ID);
StringBuilder textContent = new StringBuilder();
textContent.Append(strSourceJavaScript);
ge.TextContent = textContent.ToString();
doc.Body.AppendChild(ge);
}