StringBuilder sbScript = new StringBuilder();
sbScript.Append("<script language=\"JavaScript\" type=\"text/javascript\">\n");
sbScript.Append("\n");
sbScript.Append("</script>\n");
this.RegisterClientScriptBlock("errCheck", sbScript.ToString());
this.buttonSearch.Attributes.Add("onclick","JavaScript:return checkErr();\n");