void RenderClientScriptFormDeclaration (HtmlTextWriter writer, string formUniqueID)
{
if (formScriptDeclarationRendered)
return;
if (PageAdapter != null) {
writer.WriteLine ("\tvar {0} = {1};\n", theForm, PageAdapter.GetPostBackFormReference(formUniqueID));
} else {
writer.WriteLine ("\tvar {0};\n\tif (document.getElementById) {{ {0} = document.getElementById ('{1}'); }}", theForm, formUniqueID);
writer.WriteLine ("\telse {{ {0} = document.{1}; }}", theForm, formUniqueID);
}
formScriptDeclarationRendered = true;
}